Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.SystemPropertiesAccess


     * @return  String port property value represented by the variable
     */
    public static String resolveToken(String pn, String configName, String instanceName) {
        //For EE, the instance will have its own override System Properties value instead of using the one from config.
        if (AMXUtil.isEE()) {
            SystemPropertiesAccess sprops = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(instanceName);
            if (sprops == null) {
                sprops = AMXUtil.getDomainConfig().getClusteredServerConfigMap().get(instanceName);
            }
            if (sprops != null) {
                if (sprops.existsSystemProperty(pn)) {
                    return sprops.getSystemPropertyValue(pn);
                }
            }
        }
        ConfigConfig config = AMXUtil.getConfig(configName);
        return config.getSystemPropertyValue(pn);
View Full Code Here


    {
      throw new IllegalArgumentException(
        "MBean does not implement SystemPropertiesAccess: " + quote( src ) );
    }
   
    final SystemPropertiesAccess  props  = (SystemPropertiesAccess)proxy;
    checkPropertiesGet( props );
  }
View Full Code Here

 
    public void
  checkSetPropertiesSetToSameValue( final ObjectName src )
    throws Exception
  {
    final SystemPropertiesAccess  props  = getProxy( src, SystemPropertiesAccess.class );
   
    testPropertiesSetToSameValue( props );
  }
View Full Code Here

 
    public void
  checkCreateRemove( final ObjectName src )
    throws Exception
  {
    final SystemPropertiesAccess  props  =
        getProxy( src, SystemPropertiesAccess.class );
   
    testSystemPropertiesCreateRemove( props );
  }
View Full Code Here

    
   
    private static String resolveToken(String pn, String configName, String instanceName) {
        //For EE, the instance will have its own override System Properties value instead of using the one from config.
        if (AMXUtil.isEE()){
            SystemPropertiesAccess sprops = AMXUtil.getDomainConfig().getStandaloneServerConfigMap().get(instanceName);
            if (sprops == null){
                sprops = AMXUtil.getDomainConfig().getClusteredServerConfigMap().get(instanceName);
            }
            if (sprops != null){
                if (sprops.existsSystemProperty(pn)){
                    return sprops.getSystemPropertyValue(pn);
                }
            }
        }
        ConfigConfig config = AMXUtil.getConfig(configName);
        return config.getSystemPropertyValue(pn);
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.SystemPropertiesAccess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.