public abstract class ClusteredServer extends IfsServer
IfsServer.ServerRequest
LEVEL_HIGH, LEVEL_LOW, LEVEL_MEDIUM, LEVEL_OFF
SERVERSTATUS_DISPOSED, SERVERSTATUS_RUNNING, SERVERSTATUS_STARTING, SERVERSTATUS_STOPPED, SERVERSTATUS_STOPPING, SERVERSTATUS_SUSPENDED, SERVERSTATUS_UNKNOWN
Constructor and Description |
---|
ClusteredServer()
Deprecated.
Constructs a ClusteredServer.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelRegistration()
Deprecated.
Cancels the registration for this Server.
|
boolean |
checkRegistration(Long tokenId)
Deprecated.
Checks the registration for this Server.
|
protected String |
deriveAgentIdentifier()
Deprecated.
|
protected String |
deriveRunningServerIdentifier()
Deprecated.
|
protected String |
getAgentIdentifier()
Deprecated.
Gets the agent identifier.
|
protected String |
getAgentIdentifierPrefix()
Deprecated.
Gets the prefix to use for deriving the agent identifier for this server.
|
protected long |
getRegistrationPeriod()
Deprecated.
Gets the registration period.
|
protected String |
getRunningNodeIdentifier()
Deprecated.
Gets the string used to identify a running node.
|
protected String |
getRunningNodeName()
Deprecated.
Gets the running node name.
|
String |
getRunningServerIdentifier()
Deprecated.
Gets the string used to identify a running server.
|
boolean |
initializeRegistration()
Deprecated.
Initializes the registration for this Server.
|
boolean |
isRegistered()
Deprecated.
Checks to see if this Server is registered to handle the processing
in the cluster.
|
boolean |
isServerRunning()
Deprecated.
Checks to see if the Server is considered a "running server", by
adding itself to the table of running servers.
|
protected boolean |
isTokenNonCompeting()
Deprecated.
Returns indication as to whether the server token is non-competing.
|
checkSession, connectSession, constructSession, convertTimerInterval, convertTimerInterval, convertTimerInterval, dispose, getLastTimerActivation, getLogger, getNextTimerActivation, getService, getTimerActivationPeriod, getTimerClassName, getTimerConfiguration, handlePriorityChangeRequest, handlePropertyChangeRequest, handlePropertyChangeRequest, handleRequest, handleRequests, handleResumeRequest, handleServerStateControllerRequest, handleStopRequest, handleSuspendRequest, handleTimerExpired, initialize, isNonCompeting, isPropertyReadonly, isServiceAvailable, isTimerActive, postCheckServerStateRequest, postRequest, postRun, preRun, processEvent, processEvents, queueEvent, resetTimer, restart, resume, run, serviceAvailabilityCheckNeeded, setPriority, setProperty, setProperty, start, startTimer, stop, stopRequested, stopTimer, suspend, timerExpired, waitForServiceAvailability, waitServer
acquireSession, constructLibrarySessionPool, createServerState, deregister, disconnectSession, getConfigurationOverridesTable, getConfigurationTable, getCredential, getDesiredStatus, getIfsHome, getInitialConfigurationTable, getLoggerForLegacyLogging, getName, getNode, getNodeName, getOracleHome, getParameterTable, getPriority, getProperties, getProperty, getServerConfigurationName, getServerState, getServerStateValue, getServerType, getServiceName, getSession, getStateTable, getStatus, getSystemUserCredential, handleServerConfigurationOverrideRequest, handleServerStateEvent, initialize, initialize, isAgent, isDisposed, isInitialized, isLogged, log, log, log, releaseSession, releaseSession, setDesiredStatus, setDesiredStatus, setSessionTimeoutPrevented, setStateProperty, setStatus, startStandalone, startStandalone, supportsPriority, supportsSuspendResume, toStatusLabel, toStatusLabel, toStatusLabel, verifyNotDisposed, verifyNotDisposed
public ClusteredServer() throws IfsException
IfsException
- if the operation failsprotected boolean isTokenNonCompeting() throws IfsException
A non-competing token is one that always assumes a Primary registration type, and always attempts to free the ApplicationToken upon unregistration.
isTokenNonCompeting
in class IfsServer
IfsException
- if the operation failspublic String getRunningServerIdentifier() throws IfsException
Is a composite of the agent identifier and the running node identifer, e.g. "IFS.AGENT.INTERNAL.CleanupAgent:stadc35_node1:9461928".
IfsException
- if the operation failsprotected String deriveAgentIdentifier() throws IfsException
IfsException
protected String deriveRunningServerIdentifier() throws IfsException
IfsException
protected String getAgentIdentifierPrefix() throws IfsException
IfsException
- if the operation failsprotected String getRunningNodeName() throws IfsException
Will derive this on this first call by using either the real node name, or using the node name set in standalone mode.
IfsException
- if the operation failsprotected String getRunningNodeIdentifier() throws IfsException
Is a composite of the running node name and the service ID, e.g. "stadc35_node1:9461928".
IfsException
- if the operation failsprotected String getAgentIdentifier() throws IfsException
Will derive this on this first call by invoking
deriveAgentIdentifier
.
IfsException
- if the operation failsprotected long getRegistrationPeriod()
public boolean initializeRegistration() throws IfsException
This method is called when the Server is about to enter the run loop, and when it is resumed.
IfsException
- if the operation failspublic void cancelRegistration() throws IfsException
This method is called when the Server exits the run loop, and when it is suspended.
Can be extended by clustered servers that have subordinate agent IDs to release (e.g. in EventHandlerAgent).
IfsException
- if the operation failspublic boolean checkRegistration(Long tokenId) throws IfsException
The tokenId argument specified indicates whether there is a specific token context for the check registration request, which can occur is the re-check is triggered by an event. If the tokenId specified is null, the re-check should be performed without exception.
tokenId
- the token Id context; null indicates that
the registration check should unequivocallyIfsException
- if the operation failspublic final boolean isRegistered() throws IfsException
This method is called prior to any processing in the server, e.g. the timer expired handler, any event handlers, etc.
IfsException
- if the operation failspublic boolean isServerRunning() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.