1 23 24 29 30 31 package com.sun.enterprise.management.config; 32 33 import java.util.Map ; 34 35 import javax.management.ObjectName ; 36 import com.sun.appserv.management.base.XTypes; 37 import com.sun.appserv.management.base.Util; 38 39 import com.sun.appserv.management.config.JMXConnectorConfig; 40 import com.sun.appserv.management.config.AdminServiceConfig; 41 42 import com.sun.enterprise.management.config.AMXConfigImplBase; 43 import com.sun.enterprise.management.support.Delegate; 44 45 48 public final class AdminServiceConfigImpl extends AMXConfigImplBase 49 implements ConfigFactoryCallback 50 { 51 public 52 AdminServiceConfigImpl( final Delegate delegate ) 53 { 54 super( delegate ); 55 } 56 57 60 public ObjectName 61 createJMXConnectorConfig( 62 final String name, 63 final String address, 64 final int port, 65 final String authRealmName, 66 final Map <String ,String > optional ) 67 { 68 final String portString = "" + port; 69 70 final JMXConnectorConfig config = ((AdminServiceConfig)getSelf()).createJMXConnectorConfig( 71 name, address, portString, authRealmName, optional ); 72 return Util.getObjectName( config ); 73 } 74 75 76 } 77 78 79 80 81 82 83 84 | Popular Tags |