1 23 package com.sun.enterprise.management.config; 24 25 import java.util.Map ; 26 import java.util.Set ; 27 28 import javax.management.ObjectName ; 29 30 import com.sun.appserv.management.base.Util; 31 import com.sun.appserv.management.util.misc.GSetUtil; 32 import com.sun.appserv.management.helper.RefHelper; 33 34 import com.sun.appserv.management.config.DomainConfig; 35 import com.sun.appserv.management.config.StandaloneServerConfig; 36 import com.sun.appserv.management.config.ClusteredServerConfig; 37 38 import com.sun.enterprise.management.support.Delegate; 39 import com.sun.enterprise.management.config.AMXConfigImplBase; 40 41 42 43 44 46 public final class DomainConfigImpl extends AMXConfigImplBase 47 implements ConfigFactoryCallback 48 { 50 public 51 DomainConfigImpl( Delegate delegate ) 52 { 53 super( delegate ); 54 } 55 56 57 private static final Set <String > NOT_SUPERFLUOUS = 58 GSetUtil.newUnmodifiableStringSet( 59 "getServerConfigObjectNameMap" 60 ); 61 62 protected final Set <String > 63 getNotSuperfluousMethods() 64 { 65 return GSetUtil.newSet( super.getNotSuperfluousMethods(), NOT_SUPERFLUOUS ); 66 } 67 68 public Map <String ,ObjectName > 69 getServerConfigObjectNameMap() 70 { 71 final Map <String ,StandaloneServerConfig> m1 = 72 ((DomainConfig)getSelf()).getStandaloneServerConfigMap(); 73 final Map <String ,ClusteredServerConfig> m2 = 74 ((DomainConfig)getSelf()).getClusteredServerConfigMap(); 75 76 final Map <String ,ObjectName > allObjectNames = Util.toObjectNames( m1 ); 77 allObjectNames.putAll( Util.toObjectNames( m2 ) ); 78 79 return allObjectNames; 80 } 81 } 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | Popular Tags |