Example usage for javax.management.openmbean CompositeDataSupport getAll

List of usage examples for javax.management.openmbean CompositeDataSupport getAll

Introduction

In this page you can find the example usage for javax.management.openmbean CompositeDataSupport getAll.

Prototype

public Object[] getAll(String[] keys) 

Source Link

Document

Returns an array of the values of the items whose names are specified by keys , in the same order as keys .

Usage

From source file:org.eclipse.virgo.management.console.UploadServlet.java

private String getDeploymentIdentity(Object deploymentIdentity) {
    StringBuilder builder = new StringBuilder();
    if (deploymentIdentity instanceof CompositeDataSupport) {
        CompositeDataSupport deploymentIdentityInstance = (CompositeDataSupport) deploymentIdentity;
        Object[] all = deploymentIdentityInstance.getAll(DEPLOYMENT_IDENTITY_FIELDS);
        builder.append(all[0]);/* ww w.j av  a 2s .  com*/
        builder.append(" - ").append(all[1]);
        builder.append(": ").append(all[2]);
    }
    return builder.toString();
}