Methods Summary |
---|
public javax.management.ObjectName | createOldManagementRules(java.lang.String configName)
final String props = getManagementRulesProps( configName );
ObjectName objectName =
queryOldConfigObjectName( props );
if ( objectName == null )
{
// null seems to be OK
getOldConfig( configName ).createManagementRules( null );
objectName = queryOldConfigObjectName( props );
}
return objectName;
|
public static synchronized com.sun.enterprise.management.support.oldconfig.OldConfigProxies | getInstance(javax.management.MBeanServer server)
if ( INSTANCE == null )
{
INSTANCE = new OldConfigProxies( server );
}
else
{
assert( INSTANCE.getMBeanServer() == server );
}
return( INSTANCE );
|
private javax.management.MBeanServer | getMBeanServer()
return( mServer );
|
private static java.lang.String | getManagementRulesProps(java.lang.String configName)
return "type=management-rules,config=" + configName;
|
public OldAdminServiceMBean | getOldAdminServiceMBean(java.lang.String configName)
return( newProxy(
"type=admin-service,config=" + configName, OldAdminServiceMBean.class ) );
|
public OldApplicationsConfigMBean | getOldApplicationsConfigMBean()
return( newProxy(
"type=applications", OldApplicationsConfigMBean.class ) );
|
public OldAvailabilityServiceMBean | getOldAvailabilityServiceMBean(java.lang.String configName)
return( newProxy(
"type=availability,config=" + configName, OldAvailabilityServiceMBean.class ) );
|
public OldClusterMBean | getOldClusterMBean(java.lang.String clusterName)
return( newProxy(
"type=cluster,name=" + clusterName, OldClusterMBean.class ) );
|
public OldClusterRefMBean | getOldClusterRefMBean(java.lang.String name, java.lang.String props)
return( ( OldClusterRefMBean)newProxy(
props + ",type=cluster-ref,ref=" + name, OldClusterRefMBean.class));
|
public OldClustersMBean | getOldClustersMBean()
return( newProxy( "type=clusters", OldClustersMBean.class ) );
|
public OldConfig | getOldConfig(java.lang.String name)
return( newProxy( "type=config,name=" + name, OldConfig.class ) );
|
public OldConfigsMBean | getOldConfigsMBean()
return( newProxy( "type=configs", OldConfigsMBean.class ) );
|
public OldConnectorConnectionPoolMBean | getOldConnectorConnectionPool(java.lang.String name)
return(
newProxy( "type=connector-connection-pool,name=" + name, OldConnectorConnectionPoolMBean.class ) );
|
public OldDASConfigMBean | getOldDASConfigMBean(java.lang.String configName)
return( newProxy(
"type=das-config,config=" + configName, OldDASConfigMBean.class ) );
|
public OldDomainMBean | getOldDomainMBean()
return( newProxy( "type=domain", OldDomainMBean.class ) );
|
public OldEJBContainerConfigMBean | getOldEJBContainerConfigMBean(java.lang.String configName)
return( newProxy(
"type=ejb-container,config=" + configName, OldEJBContainerConfigMBean.class ) );
|
public OldHTTPServiceMBean | getOldHTTPServiceMBean(java.lang.String configName)
return( newProxy(
"type=http-service,config=" + configName, OldHTTPServiceMBean.class ) );
|
public OldIIOPServiceMBean | getOldIIOPServiceMBean(java.lang.String configName)
return( newProxy(
"type=iiop-service,config=" + configName, OldIIOPServiceMBean.class ) );
|
public OldJMSServiceMBean | getOldJMSServiceMBean(java.lang.String configName)
return( newProxy(
"type=jms-service,config=" + configName, OldJMSServiceMBean.class ) );
|
public OldJavaConfigMBean | getOldJavaConfigMBean(java.lang.String configName)
return( newProxy(
"type=java-config,config=" + configName, OldJavaConfigMBean.class ) );
|
public OldLbConfig | getOldLbConfig(java.lang.String name)
return( (OldLbConfig)newProxy(
"type=lb-config,name="+name, OldLbConfig.class ) );
|
public OldLbConfigs | getOldLbConfigs()
return( newProxy( "type=lb-configs", OldLbConfigs.class ) );
|
public OldLoadBalancers | getOldLoadBalancers()
return( newProxy( "type=load-balancers", OldLoadBalancers.class ) );
|
public OldLogServiceMBean | getOldLogServiceMBean(java.lang.String configName)
return( newProxy(
"type=log-service,config=" + configName, OldLogServiceMBean.class ) );
|
public OldManagementRules | getOldManagementRules(java.lang.String configName)
return(
newProxy( getManagementRulesProps( configName ), OldManagementRules.class ) );
|
public OldMessageSecurityConfigMBean | getOldMessageSecurityConfigMBean(java.lang.String name)
return( newProxy(
"type=message-security-config,name=" + name,
OldMessageSecurityConfigMBean.class ) );
|
public OldModuleLogLevelsMBean | getOldModuleLogLevelsMBean(java.lang.String configName)
return( newProxy(
"type=module-log-levels,config=" + configName, OldModuleLogLevelsMBean.class ) );
|
public OldModuleMonitoringLevelsMBean | getOldModuleMonitoringLevelsMBean(java.lang.String configName)
return( newProxy(
"type=module-monitoring-levels,config=" + configName, OldModuleMonitoringLevelsMBean.class ) );
|
public OldMonitoringServiceMBean | getOldMonitoringServiceMBean(java.lang.String configName)
return( newProxy(
"type=monitoring-service,config=" + configName, OldMonitoringServiceMBean.class ) );
|
public OldProperties | getOldProperties(javax.management.ObjectName objectName)
return( newProxy( objectName, OldProperties.class ) );
|
public OldResourcesMBean | getOldResourcesMBean()
return( newProxy( "type=resources", OldResourcesMBean.class ) );
|
public OldSecurityMap | getOldSecurityMap(java.lang.String connectorConnectionPoolName, java.lang.String name)
final ObjectName securityMapObjectName =
getOldSecurityMapObjectName( connectorConnectionPoolName, name );
return newProxy( securityMapObjectName, OldSecurityMap.class );
|
public javax.management.ObjectName | getOldSecurityMapObjectName(java.lang.String connectorConnectionPoolName, java.lang.String name)
return getOldConnectorConnectionPool( connectorConnectionPoolName ).getSecurityMapByName( name );
|
public OldSecurityServiceMBean | getOldSecurityServiceMBean(java.lang.String configName)
return( newProxy(
"type=security-service,config=" + configName, OldSecurityServiceMBean.class ) );
|
public OldServerMBean | getOldServerMBean(java.lang.String serverName)
return( newProxy(
"type=server,name=" + serverName, OldServerMBean.class ) );
|
public OldServerRefMBean | getOldServerRefMBean(java.lang.String name, java.lang.String props)
return( ( OldServerRefMBean)newProxy(
props + ",type=server-ref,ref=" + name, OldServerRefMBean.class));
|
public OldServersMBean | getOldServersMBean()
return( newProxy( "type=servers", OldServersMBean.class ) );
|
public OldSessionConfigMBean | getOldSessionConfigMBean(java.lang.String configName)
return( newProxy(
"type=session,config=" + configName, OldSessionConfigMBean.class ) );
|
public OldSessionManagerMBean | getOldSessionManagerMBean(java.lang.String configName)
return( newProxy(
"type=session-manager,config=" + configName, OldSessionManagerMBean.class ) );
|
public OldSystemServicesMBean | getOldSystemServicesMBean()
return( newProxy( ObjectNames.kDefaultIASDomainName + ":type=system-services,server=server",
OldSystemServicesMBean.class ) );
|
public OldThreadPoolsConfigMBean | getOldThreadPoolsConfigMBean(java.lang.String configName)
return( newProxy(
"type=thread-pools,config=" + configName, OldThreadPoolsConfigMBean.class ) );
|
public OldTransactionServiceMBean | getOldTransactionServiceMBean(java.lang.String configName)
return( newProxy(
"type=transaction-service,config=" + configName, OldTransactionServiceMBean.class ) );
|
public OldVirtualServerMBean | getOldVirtualServerMBean(java.lang.String configName, java.lang.String virtualServer)
return( newProxy(
"type=virtual-server,config=" + configName +
",id=" + virtualServer, OldVirtualServerMBean.class ) );
|
public OldWebContainerConfigMBean | getOldWebContainerConfigMBean(java.lang.String configName)
return( newProxy(
"type=web-container,config=" + configName, OldWebContainerConfigMBean.class ) );
|
public OldWebServiceEndpointConfigMBean | getOldWebServiceEndpointConfigMBean(java.lang.String name)
return( ( OldWebServiceEndpointConfigMBean)newProxy(
"type=web-service-endpoint,name=" + name,
OldWebServiceEndpointConfigMBean.class));
|
public T | newProxy(javax.management.ObjectName target, java.lang.Class interfaceClass)
return interfaceClass.cast( MBeanServerInvocationHandler.newProxyInstance(
mServer, target, interfaceClass, false ) );
|
public T | newProxy(java.lang.String props, java.lang.Class interfaceClass)
final ObjectName objectName = queryOldConfigObjectName( props );
return newProxy( objectName, interfaceClass );
|
private javax.management.ObjectName | queryOldConfigObjectName(java.lang.String props)
final ObjectName pattern =
Util.newObjectNamePattern( OLD_DOMAIN,
Util.concatenateProps( props, "category=config" ) );
final Set<ObjectName> candidates = JMXUtil.queryNames( mServer, pattern, null );
ObjectName oldConfigObjectName = null;
if ( candidates.size() == 1 )
{
oldConfigObjectName = GSetUtil.getSingleton( candidates );
}
else if ( candidates.size() == 0 )
{
oldConfigObjectName = null;
}
else
{
final String msg = _strMgr.getString("FoundMoreThanOneMatch", props);
throw new IllegalArgumentException( msg );
}
return( oldConfigObjectName );
|