public class BackupManager extends ClusterManagerBase implements AbstractReplicatedMap.MapOwner, DistributedManager
ManagerBase.SessionTimingLifecycle.SingleUse| Modifier and Type | Field and Description |
|---|---|
protected static long |
DEFAULT_REPL_TIMEOUT |
protected java.lang.String |
name
The name of this manager
|
protected static StringManager |
sm
The string manager for this package.
|
clusterduplicates, expiredSessions, maxActive, maxActiveSessions, processExpiresFrequency, processingTime, rejectedSessions, secureRandomAlgorithm, secureRandomClass, secureRandomProvider, sessionCounter, sessionCreationTiming, sessionExpirationTiming, sessionIdGenerator, sessionIdGeneratorClass, sessionMaxAliveTime, sessions, support, TIMING_STATS_CACHE_SIZEmserverAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
BackupManager()
Constructor, just calls super()
|
| Modifier and Type | Method and Description |
|---|---|
ClusterManager |
cloneFromTemplate() |
Session |
createEmptySession()
Get a session from the recycled ones or create a new empty one.
|
long |
getAccessTimeout() |
int |
getActiveSessionsFull()
Returns the total session count for primary, backup and proxy.
|
java.lang.String[] |
getInvalidatedSessions()
When the manager expires session not tied to a request.
|
java.lang.String |
getMapName() |
int |
getMapSendOptions() |
java.lang.String |
getMapSendOptionsName()
returns the SendOptions as a comma separated list of names
|
java.lang.String |
getName()
Return the name of the manager, at host /context name and at engine hostname+/context.
|
long |
getRpcTimeout() |
java.util.Set<java.lang.String> |
getSessionIdsFull()
Returns the list of all sessions IDS (primary, backup and proxy).
|
boolean |
isTerminateOnStartFailure() |
void |
messageDataReceived(ClusterMessage msg)
A message was received from another node, this is the callback method to implement if you are interested in
receiving replication messages.
|
void |
objectMadePrimary(java.lang.Object key,
java.lang.Object value) |
ClusterMessage |
requestCompleted(java.lang.String sessionId)
When the request has been completed, the replication valve will notify the manager, and the manager will decide
whether any replication is needed or not.
|
void |
setAccessTimeout(long accessTimeout) |
void |
setMapSendOptions(int mapSendOptions) |
void |
setMapSendOptions(java.lang.String mapSendOptions) |
void |
setName(java.lang.String name)
Set the name of the manager, at host /context name and at engine hostname+/context
|
void |
setRpcTimeout(long rpcTimeout) |
void |
setTerminateOnStartFailure(boolean terminateOnStartFailure) |
protected void |
startInternal()
Start this component and implement the requirements of
LifecycleBase.startInternal(). |
protected void |
stopInternal()
Stop this component and implement the requirements of
LifecycleBase.stopInternal(). |
clone, getClassLoaders, getClassLoaders, getCluster, getDeltaRequestPool, getReplicationStream, getReplicationStream, isNotifyListenersOnReplication, isRecordAllActions, load, registerSessionAtReplicationValve, setCluster, setNotifyListenersOnReplication, setRecordAllActions, unloadadd, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, changeSessionId, createSession, expireSession, findSession, findSessions, generateSessionId, getActiveSessions, getClassName, getContext, getCreationTime, getCreationTimestamp, getDomainInternal, getDuplicates, getEngine, getExpiredSessions, getJvmRoute, getLastAccessedTime, getLastAccessedTimestamp, getMaxActive, getMaxActiveSessions, getNewSession, getNotifyAttributeListenerOnUnchangedValue, getNotifyBindingListenerOnUnchangedValue, getObjectNameKeyProperties, getPersistAuthentication, getPersistAuthenticationNotes, getProcessExpiresFrequency, getProcessingTime, getRejectedSessions, getSecureRandomAlgorithm, getSecureRandomClass, getSecureRandomProvider, getSession, getSessionAttribute, getSessionAttributeNameFilter, getSessionAttributeNamePattern, getSessionAttributeValueClassNameFilter, getSessionAttributeValueClassNamePattern, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionMaxAliveTime, getThisAccessedTime, getThisAccessedTimestamp, getWarnOnSessionAttributeFilterFailure, initInternal, listSessionIds, processExpires, remove, remove, removePropertyChangeListener, rotateSessionId, setContext, setDuplicates, setExpiredSessions, setMaxActive, setMaxActiveSessions, setNotifyAttributeListenerOnUnchangedValue, setNotifyBindingListenerOnUnchangedValue, setPersistAuthentication, setPersistAuthenticationNotes, setProcessExpiresFrequency, setProcessingTime, setSecureRandomAlgorithm, setSecureRandomClass, setSecureRandomProvider, setSessionAttributeNameFilter, setSessionAttributeValueClassNameFilter, setSessionCounter, setSessionIdGenerator, setSessionMaxAliveTime, setWarnOnSessionAttributeFilterFailure, toString, updateSessionMaxAliveTime, willAttributeDistributedestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregisteraddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addPropertyChangeListener, backgroundProcess, changeSessionId, changeSessionId, createSession, findSession, findSessions, getActiveSessions, getContext, getExpiredSessions, getMaxActive, getNotifyAttributeListenerOnUnchangedValue, getNotifyBindingListenerOnUnchangedValue, getRejectedSessions, getSessionAverageAliveTime, getSessionCounter, getSessionCreateRate, getSessionExpireRate, getSessionIdGenerator, getSessionMaxAliveTime, remove, remove, removePropertyChangeListener, rotateSessionId, setContext, setExpiredSessions, setMaxActive, setNotifyAttributeListenerOnUnchangedValue, setNotifyBindingListenerOnUnchangedValue, setSessionCounter, setSessionIdGenerator, setSessionMaxAliveTime, willAttributeDistributeprotected static final StringManager sm
protected static final long DEFAULT_REPL_TIMEOUT
protected java.lang.String name
public void messageDataReceived(ClusterMessage msg)
ClusterManagermessageDataReceived in interface ClusterManagermsg - - the message received.public ClusterMessage requestCompleted(java.lang.String sessionId)
ClusterManagerrequestCompleted in interface ClusterManagersessionId - - the sessionId that just completed.public void objectMadePrimary(java.lang.Object key,
java.lang.Object value)
objectMadePrimary in interface AbstractReplicatedMap.MapOwnerpublic Session createEmptySession()
ManagercreateEmptySession in interface ManagercreateEmptySession in class ManagerBasepublic java.lang.String getName()
ClusterManagergetName in interface ClusterManagergetName in class ManagerBaseprotected void startInternal()
throws LifecycleException
LifecycleBase.startInternal(). Starts the cluster communication channel, this
will connect with the other nodes in the cluster, and request the current session state to be transferred to this
node.startInternal in class ClusterManagerBaseLifecycleException - if this component detects a fatal error that prevents this component from being
usedpublic java.lang.String getMapName()
protected void stopInternal()
throws LifecycleException
LifecycleBase.stopInternal(). This will disconnect the cluster communication
channel and stop the listener thread.stopInternal in class ClusterManagerBaseLifecycleException - if this component detects a fatal error that prevents this component from being
usedpublic void setName(java.lang.String name)
ClusterManagersetName in interface ClusterManagername - The manager namepublic void setMapSendOptions(int mapSendOptions)
public void setMapSendOptions(java.lang.String mapSendOptions)
public int getMapSendOptions()
public java.lang.String getMapSendOptionsName()
public void setRpcTimeout(long rpcTimeout)
public long getRpcTimeout()
public void setTerminateOnStartFailure(boolean terminateOnStartFailure)
public boolean isTerminateOnStartFailure()
public long getAccessTimeout()
public void setAccessTimeout(long accessTimeout)
public java.lang.String[] getInvalidatedSessions()
ClusterManagergetInvalidatedSessions in interface ClusterManagerpublic ClusterManager cloneFromTemplate()
cloneFromTemplate in interface ClusterManagerpublic int getActiveSessionsFull()
DistributedManagergetActiveSessionsFull in interface DistributedManagerpublic java.util.Set<java.lang.String> getSessionIdsFull()
DistributedManagergetSessionIdsFull in interface DistributedManagerCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.