public class ColocatedPolicy extends Object implements HAPolicy<LiveActivation>
Constructor and Description |
---|
ColocatedPolicy(boolean requestBackup,
int backupRequestRetries,
long backupRequestRetryInterval,
int maxBackups,
int backupPortOffset,
List<String> excludedConnectors,
HAPolicy livePolicy,
BackupPolicy backupPolicy) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWaitForActivation
public ColocatedPolicy(boolean requestBackup, int backupRequestRetries, long backupRequestRetryInterval, int maxBackups, int backupPortOffset, List<String> excludedConnectors, HAPolicy livePolicy, BackupPolicy backupPolicy)
public String getBackupGroupName()
getBackupGroupName
in interface HAPolicy<LiveActivation>
public String getScaleDownGroupName()
getScaleDownGroupName
in interface HAPolicy<LiveActivation>
public boolean isSharedStore()
isSharedStore
in interface HAPolicy<LiveActivation>
public boolean isBackup()
isBackup
in interface HAPolicy<LiveActivation>
public LiveActivation createActivation(ActiveMQServerImpl server, boolean wasLive, Map<String,Object> activationParams, ActiveMQServerImpl.ShutdownOnCriticalErrorListener shutdownOnCriticalIO) throws Exception
createActivation
in interface HAPolicy<LiveActivation>
Exception
public boolean canScaleDown()
canScaleDown
in interface HAPolicy<LiveActivation>
public String getScaleDownClustername()
getScaleDownClustername
in interface HAPolicy<LiveActivation>
public boolean isRequestBackup()
public void setRequestBackup(boolean requestBackup)
public int getBackupRequestRetries()
public void setBackupRequestRetries(int backupRequestRetries)
public long getBackupRequestRetryInterval()
public void setBackupRequestRetryInterval(long backupRequestRetryInterval)
public int getMaxBackups()
public void setMaxBackups(int maxBackups)
public int getBackupPortOffset()
public void setBackupPortOffset(int backupPortOffset)
public HAPolicy<LiveActivation> getLivePolicy()
public void setLivePolicy(HAPolicy<LiveActivation> livePolicy)
public BackupPolicy getBackupPolicy()
public void setBackupPolicy(BackupPolicy backupPolicy)
Copyright © 2017 JBoss by Red Hat. All rights reserved.