Methods Summary |
---|
public void | addVm(java.lang.String name)The name of the J2EEManagedObject. All managed objects must have a unique name within the context of the management
domain. The name must not be null.
externalVMs.add(name);
|
public abstract java.lang.String | getJ2EEApplication()
|
public abstract java.lang.String | getModuleName()
|
public java.lang.String[] | getjavaVMs()
//get the internal VM name
//App Clients never run on the internal VM
Set res = new HashSet();
if (!(this instanceof AppClientModuleMdl)) {
//res.addAll(findNames("j2eeType=JVM,name=" + MOAgentFactory.getAgent().getJVMId()));
}
//get the external VM names
Iterator vmNames = externalVMs.iterator();
while(vmNames.hasNext()) {
String vmName = (String)vmNames.next();
Set x = findNames("j2eeType=JVM,name=" + vmName);
if(x.size() > 0) {
res.addAll(x);
} else {
//no longer an active VM
externalVMs.remove(vmName);
vmNames = externalVMs.iterator();
}
}
Iterator it = res.iterator();
String [] vms = new String [res.size()];
int i =0;
while(it.hasNext()) {
vms[i++] = ((ObjectName)it.next()).toString();
}
return vms;
|
public static boolean | isStandAloneModule(java.lang.String applicationName)
if ( applicationName == null
|| applicationName.equals("")
|| applicationName.equals("null") ) {
return true;
}
return false;
|
public boolean | iseventProvider()Overriding method of ManagedObject
if(this.getJ2EEApplication().equals("null"))
return true;
return false;
|
public boolean | isstateManageable()Overriding method of ManagedObject
/*
if(this.getJ2EEApplication().equals("null"))
return true;
*/
return false;
|