public class SharedStoreMasterPolicy extends Object implements HAPolicy<LiveActivation>
Constructor and Description |
---|
SharedStoreMasterPolicy() |
SharedStoreMasterPolicy(boolean failoverOnServerShutdown,
boolean waitForActivation) |
Modifier and Type | Method and Description |
---|---|
boolean |
canScaleDown() |
LiveActivation |
createActivation(ActiveMQServerImpl server,
boolean wasLive,
Map<String,Object> activationParams,
ActiveMQServerImpl.ShutdownOnCriticalErrorListener shutdownOnCriticalIO) |
String |
getBackupGroupName() |
long |
getFailbackDelay()
Deprecated.
|
String |
getScaleDownClustername() |
String |
getScaleDownGroupName() |
SharedStoreSlavePolicy |
getSharedStoreSlavePolicy() |
boolean |
isBackup() |
boolean |
isFailoverOnServerShutdown() |
boolean |
isSharedStore() |
boolean |
isWaitForActivation() |
void |
setFailbackDelay(long failbackDelay)
Deprecated.
|
void |
setFailoverOnServerShutdown(boolean failoverOnServerShutdown) |
void |
setSharedStoreSlavePolicy(SharedStoreSlavePolicy sharedStoreSlavePolicy) |
void |
setWaitForActivation(boolean waitForActivation) |
public SharedStoreMasterPolicy()
public SharedStoreMasterPolicy(boolean failoverOnServerShutdown, boolean waitForActivation)
@Deprecated public long getFailbackDelay()
@Deprecated public void setFailbackDelay(long failbackDelay)
public boolean isFailoverOnServerShutdown()
public void setFailoverOnServerShutdown(boolean failoverOnServerShutdown)
public boolean isWaitForActivation()
isWaitForActivation
in interface HAPolicy<LiveActivation>
public void setWaitForActivation(boolean waitForActivation)
public SharedStoreSlavePolicy getSharedStoreSlavePolicy()
public void setSharedStoreSlavePolicy(SharedStoreSlavePolicy sharedStoreSlavePolicy)
public boolean isSharedStore()
isSharedStore
in interface HAPolicy<LiveActivation>
public boolean isBackup()
isBackup
in interface HAPolicy<LiveActivation>
public boolean canScaleDown()
canScaleDown
in interface HAPolicy<LiveActivation>
public LiveActivation createActivation(ActiveMQServerImpl server, boolean wasLive, Map<String,Object> activationParams, ActiveMQServerImpl.ShutdownOnCriticalErrorListener shutdownOnCriticalIO)
createActivation
in interface HAPolicy<LiveActivation>
public String getBackupGroupName()
getBackupGroupName
in interface HAPolicy<LiveActivation>
public String getScaleDownGroupName()
getScaleDownGroupName
in interface HAPolicy<LiveActivation>
public String getScaleDownClustername()
getScaleDownClustername
in interface HAPolicy<LiveActivation>
Copyright © 2017 JBoss by Red Hat. All rights reserved.