1 23 24 29 package com.sun.appserv.management.helper; 30 31 import java.util.Set ; 32 import java.util.HashSet ; 33 34 import javax.management.ObjectName ; 35 36 import com.sun.appserv.management.base.AMX; 37 import com.sun.appserv.management.base.XTypes; 38 import com.sun.appserv.management.base.Util; 39 import com.sun.appserv.management.DomainRoot; 40 import com.sun.appserv.management.base.QueryMgr; 41 42 45 public final class DeployedItemHelper extends Helper 46 { 47 public 48 DeployedItemHelper( final DomainRoot domainRoot ) 49 { 50 super( domainRoot ); 51 } 52 53 60 public Set <ObjectName > 61 queryStandaloneServerDeployedItemObjectNames( 62 final String standaloneServerName ) 63 { 64 final String refsProp = 66 Util.makeJ2EETypeProp( XTypes.DEPLOYED_ITEM_REF_CONFIG ); 67 68 final String serverProp = 70 Util.makeProp( XTypes.STANDALONE_SERVER_CONFIG, standaloneServerName ); 71 72 return( Util.toObjectNames( propsQuery( refsProp, serverProp ) ) ); 73 } 74 75 82 public Set <ObjectName > 83 queryClusterDeployedItemObjectNames( 84 final String clusterName ) 85 { 86 final String refsProp = 88 Util.makeJ2EETypeProp( XTypes.DEPLOYED_ITEM_REF_CONFIG ); 89 90 final String clusterProp = 92 Util.makeProp( XTypes.CLUSTER_CONFIG, clusterName ); 93 94 return( Util.toObjectNames( propsQuery( refsProp, clusterProp ) ) ); 95 } 96 } 97 98 99 | Popular Tags |