Methods Summary |
---|
protected DomainStatusMBean | getDomainStatus()
MBeanServer mbs = MBeanServerFactory.getMBeanServer();
ObjectName on = null;
try {
on = getDomainStatusObjectName();
} catch (MalformedObjectNameException mone) {
sLogger.log(Level.WARNING,
"DomainStatusHelper getDomainStatus ObjectName exception", mone);
}
DomainStatusMBean domainStatus = null;
try {
domainStatus =
(DomainStatusMBean)MBeanServerInvocationHandler.newProxyInstance(
mbs, on, DomainStatusMBean.class, false );
} catch (Exception e) {
sLogger.log(Level.WARNING,
"DomainStatusHelper getDomainStatus io exception", e);
}
return(domainStatus);
|
public static javax.management.ObjectName | getDomainStatusObjectName()
ObjectName on = new ObjectName(
ApplicationServer.getServerContext().getDefaultDomainName() + ":" +
DomainStatusMBean.DOMAIN_STATUS_PROPS);
return on;
|
public static javax.management.ObjectName | getServersConfigObjectName()
ObjectName on = new ObjectName(
ApplicationServer.getServerContext().getDefaultDomainName() + ":" +
"type=servers,category=config");
return on;
|
public int | getstate(java.lang.String serverName)
sLogger.log(Level.FINE, "DomainStatusHelper getstate for " + serverName);
return (getDomainStatus().getstate(serverName));
|
public void | setstate(java.lang.String serverName, int state)
sLogger.log(Level.FINE, "DomainStatusHelper setstate for " + serverName);
try {
getDomainStatus().setstate(serverName, Integer.valueOf(state));
} catch (Exception e) {
sLogger.log(Level.WARNING,
"DomainStatusHelper setstate exception for server " +
serverName, e);
}
|