Fields Summary |
---|
public static final String | kDefaultIASDomainName |
public static final char | kWildcardChar |
public static final char | kDomainNameSeparatorChar |
public static final char | kPropertySeparatorChar |
public static final char | kNameValueSeparatorChar |
public static final char | kSingleMatchChar |
public static final String | kDomainNameInvalidatorString |
public static final String | kTypeKeyName |
public static final String | kNameKeyName |
public static final String | kGroupIdKeyName |
public static final String | kCategoryKeyName |
public static final String | kClassIdKeyName |
public static final String | kServerIdKeyName |
public static final String | kDeployment |
public static final String | kModuleTypeKeyName |
public static final String | kServerInstanceKeyName |
public static final String | kApplicationNameKeyName |
public static final String | kModuleNameKeyName |
public static final String | kController |
public static final String | kConfig |
public static final String | kServer |
public static final String | kGenericConfigurator |
public static final String | kSystemServices |
public static final String | kServerInstance |
public static final String | kApplication |
public static final String | kModule |
public static final String | kJMSAdminHandler |
public static final String | kLogService |
public static final String | kComponentKeyName |
public static final String | kOrbType |
public static final String | kOrbListenerType |
public static final String | kHTTPServiceType |
public static final String | kHTTPListenerType |
public static final String | kHTTPListenerIdKeyName |
public static final String | kSecurityServiceType |
public static final String | kVirtualServerClassType |
public static final String | kVirtualServerClassDefaultName |
public static final String | kVirtualServerClassIdKeyName |
public static final String | kVirtualServerType |
public static final String | kVirtualServerIdKeyName |
public static final String | kMimeType |
public static final String | kMimeIdKeyName |
public static final String | kAclType |
public static final String | kAclIdKeyName |
public static final String | kAuthDbType |
public static final String | kAuthDbIdKeyName |
public static final String | kAuthRealmType |
public static final String | kHTTPQosType |
public static final String | kJdbcConnectionPoolType |
public static final String | kJdbcResourceType |
public static final String | kMailResourceType |
public static final String | kJmsResourceType |
public static final String | kJndiResourceType |
public static final String | kCustomResourceType |
public static final String | kPersistenceManagerFactoryResourceType |
public static final String | kWebContainer |
public static final String | kEjbContainer |
public static final String | kMdbContainer |
public static final String | kJtsComponent |
public static final String | kJvmType |
public static final String | kEjbModule |
public static final String | kWebModule |
public static final String | kStandaloneEjbModule |
public static final String | kStandaloneWebModule |
public static final String | kConnectorModule |
public static final String | kLifecycleModule |
public static final String | kEjbType |
public static final String | kServletType |
public static final String | kMonitoringType |
public static final String | kMonitoringClassName |
public static final String | kMonitoringRootClass |
public static final String | kProfiler |
public static final String | kConfigCategory |
public static final String | kCategoryConfig |
private static final ObjectName | HADB_CONFIG_OBJECT_NAME |
public static final String | kDottedNameDomainName
ObjectNames for the MBeans supporting dotted names--
registry -- associates dotted names with ObjectNames
resolver -- resolves a dotted name to an ObjectName
get-set -- supports the get/set/list commands within CLI |
public static final String | kDottedNameType |
public static final String | kDottedNameRegistryNameKeyName |
public static final String | kDottedNameMonitoringRegistryNameKeyName |
public static final String | kDottedNameGetSetNameKeyName |
private static final String | USE_DEPLOYMENT_MBEANSystem property name used to toggle between DeploymentMBean
and ManagedServerInstance. Just Temporary till DeplMBean is tested.
will be removed and DeploymentMBean will remain |
Methods Summary |
---|
public static javax.management.ObjectName | getAclObjectName(java.lang.String instanceName, java.lang.String id)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName},
new String[]{kAclType, id,
instanceName}));
|
public static javax.management.ObjectName | getAllObjectNamesPattern()
String name = kDefaultIASDomainName + kDomainNameSeparatorChar + kWildcardChar;
try
{
return new ObjectName(name);
}
catch (Exception e)
{
return null;
}
|
public static javax.management.ObjectName | getApplicationObjectName(java.lang.String instanceName, java.lang.String appName)Returns the ObjectName of MBean that represents a managed J2EE
application, with given name and deployed to given Server Instance.
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName},
new String[]{kApplication, appName, instanceName}) );
|
public static javax.management.ObjectName | getApplicationObjectNamePattern(java.lang.String instanceName)Returns a patterned ObjectName that can be used to query the
MBeanServer for all the application mbeans that match this
pattern. This method uses the default domain to construct the
ObjectName.
For example given an instance name "ias1" this method should return
an ObjectName with pattern -
"ias:type=application,instance-name=ias1,*"
ObjectName pattern = null;
ObjectName tmp = getObjectName(kDefaultIASDomainName,
new String[] {kTypeKeyName, kServerInstanceKeyName},
new String[] {kApplication, instanceName});
if (tmp != null)
{
String strPattern = tmp.toString() + kPropertySeparatorChar;
strPattern += kWildcardChar;
try
{
pattern = new ObjectName(strPattern);
}
catch (MalformedObjectNameException mfone)
{
Debug.printStackTrace(mfone);
pattern = null;
}
}
return pattern;
|
public static javax.management.ObjectName | getAuthRealmObjectName(java.lang.String instanceName, java.lang.String realmName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kServerInstanceKeyName,
kNameKeyName},
new String[]{kAuthRealmType, instanceName, realmName}));
|
public static javax.management.ObjectName | getConnectorModuleObjectName(java.lang.String instanceName, java.lang.String moduleName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName, kModuleTypeKeyName},
new String[]{kModule, moduleName, instanceName,
kConnectorModule}) );
|
public static javax.management.ObjectName | getConnectorModuleObjectName(java.lang.String instanceName, java.lang.String moduleName, java.lang.String applicationName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName, kModuleTypeKeyName,
kApplicationNameKeyName},
new String[]{kModule, moduleName, instanceName,
kConnectorModule, applicationName}) );
|
public static javax.management.ObjectName | getControllerObjectName()Returns the ObjectName of MBean representing Server Controller.
This is the Object Name of the entity that makes all Server side
entities manageable.
return ( getObjectName(kDefaultIASDomainName,
new String[]{kTypeKeyName},
new String[]{kController}) );
|
public static javax.management.ObjectName | getCustomResourceObjectName(java.lang.String instanceName, java.lang.String jndiName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kCustomResourceType, instanceName, jndiName}));
|
public static javax.management.ObjectName | getDeploymentServiceObjectName(java.lang.String instanceName)Returns objectName of the mbean representing deployment interface
if(System.getProperty(USE_DEPLOYMENT_MBEAN,"false").equals("true"))
{
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kServerInstanceKeyName},
new String[]{kDeployment, instanceName}));
}
else {
return getServerInstanceObjectName(instanceName);
}
|
public static javax.management.ObjectName | getDottedNameGetSetObjectName()
return( getDottedNameObjectName( kDottedNameGetSetNameKeyName ) );
|
public static javax.management.ObjectName | getDottedNameMonitoringRegistryObjectName()
return( getDottedNameObjectName( kDottedNameMonitoringRegistryNameKeyName ) );
|
private static javax.management.ObjectName | getDottedNameObjectName(java.lang.String name)
return( getObjectName( kDottedNameDomainName,
new String [] { kNameKeyName, kTypeKeyName },
new String [] { name, kDottedNameType } )
);
|
public static javax.management.ObjectName | getDottedNameRegistryObjectName()
return( getDottedNameObjectName( kDottedNameRegistryNameKeyName ) );
|
public static javax.management.ObjectName | getEjbContainerObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName},
new String[]{kEjbContainer, instanceName}));
|
public static javax.management.ObjectName | getEjbModuleObjectName(java.lang.String instanceName, java.lang.String moduleName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName, kModuleTypeKeyName},
new String[]{kModule, moduleName, instanceName, kEjbModule}) );
|
public static javax.management.ObjectName | getEjbModuleObjectName(java.lang.String instanceName, java.lang.String moduleName, java.lang.String applicationName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName, kModuleTypeKeyName,
kApplicationNameKeyName},
new String[]{kModule, moduleName, instanceName, kEjbModule,
applicationName}) );
|
public static javax.management.ObjectName | getEjbObjectName(java.lang.String instanceName, java.lang.String moduleName, java.lang.String ejbName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName, kModuleNameKeyName,
kServerInstanceKeyName},
new String[]{kEjbType, ejbName, moduleName, instanceName}));
|
public static javax.management.ObjectName | getEjbObjectName(java.lang.String instanceName, java.lang.String appName, java.lang.String moduleName, java.lang.String ejbName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName, kModuleNameKeyName,
kApplicationNameKeyName, kServerInstanceKeyName},
new String[]{kEjbType, ejbName, moduleName, appName,
instanceName}));
|
public static javax.management.ObjectName | getGenericConfiguratorObjectName()Returns the ObjectName of Generic Configurator.
return ( getObjectName(kDefaultIASDomainName,
new String[]{kTypeKeyName},
new String[]{kGenericConfigurator}) );
|
public static javax.management.ObjectName | getHADBConfigObjectName()
return HADB_CONFIG_OBJECT_NAME;
|
public static javax.management.ObjectName | getHttpListenerObjectName(java.lang.String instanceName, java.lang.String id)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName},
new String[]{kHTTPListenerType, id, instanceName}));
|
public static javax.management.ObjectName | getHttpServiceObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kServerInstanceKeyName},
new String[]{kHTTPServiceType, instanceName}));
|
public static javax.management.ObjectName | getIiopListenerObjectName(java.lang.String instanceName, java.lang.String listenerId)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kOrbListenerType, instanceName, listenerId}));
|
public static javax.management.ObjectName | getJDBCConnectionPoolObjectName(java.lang.String instanceName, java.lang.String poolName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kJdbcConnectionPoolType, instanceName, poolName}));
|
public static javax.management.ObjectName | getJDBCResourceObjectName(java.lang.String instanceName, java.lang.String jndiName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kJdbcResourceType, instanceName, jndiName}));
|
public static javax.management.ObjectName | getJMSAdminHandlerObjectName(java.lang.String instanceName)Returns the ObjectName of MBean representing JMS Admin handler.
This is the Object Name of the entity that does all JMS
related admin tasks.
return ( getObjectName(kDefaultIASDomainName,
new String[]{kTypeKeyName, kServerInstanceKeyName},
new String[]{kJMSAdminHandler, instanceName}) );
|
public static javax.management.ObjectName | getJMSAdminHandlerObjectName()
Debug.println("This method is deprecated. Use the overloaded method" +
" instead.", Debug.LOW);
return ( getObjectName(kDefaultIASDomainName,
new String[]{kTypeKeyName},
new String[]{kJMSAdminHandler}) );
|
public static javax.management.ObjectName | getJMSResourceObjectName(java.lang.String instanceName, java.lang.String jndiName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kJmsResourceType, instanceName, jndiName}));
|
public static javax.management.ObjectName | getJNDIResourceObjectName(java.lang.String instanceName, java.lang.String jndiName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kJndiResourceType, instanceName, jndiName}));
|
public static javax.management.ObjectName | getJTSComponentObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName},
new String[]{kJtsComponent, instanceName}));
|
public static javax.management.ObjectName | getJVMComponentObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[] {kTypeKeyName,
kServerInstanceKeyName},
new String[] {kJvmType, instanceName}));
|
public static javax.management.ObjectName | getLifeCycleModuleObjectName(java.lang.String instanceName, java.lang.String name)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName},
new String[]{kLifecycleModule, name,
instanceName}));
|
public static javax.management.ObjectName | getLogServiceObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName},
new String[]{kLogService, instanceName}));
|
public static javax.management.ObjectName | getMailResourceObjectName(java.lang.String instanceName, java.lang.String jndiName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kMailResourceType, instanceName, jndiName}));
|
public static javax.management.ObjectName | getMdbContainerObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName},
new String[]{kMdbContainer, instanceName}));
|
public static javax.management.ObjectName | getMimeObjectName(java.lang.String instanceName, java.lang.String id)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName},
new String[]{kMimeType, id,
instanceName}));
|
public static javax.management.ObjectName | getModuleObjectName(java.lang.String instanceName, java.lang.String appName, java.lang.String moduleName)Returns the ObjectName of MBean that represents a managed J2EE
module, with given name and deployed to given Server Instance
as a part of given application (
not a standalone module).
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName, kApplicationNameKeyName,
kServerInstanceKeyName},
new String[]{kModule, moduleName, appName, instanceName}) );
|
public static javax.management.ObjectName | getModuleObjectName(java.lang.String instanceName, java.lang.String moduleName)Returns the ObjectName of MBean that represents a managed J2EE
module, with given name and deployed to given Server Instance
as a standalone module . Note that this is an
overloaded method.
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName, kServerInstanceKeyName},
new String[]{kModule, moduleName, instanceName}) );
|
public static javax.management.ObjectName | getModuleObjectNamePattern(java.lang.String instanceName, java.lang.String appName)
ObjectName pattern = null;
ObjectName tmp = getObjectName(kDefaultIASDomainName,
new String[] {kTypeKeyName, kServerInstanceKeyName,
kApplicationNameKeyName},
new String[] {kModule, instanceName, appName});
if (tmp != null)
{
String strPattern = tmp.toString() + kPropertySeparatorChar;
strPattern += kWildcardChar;
try
{
pattern = new ObjectName(strPattern);
}
catch (MalformedObjectNameException mfone)
{
pattern = null;
}
}
return pattern;
|
public static javax.management.ObjectName | getModuleObjectNamePattern(java.lang.String instanceName)
ObjectName pattern = null;
ObjectName tmp = getObjectName(kDefaultIASDomainName,
new String[] {kTypeKeyName, kServerInstanceKeyName},
new String[] {kModule, instanceName});
if (tmp != null)
{
try
{
String strPattern = tmp.toString() + kPropertySeparatorChar;
strPattern += kWildcardChar;
pattern = new ObjectName(strPattern);
}
catch (MalformedObjectNameException mfone)
{
pattern = null;
Debug.printStackTrace(mfone);
}
}
return pattern;
|
public static javax.management.ObjectName | getORBObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kServerInstanceKeyName},
new String[]{kOrbType, instanceName}));
|
public static javax.management.ObjectName | getObjectName(java.lang.String domainName, java.lang.String[] keyNames, java.lang.String[] keyValues)A generic method to create the Object Name of an MBean in given
domain with specified arrays of Property Names-Values.
ObjectName validObjectName = null;
try
{
if (domainName == null ||
!isDomainNameValid(domainName) ||
keyNames == null ||
keyValues == null ||
keyNames.length < 1 ||
keyNames.length != keyValues.length)
{
throw new IllegalArgumentException();
}
StringBuffer nameBuffer = new StringBuffer();
nameBuffer.append(domainName);
nameBuffer.append(kDomainNameSeparatorChar);
for (int i = 0 ; i < keyNames.length ; i++)
{
if (keyNames[i] == null || keyValues[i] == null)
{
throw new IllegalArgumentException();
}
nameBuffer.append(keyNames[i]);
nameBuffer.append(kNameValueSeparatorChar);
nameBuffer.append(keyValues[i]);
if (i != (keyNames.length-1))
{
nameBuffer.append(kPropertySeparatorChar);
}
}
validObjectName = new ObjectName(nameBuffer.toString());
}
catch(Exception e)
{
Debug.printStackTrace(e);
}
return ( validObjectName );
|
public static javax.management.ObjectName | getPerInstanceSystemServicesObjectName(java.lang.String instanceId)Returns the ObjectName of the system services MBean that would
be available in a given server instance name.
final ObjectName on = getObjectName(kDefaultIASDomainName,
new String[]{kTypeKeyName, kServerIdKeyName},
new String[]{kSystemServices, instanceId}) ;
//System.out.println("[[DELETE]] Getting the System Services MBean ObjectName for instance: " + instanceId + ", and it is: " + on.toString());
return ( on );
|
public static javax.management.ObjectName | getPersistenceManagerFactoryResourceObjectName(java.lang.String instanceName, java.lang.String jndiName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName,
kNameKeyName},
new String[]{kPersistenceManagerFactoryResourceType,
instanceName, jndiName}));
|
public static javax.management.ObjectName | getProfilerObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kServerInstanceKeyName},
new String[]{kProfiler, instanceName}));
|
public static javax.management.ObjectName | getRootMonitorMBeanName(java.lang.String instanceName)Get ObjectName for root monitoring mBean.
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kMonitoringClassName,
kServerInstanceKeyName, kNameKeyName},
new String[]{kMonitoringType, kMonitoringRootClass,
instanceName, kMonitoringRootClass}));
|
public static javax.management.ObjectName | getSecurityServiceObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName},
new String[]{kSecurityServiceType, instanceName}));
|
public static javax.management.ObjectName | getServerInstanceObjectName(java.lang.String instanceName)Returns ObjectName of MBean that represents a managed Server Instance,
with given name.
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName},
new String[]{kServerInstance, instanceName}) );
|
public static javax.management.ObjectName | getServerInstanceObjectNamePattern()
ObjectName pattern = null;
ObjectName tmp = getObjectName(kDefaultIASDomainName,
new String[] {kTypeKeyName}, new String[] {kServerInstance});
if (tmp != null)
{
String strPattern = tmp.toString() + kPropertySeparatorChar;
strPattern += kWildcardChar;
try
{
pattern = new ObjectName(strPattern);
}
catch (MalformedObjectNameException mfone)
{
pattern = null;
Debug.printStackTrace(mfone);
}
}
return pattern;
|
public static javax.management.ObjectName | getServerObjectName(java.lang.String serverName)Returns the ObjectName of MBean representing a element.
return ( getObjectName(kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName, kCategoryKeyName},
new String[]{kServer, serverName, kConfig}) );
|
public static javax.management.ObjectName | getServletObjectName(java.lang.String instanceName, java.lang.String moduleName, java.lang.String servletName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName, kModuleNameKeyName,
kServerInstanceKeyName},
new String[]{kServletType, servletName, moduleName,
instanceName}));
|
public static javax.management.ObjectName | getServletObjectName(java.lang.String instanceName, java.lang.String appName, java.lang.String moduleName, java.lang.String servletName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName, kModuleNameKeyName,
kApplicationNameKeyName, kServerInstanceKeyName},
new String[]{kServletType, servletName, moduleName, appName,
instanceName}));
|
public static javax.management.ObjectName | getSystemServicesObjectName()Gets the System Service MBean Object Name in the Admin Server aka DAS.
This method has been deprecated. Use #getPerInstanceSystemServicesObjectName
instead.
return ( getPerInstanceSystemServicesObjectName(SystemPropertyConstants.DEFAULT_SERVER_INSTANCE_NAME) );
|
public static javax.management.ObjectName | getVirtualServerAuthDBObjectName(java.lang.String instanceName, java.lang.String virtualServerClassId, java.lang.String virtualServerId, java.lang.String authDBId)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kNameKeyName,
kVirtualServerIdKeyName,
kVirtualServerClassIdKeyName,
kServerInstanceKeyName},
new String[]{kAuthDbType,
authDBId,
virtualServerId,
virtualServerClassId,
instanceName}));
|
public static javax.management.ObjectName | getVirtualServerClassObjectName(java.lang.String instanceName, java.lang.String classId)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kNameKeyName,
kServerInstanceKeyName},
new String[]{kVirtualServerClassType, classId, instanceName}));
|
public static javax.management.ObjectName | getVirtualServerObjectName(java.lang.String instanceName, java.lang.String virtualServerClassId, java.lang.String virtualServerId)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kVirtualServerClassIdKeyName,
kServerInstanceKeyName},
new String[]{kVirtualServerType,
virtualServerId,
virtualServerClassId,
instanceName}));
|
public static javax.management.ObjectName | getWebContainerObjectName(java.lang.String instanceName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName,
kServerInstanceKeyName},
new String[]{kWebContainer, instanceName}));
|
public static javax.management.ObjectName | getWebModuleObjectName(java.lang.String instanceName, java.lang.String moduleName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName, kModuleTypeKeyName},
new String[]{kModule, moduleName, instanceName, kWebModule}) );
|
public static javax.management.ObjectName | getWebModuleObjectName(java.lang.String instanceName, java.lang.String moduleName, java.lang.String applicationName)
return ( getObjectName (kDefaultIASDomainName,
new String[]{kTypeKeyName, kNameKeyName,
kServerInstanceKeyName, kModuleTypeKeyName,
kApplicationNameKeyName},
new String[]{kModule, moduleName, instanceName, kWebModule,
applicationName}) );
|
private static boolean | isDomainNameValid(java.lang.String name)
boolean isValid = false;
isValid = (name.indexOf(kWildcardChar) == -1) &&
(name.indexOf(kDomainNameSeparatorChar) == -1) &&
(name.indexOf(kPropertySeparatorChar) == -1) &&
(name.indexOf(kNameValueSeparatorChar) == -1) &&
(name.indexOf(kSingleMatchChar) == -1);
return ( isValid );
|
public static void | main(java.lang.String[] args)
Logger.log(ObjectNames.getServerInstanceObjectName("ias1"));
Logger.log(ObjectNames.getApplicationObjectName("ias1", "app1"));
Logger.log(ObjectNames.getControllerObjectName());
Logger.log(ObjectNames.getModuleObjectName("ias1", "standalone"));
Logger.log(ObjectNames.getModuleObjectName("ias1", "app1", "inner"));
Logger.log(ObjectNames.getObjectName("ias111",
new String[]{"key1", "key2", "key3"},
new String[]{"v1", "v2", "v3"}));
//Testers for patterns
ObjectName pattern =
ObjectNames.getServerInstanceObjectNamePattern();
Logger.log("" + pattern.isPropertyPattern());
pattern = ObjectNames.getApplicationObjectNamePattern("ias1");
Logger.log("" + pattern.isPropertyPattern());
pattern = ObjectNames.getModuleObjectNamePattern("ias1");
Logger.log("" + pattern.isPropertyPattern());
pattern = ObjectNames.getModuleObjectNamePattern("ias1", "bank");
Logger.log("" + pattern.isPropertyPattern());
ObjectName jmsObjectName =
ObjectNames.getJMSAdminHandlerObjectName("ias1");
Logger.log("JMS Objectname = " + jmsObjectName.toString());
jmsObjectName = ObjectNames.getJMSAdminHandlerObjectName();
Logger.log("JMS Objectname = " + jmsObjectName.toString());
ObjectName httpListener = ObjectNames.getHttpListenerObjectName(
"ias1", "listener1");
Logger.log("Http listener object name = " + httpListener);
ObjectName mime = ObjectNames.getMimeObjectName("ias1", "text/html");
Logger.log("Mime object name = " + mime);
ObjectName acl = ObjectNames.getAclObjectName("ias1", "acl1");
Logger.log("ACL object name = " + acl);
|