public final class SharedNothingBackupActivation extends Activation
| Constructor and Description |
|---|
SharedNothingBackupActivation(ActiveMQServerImpl activeMQServer,
boolean attemptFailBack,
Map<String,Object> activationParams,
ActiveMQServerImpl.ShutdownOnCriticalErrorListener shutdownOnCriticalIO,
ReplicaPolicy replicaPolicy,
NetworkHealthCheck networkHealthCheck) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean permanently,
boolean restarting) |
JournalLoader |
createJournalLoader(PostOffice postOffice,
PagingManager pagingManager,
StorageManager storageManager,
QueueFactory queueFactory,
NodeManager nodeManager,
ManagementService managementService,
GroupingHandler groupingHandler,
Configuration configuration,
ActiveMQServer parentServer) |
void |
failOver(ReplicationLiveIsStoppingMessage.LiveStopping finalMessage)
Live has notified this server that it is going to stop.
|
ReplicationEndpoint |
getReplicationEndpoint() |
void |
haStarted() |
void |
init() |
boolean |
isRemoteBackupUpToDate()
Whether a remote backup server was in sync with its live server.
|
void |
preStorageClose() |
void |
remoteFailOver(ReplicationLiveIsStoppingMessage.LiveStopping finalMessage) |
void |
run() |
void |
setRemoteBackupUpToDate() |
boolean |
waitForBackupSync(long timeout,
TimeUnit unit)
Wait for backup synchronization when using synchronization
|
freezeConnections, getActivationChannelHandler, getHAManager, getReplicationManager, postConnectionFreeze, sendLiveIsStoppingpublic SharedNothingBackupActivation(ActiveMQServerImpl activeMQServer, boolean attemptFailBack, Map<String,Object> activationParams, ActiveMQServerImpl.ShutdownOnCriticalErrorListener shutdownOnCriticalIO, ReplicaPolicy replicaPolicy, NetworkHealthCheck networkHealthCheck)
public void run()
public void close(boolean permanently,
boolean restarting)
throws Exception
close in class ActivationExceptionpublic void preStorageClose()
throws Exception
preStorageClose in class ActivationExceptionpublic JournalLoader createJournalLoader(PostOffice postOffice, PagingManager pagingManager, StorageManager storageManager, QueueFactory queueFactory, NodeManager nodeManager, ManagementService managementService, GroupingHandler groupingHandler, Configuration configuration, ActiveMQServer parentServer) throws ActiveMQException
createJournalLoader in class ActivationActiveMQExceptionpublic void haStarted()
haStarted in class Activationpublic boolean waitForBackupSync(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - unit - true if the server was already initialized or if it was initialized within the
timeout period, false otherwise.InterruptedExceptionCountDownLatch.await(long, TimeUnit)public void failOver(ReplicationLiveIsStoppingMessage.LiveStopping finalMessage)
public ReplicationEndpoint getReplicationEndpoint()
public boolean isRemoteBackupUpToDate()
A local backup server or a live server should always return true
true.public void setRemoteBackupUpToDate()
public void remoteFailOver(ReplicationLiveIsStoppingMessage.LiveStopping finalMessage) throws ActiveMQException
ActiveMQExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.