Methods Summary |
---|
private static javax.management.ObjectName | formObjectName(java.util.Hashtable t)
final String domain = getDomainName();
t.put(CATEGORY_PROPERTY, CATEGORY_PROPERTY_VAL);
t.put(SERVER_PROPERTY, SERVER_ID);
ObjectName on = null;
try {
on = new ObjectName(domain, t);
logger.fine("MonitoringObjectNames:formObjectName - ObjectName = " + on.toString());
}
catch (Exception cause) {
//actually give one more chance if cause is an instance of MalformedObjectNameException - TBD
throw new RuntimeException(cause);
}
return ( on ); // may not return null
|
static javax.management.ObjectName | getApplicationObjectName(java.lang.String app)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.APPLICATION.getTypeName());
t.put("name", app);
return ( formObjectName(t) );
|
static javax.management.ObjectName | getApplicationsObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.APPLICATIONS.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getConnectionFactoriesObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTION_FACTORIES.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getConnectionFactoryObjectName(java.lang.String factoryName)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTION_FACTORY.getTypeName());
t.put("name", factoryName);
return(formObjectName(t));
|
static javax.management.ObjectName | getConnectionManagersObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTION_MANAGERS.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getConnectionPoolObjectName(java.lang.String name, com.sun.enterprise.admin.monitor.registry.MonitoredObjectType type)
final Hashtable t = new Hashtable();
if (type == MonitoredObjectType.CONNECTOR_CONN_POOL)
t.put("type", MonitoredObjectType.CONNECTOR_CONN_POOL.getTypeName());
else
t.put("type", MonitoredObjectType.JDBC_CONN_POOL.getTypeName());
t.put("name", name);
return ( formObjectName(t) );
|
static javax.management.ObjectName | getConnectionPoolObjectName(java.lang.String poolName, java.lang.String j2eeAppName, java.lang.String moduleName)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTOR_CONN_POOL.getTypeName());
t.put("name", poolName);
if(j2eeAppName != null) {
t.put(MonitoredObjectType.CONNECTOR_MODULE.getTypeName(), j2eeAppName + "#" + moduleName);
} else
{
t.put(MonitoredObjectType.STANDALONE_CONNECTOR_MODULE.getTypeName(), moduleName);
}
return(formObjectName(t));
|
static javax.management.ObjectName | getConnectionPoolsObjectName(java.lang.String j2eeAppName, java.lang.String moduleName)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTION_POOLS.getTypeName());
if(j2eeAppName != null) {
t.put(MonitoredObjectType.CONNECTOR_MODULE.getTypeName(), j2eeAppName + "#" + moduleName);
} else
{
t.put(MonitoredObjectType.STANDALONE_CONNECTOR_MODULE.getTypeName(), moduleName);
}
return(formObjectName(t));
|
static javax.management.ObjectName | getConnectionQueueObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTION_QUEUE.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getConnectorModuleObjectName(java.lang.String j2eeAppName, java.lang.String moduleName)
final Hashtable t = new Hashtable();
if (j2eeAppName != null) {
t.put("name", j2eeAppName + "#" + moduleName);
t.put("type", MonitoredObjectType.CONNECTOR_MODULE.getTypeName());
}
else {
t.put("name", moduleName);
t.put("type", MonitoredObjectType.STANDALONE_CONNECTOR_MODULE.getTypeName());
}
return( formObjectName(t));
|
static javax.management.ObjectName | getConnectorServiceObjectName()
final Hashtable t = new Hashtable();
t.put("type",MonitoredObjectType.CONNECTOR_SERVICE.getTypeName());
return (formObjectName(t));
|
static javax.management.ObjectName | getConnectorWorkMgmtObjectName(java.lang.String j2eeAppName, java.lang.String moduleName, boolean isJms)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTOR_WORKMGMT.getTypeName());
if(!isJms) {
if(j2eeAppName != null) {
t.put(MonitoredObjectType.CONNECTOR_MODULE.getTypeName(), j2eeAppName + "#" + moduleName);
} else
{
t.put(MonitoredObjectType.STANDALONE_CONNECTOR_MODULE.getTypeName(), moduleName);
}
}
return (formObjectName(t));
|
static javax.management.ObjectName | getDnsObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.DNS.getTypeName());
return(formObjectName(t));
|
private static java.lang.String | getDomainName()
final AdminContext ac = AdminService.getAdminService().getAdminContext();
return ( ac.getDomainName() );
|
static javax.management.ObjectName | getEjbCacheObjectName(com.sun.enterprise.admin.monitor.registry.MonitoredObjectType ejbType, java.lang.String ejb, java.lang.String module, java.lang.String app)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.BEAN_CACHE.getTypeName());
t.put("name", MonitoredObjectType.BEAN_CACHE.getTypeName());
t.put( ejbType.getTypeName(), ejb);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), module);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(), module);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getEjbMethodObjectName(java.lang.String method, com.sun.enterprise.admin.monitor.registry.MonitoredObjectType ejbType, java.lang.String ejb, java.lang.String module, java.lang.String app)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.BEAN_METHOD.getTypeName());
t.put("name", method);
t.put( ejbType.getTypeName(), ejb);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), module);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(), module);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getEjbMethodsObjectName(java.lang.String app, java.lang.String module, com.sun.enterprise.admin.monitor.registry.MonitoredObjectType ejbType, java.lang.String ejb)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.BEAN_METHODS.getTypeName());
t.put( ejbType.getTypeName(), ejb);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), module);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(), module);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getEjbModuleObjectName(java.lang.String app, java.lang.String module)
final Hashtable t = new Hashtable();
t.put("name", module);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put("type", MonitoredObjectType.EJBMODULE.getTypeName());
}
else
t.put("type", MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getEjbObjectName(com.sun.enterprise.admin.monitor.registry.MonitoredObjectType type, java.lang.String ejb, java.lang.String module, java.lang.String app)
final Hashtable t = new Hashtable();
t.put("type", type.getTypeName());
t.put("name", ejb);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), module);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(), module);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getEjbPoolObjectName(com.sun.enterprise.admin.monitor.registry.MonitoredObjectType ejbType, java.lang.String ejb, java.lang.String module, java.lang.String app)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.BEAN_POOL.getTypeName());
t.put("name", MonitoredObjectType.BEAN_POOL.getTypeName());
t.put( ejbType.getTypeName(), ejb);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), module);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(), module);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getFileCacheObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.FILE_CACHE.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getHttpListenerObjectName(java.lang.String vs, java.lang.String ls)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.HTTP_LISTENER.getTypeName());
t.put(MonitoredObjectType.VIRTUAL_SERVER.getTypeName(), vs);
t.put("name", ls);
return ( formObjectName(t) );
|
static javax.management.ObjectName | getHttpServiceObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.HTTP_SERVICE.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getJVMClassLoadingObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_CLASSLOADING.getTypeName());
t.put("name", MonitoredObjectType.JVM_CLASSLOADING.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMCompilationObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_COMPILATION.getTypeName());
t.put("name", MonitoredObjectType.JVM_COMPILATION.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMGCObjectName(java.lang.String gcName)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_GC.getTypeName());
t.put("name", gcName);
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMGCSSObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_GCS.getTypeName());
t.put("name", MonitoredObjectType.JVM_GCS.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMMemoryObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_MEMORY.getTypeName());
t.put("name", MonitoredObjectType.JVM_MEMORY.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMOSObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_OS.getTypeName());
t.put("name", MonitoredObjectType.JVM_OS.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMRuntimeObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_RUNTIME.getTypeName());
t.put("name", MonitoredObjectType.JVM_RUNTIME.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMThreadInfoObjectName(java.lang.String threadName)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_THREAD_INFO.getTypeName());
t.put("name", threadName);
return(formObjectName(t));
|
static javax.management.ObjectName | getJVMThreadObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM_THREAD.getTypeName());
t.put("name", MonitoredObjectType.JVM_THREAD.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getJmsServiceObjectName()
final Hashtable t = new Hashtable();
t.put("type",MonitoredObjectType.JMS_SERVICE.getTypeName());
return (formObjectName(t));
|
static javax.management.ObjectName | getJndiObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JNDI.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getJvmObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.JVM.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getKeepAliveObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.KEEP_ALIVE.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getOrbConnectionManagerObjectName(java.lang.String name)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.CONNECTION_MANAGER.getTypeName());
t.put("name", name);
return ( formObjectName(t) );
|
static javax.management.ObjectName | getOrbObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.ORB.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getPWCThreadPoolObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.PWC_THREAD_POOL.getTypeName());
return(formObjectName(t));
|
static javax.management.ObjectName | getRequestObjectName(java.lang.String vsId)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.REQUEST.getTypeName());
t.put(MonitoredObjectType.VIRTUAL_SERVER.getTypeName(), vsId);
return(formObjectName(t));
|
static javax.management.ObjectName | getResourcesObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.RESOURCES.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getRootObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.ROOT.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getServletObjectName(java.lang.String app, java.lang.String ctxRoot, java.lang.String vs, java.lang.String servlet)
final ObjectName virtualServerObjectName =
getVirtualServerObjectName( app, ctxRoot, vs );
final Hashtable t = new Hashtable();
t.put("name", servlet);
t.put("type", MonitoredObjectType.SERVLET.getTypeName());
t.put(MonitoredObjectType.WEBAPP_VIRTUAL_SERVER.getTypeName(),
virtualServerObjectName.getKeyProperty( "name" ));
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getStatefulSessionStoreObjectName(com.sun.enterprise.admin.monitor.registry.MonitoredObjectType ejbType, java.lang.String ejbName, java.lang.String moduleName, java.lang.String j2eeAppName)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.SESSION_STORE.getTypeName());
t.put("name", MonitoredObjectType.SESSION_STORE.getTypeName());
t.put( ejbType.getTypeName(), ejbName);
if (j2eeAppName != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), j2eeAppName);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), moduleName);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(), moduleName);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getThreadPoolObjectName(java.lang.String name)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.THREAD_POOL.getTypeName());
t.put("name", name);
return ( formObjectName(t) );
|
static javax.management.ObjectName | getThreadPoolsObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.THREAD_POOLS.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getTimerObjectName(com.sun.enterprise.admin.monitor.registry.MonitoredObjectType ejbType, java.lang.String ejbName, java.lang.String moduleName, java.lang.String j2eeAppName)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.TIMERS.getTypeName());
t.put("name", MonitoredObjectType.TIMERS.getTypeName());
t.put( ejbType.getTypeName(), ejbName);
if (j2eeAppName != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), j2eeAppName);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), moduleName);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(), moduleName);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getTransactionServiceObjectName()
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.TRANSACTION_SERVICE.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getVirtualServerObjectName(java.lang.String vs)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.VIRTUAL_SERVER.getTypeName());
t.put("name", vs);
return ( formObjectName(t) );
|
static javax.management.ObjectName | getVirtualServerObjectName(java.lang.String app, java.lang.String ctxRoot, java.lang.String vs)
String module = "//" + ((vs==null) ? "DEFAULT" : vs) +
(("".equals(ctxRoot)) ? "/" : ctxRoot);
final Hashtable t = new Hashtable();
t.put("name", module);
t.put("type", MonitoredObjectType.WEBAPP_VIRTUAL_SERVER.getTypeName());
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getWebModuleObjectName(java.lang.String app, java.lang.String ctxRoot, java.lang.String vs)
String module = "//" + ((vs==null) ? "DEFAULT" : vs) +
(("".equals(ctxRoot)) ? "/" : ctxRoot);
final Hashtable t = new Hashtable();
t.put("name", module);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put("type", MonitoredObjectType.WEBMODULE.getTypeName());
}
else
t.put("type", MonitoredObjectType.STANDALONE_WEBMODULE.getTypeName());
return ( formObjectName(t) );
|
static javax.management.ObjectName | getWebServiceObjectNameForEjb(java.lang.String endpoint, java.lang.String module, java.lang.String app)
final Hashtable t = new Hashtable();
t.put("type", MonitoredObjectType.WEBSERVICE_ENDPOINT.getTypeName());
t.put("name", endpoint);
if (app != null) {
t.put(MonitoredObjectType.APPLICATION.getTypeName(), app);
t.put(MonitoredObjectType.EJBMODULE.getTypeName(), module);
}
else {
t.put(MonitoredObjectType.STANDALONE_EJBMODULE.getTypeName(),
module);
}
return ( formObjectName(t) );
|
static javax.management.ObjectName | getWebServiceObjectNameForWeb(java.lang.String endpoint, java.lang.String app, java.lang.String ctxRoot, java.lang.String virtualServer)
final Hashtable t = new Hashtable();
// this is the webmodule-virtual-server it belongs to
final ObjectName virtualServerObjectName =
getVirtualServerObjectName( app, ctxRoot, virtualServer );
t.put("type", MonitoredObjectType.WEBSERVICE_ENDPOINT.getTypeName());
t.put("name", endpoint);
// form pair based on virtual server type/name
t.put(
virtualServerObjectName.getKeyProperty( "type" ),
virtualServerObjectName.getKeyProperty( "name" ) );
final String appPropName = MonitoredObjectType.APPLICATION.getTypeName();
String appName = virtualServerObjectName.getKeyProperty( appPropName );
if (appName == null) {
appName = "null";
}
t.put(appPropName, appName);
return formObjectName(t);
|