Methods Summary |
---|
public javax.management.ObjectName | create(java.lang.String referencedResourceName, boolean enabled)
final String j2eeType = getFactoryContainer().getJ2EEType();
final String containerName = getFactoryContainer().getName();
getOldResourcesMBean().createResourceReference(containerName, enabled,
referencedResourceName);
ObjectName pattern = null;
if( XTypes.STANDALONE_SERVER_CONFIG.equals(j2eeType) )
{
pattern = Util.newObjectNamePattern( "com.sun.appserv",
"type=resource-ref,ref=" + referencedResourceName +
",server=" + containerName);
}
else
{
pattern = Util.newObjectNamePattern( "com.sun.appserv",
"type=resource-ref,ref=" + referencedResourceName +
",cluster=" + containerName);
}
final Set<ObjectName> oldNames =
JMXUtil.queryNames( getCallbacks().getMBeanServer(), pattern, null );
final ObjectName oldObjectName = GSetUtil.getSingleton( oldNames );
final ObjectName amxName = syncNewAMXMBeanWithOld( oldObjectName );
return( amxName );
|
public javax.management.ObjectName | create(java.lang.String referencedResourceName)
return create(referencedResourceName, null);
|
public javax.management.ObjectName | create(java.lang.String referencedResourceName, java.util.Map optional)
final boolean enabled = (optional != null) &&
"true".equalsIgnoreCase( ""+optional.get( ResourceConfigKeys.ENABLED_KEY ) );
return create( referencedResourceName, enabled);
|
protected java.util.Map | getParamNameOverrides()
return( MapUtil.newMap( AMXConfig.NAME_KEY, "ref" ) );
|
protected void | internalRemove(javax.management.ObjectName objectName)
final String containerName = getFactoryContainer().getName();
getOldResourcesMBean().deleteResourceReference( containerName, Util.getName( objectName ));
|