public class GarbageCollectionAgent extends BaseAgent
| Modifier and Type | Class and Description |
|---|---|
static class |
GarbageCollectionAgent.PublicObjectInfo
Represents info for a selected PublicObject.
|
IfsServer.ServerRequest| Modifier and Type | Field and Description |
|---|---|
static String |
IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementCreator |
static String |
IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementDeletor |
static String |
IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementModifier |
static String |
IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementOwner |
static String |
IFS_SERVER_TIMER_ActivationPeriod |
static String |
IFS_SERVER_TIMER_InitialDelay |
static String |
IFS_SERVER_TIMER_InitialTimeOfDay |
protected int |
m_ErrorCountThisActivation
The number of errors occuring in the current Activation.
|
ERROR_COUNT_CUMULATIVE, ERROR_COUNT_LAST_ACTIVATIONLEVEL_HIGH, LEVEL_LOW, LEVEL_MEDIUM, LEVEL_OFFSERVERSTATUS_DISPOSED, SERVERSTATUS_RUNNING, SERVERSTATUS_STARTING, SERVERSTATUS_STOPPED, SERVERSTATUS_STOPPING, SERVERSTATUS_SUSPENDED, SERVERSTATUS_UNKNOWN| Constructor and Description |
|---|
GarbageCollectionAgent()
Constructs the GarbageCollectionAgent.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate()
Perform garbage collection.
|
IfsLogger |
getLogger()
Gets the appropriate logger for this server.
|
void |
initialize()
Initialize prior to running
|
static void |
main(String[] args)
Static main for running GarbageCollectionAgent Agent standalone.
|
protected GarbageCollectionAgent.PublicObjectInfo[] |
selectIdBatch(LibrarySession session,
String attrName,
long lastId,
int batchSize)
Select a batch of PublicObject IDs that reference a non-existent user
via one of the PublicObject attributes.
|
addToProperty, handleResumeRequest, handleStopRequest, handleSuspendRequest, handleTimerExpired, incrementProperty, initOnRun, isAgent, postRun, processWithinRun, publishProperty, run, standardPostRun, supportsSuspendResumecancelRegistration, checkRegistration, deriveAgentIdentifier, deriveRunningServerIdentifier, getAgentIdentifier, getAgentIdentifierPrefix, getRegistrationPeriod, getRunningNodeIdentifier, getRunningNodeName, getRunningServerIdentifier, initializeRegistration, isRegistered, isServerRunning, isTokenNonCompetingcheckSession, connectSession, constructSession, convertTimerInterval, convertTimerInterval, convertTimerInterval, dispose, getLastTimerActivation, getNextTimerActivation, getService, getTimerActivationPeriod, getTimerClassName, getTimerConfiguration, handlePriorityChangeRequest, handlePropertyChangeRequest, handlePropertyChangeRequest, handleRequest, handleRequests, handleServerStateControllerRequest, isNonCompeting, isPropertyReadonly, isServiceAvailable, isTimerActive, postCheckServerStateRequest, postRequest, preRun, processEvent, processEvents, queueEvent, resetTimer, restart, resume, serviceAvailabilityCheckNeeded, setPriority, setProperty, setProperty, start, startTimer, stop, stopRequested, stopTimer, suspend, timerExpired, waitForServiceAvailability, waitServeracquireSession, 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, verifyNotDisposedpublic static final String IFS_SERVER_TIMER_ActivationPeriod
public static final String IFS_SERVER_TIMER_InitialTimeOfDay
public static final String IFS_SERVER_TIMER_InitialDelay
public static final String IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementOwner
public static final String IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementDeletor
public static final String IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementCreator
public static final String IFS_SERVER_AGENT_GARBAGECOLLECTIONAGENT_ReplacementModifier
protected int m_ErrorCountThisActivation
public GarbageCollectionAgent()
throws IfsException
IfsException - if the operation failspublic static void main(String[] args) throws Exception
args - commandline argsException - if the operation failspublic IfsLogger getLogger()
Typically overridden by subclasses to return the IfsLogger associatged with the specific server.
public void initialize()
throws Exception
initialize in class BaseAgentException - if the operation failsprotected void activate()
throws IfsException
activate in class BaseAgentIfsException - if the operation failsprotected GarbageCollectionAgent.PublicObjectInfo[] selectIdBatch(LibrarySession session, String attrName, long lastId, int batchSize) throws IfsException
session - session contextattrName - Name of the DirectoryUser attribute being handledlastId - the last ID processed, included in the query
to only process IDs greater than this valuebatchSize - the maximum number of rows to be selectedSQLException - if the operation failsIfsExceptionCopyright © 2025. All rights reserved.