public class ExpirationAgent extends BaseAgent
The Agent will directly free the expired Publicobjects.
IfsServer.ServerRequest
Modifier and Type | Field and Description |
---|---|
static String |
EXPIRECOUNTCUMULATIVE
This property indicates the delete count since the server started.
|
static String |
EXPIRECOUNTLASTACTIVATION
This property indicates the delete count in the last activation.
|
protected int |
m_DeletedCumulative
The number of expired PublicObjects this Agent attempted to delete
since it was started.
|
protected int |
m_DeletedLastActivation
The number of expired PublicObjects this Agent attempted to delete
during its most-recent activation.
|
protected int |
m_ErrorCountThisActivation
The number of errors occuring in the current Activation.
|
ERROR_COUNT_CUMULATIVE, ERROR_COUNT_LAST_ACTIVATION
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 |
---|
ExpirationAgent()
Constructs the ExpirationAgent.
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate()
Deletes undeleted expired PublicObjects.
|
IfsLogger |
getLogger()
Gets the appropriate logger for this server.
|
void |
initialize()
Initialize this server.
|
void |
initOnRun()
This is an extensibility point provided by BaseAgent.
|
static void |
main(String[] args)
This is used to run the ExpirationAgent in the standalone mode.
|
void |
preRun()
Preforms pre run tasks.
|
protected PublicObject[] |
selectExpiredObjectBatch(int batchSize)
Select the next batch of expired PublicObjects.
|
addToProperty, handleResumeRequest, handleStopRequest, handleSuspendRequest, handleTimerExpired, incrementProperty, isAgent, postRun, processWithinRun, publishProperty, run, standardPostRun, supportsSuspendResume
cancelRegistration, checkRegistration, deriveAgentIdentifier, deriveRunningServerIdentifier, getAgentIdentifier, getAgentIdentifierPrefix, getRegistrationPeriod, getRunningNodeIdentifier, getRunningNodeName, getRunningServerIdentifier, initializeRegistration, isRegistered, isServerRunning, isTokenNonCompeting
checkSession, connectSession, constructSession, convertTimerInterval, convertTimerInterval, convertTimerInterval, dispose, getLastTimerActivation, getNextTimerActivation, getService, getTimerActivationPeriod, getTimerClassName, getTimerConfiguration, handlePriorityChangeRequest, handlePropertyChangeRequest, handlePropertyChangeRequest, handleRequest, handleRequests, handleServerStateControllerRequest, isNonCompeting, isPropertyReadonly, isServiceAvailable, isTimerActive, postCheckServerStateRequest, postRequest, processEvent, processEvents, queueEvent, resetTimer, restart, resume, 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, isDisposed, isInitialized, isLogged, log, log, log, releaseSession, releaseSession, setDesiredStatus, setDesiredStatus, setSessionTimeoutPrevented, setStateProperty, setStatus, startStandalone, startStandalone, supportsPriority, toStatusLabel, toStatusLabel, toStatusLabel, verifyNotDisposed, verifyNotDisposed
public static final String EXPIRECOUNTCUMULATIVE
public static final String EXPIRECOUNTLASTACTIVATION
protected int m_DeletedLastActivation
protected int m_DeletedCumulative
protected int m_ErrorCountThisActivation
public ExpirationAgent() throws IfsException
IfsException
- if the operation failspublic static void main(String[] args) throws Exception
args
- Command-line argumentsException
- if the operation failspublic IfsLogger getLogger()
Typically overridden by subclasses to return the IfsLogger associatged with the specific server.
public void initOnRun() throws Exception
public void preRun() throws Exception
public void initialize() throws Exception
initialize
in class BaseAgent
Exception
- if the operation failsprotected void activate() throws IfsException
activate
in class BaseAgent
IfsException
- if the operation failsprotected PublicObject[] selectExpiredObjectBatch(int batchSize) throws IfsException
batchSize
- the batch sizeIfsException
- if the operation failsCopyright © 2023. All rights reserved.