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, sendLiveIsStopping
public 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 Activation
Exception
public void preStorageClose() throws Exception
preStorageClose
in class Activation
Exception
public 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 Activation
ActiveMQException
public void haStarted()
haStarted
in class Activation
public 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.InterruptedException
CountDownLatch.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
ActiveMQException
Copyright © 2018 JBoss by Red Hat. All rights reserved.