@Override
 public boolean shouldSyncWhenTimestampDiffers() {
   return configInstance.getBooleanProperty(namespace + "syncWhenTimestampDiffers", true).get();
 }
 @Override
 public boolean shouldDisableDelta() {
   return configInstance.getBooleanProperty(namespace + "disableDelta", false).get();
 }
 @Override
 public boolean shouldRetryIndefinitelyToReplicateStatus() {
   return configInstance
       .getBooleanProperty(namespace + "retryIndefinitelyToReplicateStatus", true)
       .get();
 }
 @Override
 public boolean shouldReplicateOnlyIfUP() {
   return configInstance.getBooleanProperty(namespace + "replicateOnlyIfUP", true).get();
 }
 /*
  * (non-Javadoc)
  * @see com.netflix.eureka.EurekaServerConfig#shouldEnableSelfPreservation()
  */
 @Override
 public boolean shouldEnableSelfPreservation() {
   return configInstance.getBooleanProperty(namespace + "enableSelfPreservation", true).get();
 }
Пример #6
0
 private void initCloudInstanceConfig(String namespace) {
   propValidateInstanceId = INSTANCE.getBooleanProperty(namespace + "validateInstanceId", true);
   info = initDataCenterInfo();
 }