Package com.sun.enterprise.web

Examples of com.sun.enterprise.web.ServerConfigLookup


        }
        return result;
    }
   
    public List getCurrentGroupMembersViaAdmin() {
        ServerConfigLookup lookup = new ServerConfigLookup();
        ArrayList instanceNames = lookup.getServerNamesInCluster();
        return instanceNames;
    }
View Full Code Here


       }
       return currentAliveOrReadyMembers;
  

    public static boolean isServerLbEnabled(String instanceName) {
        ServerConfigLookup scl = new ServerConfigLookup();
  Cluster c = scl.getCluster();
  if (c == null) {
      return false;
  }
  ServerRef sr = c.getServerRefByRef(instanceName);
  if (sr == null) {
View Full Code Here

        }
        return result;
    }
   
    private String getClusterName() {
        ServerConfigLookup lookup = new ServerConfigLookup();
        return lookup.getClusterName();
    }     
View Full Code Here

        return true;
    }
   
    protected int getReplicationHealthcheckIntervalInSecondsFromConfig() {
        //FIXME add config.getReplicationHealthcheckIntervalInSecondsFromConfig
        ServerConfigLookup config = new ServerConfigLookup();
        return config.getHaStoreHealthcheckIntervalInSecondsFromConfig();
    }
View Full Code Here

   
    /**
     * This is done at start time
     */   
    private static void initializeHealthCheckEnabledFlag() {
        ServerConfigLookup config = new ServerConfigLookup();
        BooleanWrapper healthCheckEnabledWrapper
            = getInstance().getHealthCheckEnabledWrapper();
        if(healthCheckEnabledWrapper != null) {
            healthCheckEnabledWrapper.setValue(config.getHadbHealthCheckFromConfig());
        }      
    }
View Full Code Here

        }
    }

    public boolean isWaitForFastAckConfigured() {
        if (_waitForFastAckConfigured == null) {
            ServerConfigLookup lookup = new ServerConfigLookup();
            boolean waitForFastAckProp = lookup.getWaitForFastAckPropertyFromConfig();
            _waitForFastAckConfigured = new Boolean(waitForFastAckProp);
            //System.out.println("isWaitForFastAckConfigured = " + _waitForFastAckConfigured.booleanValue());
        }
        return _waitForFastAckConfigured.booleanValue();
    }
View Full Code Here

                originatingMsgElement != null ? originatingMsgElement.toString() : "?");
    }

    private boolean getReplicationMeasurementEnabled() {
        if (_replicationMeasurementEnabled == null) {
            ServerConfigLookup lookup = new ServerConfigLookup();
            _replicationMeasurementEnabled
                    = new Boolean(lookup.getReplicationMeasurementEnabledFromConfig());
        }
        return _replicationMeasurementEnabled.booleanValue();
    }
View Full Code Here

        return _replicationMeasurementEnabled.booleanValue();
    }

    private int getReplicationMeasurementInterval() {
        if (_replicationMeasurementInterval == -1) {
            ServerConfigLookup lookup = new ServerConfigLookup();
            _replicationMeasurementInterval
                    = lookup.getReplicationMeasurementIntervalFromConfig();
        }
        return _replicationMeasurementInterval;
    }
View Full Code Here

    String getInstanceName() {
        return ReplicationUtil.getInstanceName();
    }
   
    int getNumberOfPipes() {
        ServerConfigLookup lookup = new ServerConfigLookup();
        int result = lookup.getNumberOfReplicationPipesFromConfig();
        /*
        if(result < 2) {
            result = 2;
        }
         */
 
View Full Code Here

      return 0;
  return l.size() - 1;
    }

    public static int getNumberOfPipes() {
        ServerConfigLookup lookup = new ServerConfigLookup();
        int result = lookup.getNumberOfReplicationPipesFromConfig();

        if(result < 1) {
            result = 1;
        }
        return result;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.web.ServerConfigLookup

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.