public class ContentAgent extends BaseAgent implements IfsEventHandler
IfsServer.ServerRequest
Modifier and Type | Field and Description |
---|---|
static String |
IFS_SERVER_AGENT_CONTENTAGENT_ExtractContentForIndexingBatchSize |
static String |
IFS_SERVER_AGENT_CONTENTAGENT_FilteredContentRemovalPeriod |
static String |
IFS_SERVER_AGENT_CONTENTAGENT_FreedContentBatchSize |
static String |
IFS_SERVER_TIMER_ActivationPeriod |
static String |
IFS_SERVER_TIMER_InitialDelay |
static String |
IFS_SERVER_TIMER_InitialTimeOfDay |
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 |
---|
ContentAgent()
Constructs the ContentAgent.
|
Modifier and Type | Method and Description |
---|---|
protected void |
activate()
Handle timer expired.
|
void |
disableEventListening()
Disable listening for events.
|
void |
enableEventListening()
Enable listening events on any ContentVaultEntry.
|
IfsLogger |
getLogger()
Gets the appropriate logger for this server.
|
void |
handleEvent(IfsEvent event)
Handles events.
|
protected void |
handleResumeRequest()
handle the resume request.
|
protected void |
handleSuspendRequest()
handle the suspend request.
|
void |
initialize()
Initialize prior to running
|
protected void |
initOnRun()
Initialize at start of run method.
|
static void |
main(String[] args)
This is used to run the ContentAgent in the standalone mode.
|
void |
postRun()
Performs post-run tasks.
|
void |
processEvent(IfsEvent event)
Process the next event.
|
protected void |
processWithinRun()
Process within the run loop.
|
addToProperty, handleStopRequest, handleTimerExpired, incrementProperty, isAgent, 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, preRun, 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 IFS_SERVER_TIMER_InitialTimeOfDay
public static final String IFS_SERVER_TIMER_ActivationPeriod
public static final String IFS_SERVER_TIMER_InitialDelay
public static final String IFS_SERVER_AGENT_CONTENTAGENT_FilteredContentRemovalPeriod
public static final String IFS_SERVER_AGENT_CONTENTAGENT_FreedContentBatchSize
public static final String IFS_SERVER_AGENT_CONTENTAGENT_ExtractContentForIndexingBatchSize
public ContentAgent() throws IfsException
IfsException
- (IFS-46000) if the operation failspublic static void main(String[] args) throws Exception
Exception
public IfsLogger getLogger()
Typically overridden by subclasses to return the IfsLogger associatged with the specific server.
public void initialize() throws Exception
initialize
in class BaseAgent
Exception
- if the operation failsprotected void initOnRun() throws Exception
public void postRun()
protected void handleSuspendRequest() throws Exception
BaseAgent
handleSuspendRequest
in class BaseAgent
Exception
- if the operation failsprotected void handleResumeRequest() throws Exception
BaseAgent
handleResumeRequest
in class BaseAgent
Exception
- if the operation failspublic void enableEventListening() throws IfsException
IfsException
- if the operation failspublic void disableEventListening() throws IfsException
IfsException
- if the operation failspublic void handleEvent(IfsEvent event) throws IfsException
handleEvent
in interface IfsEventHandler
event
- the eventIfsException
- if the operation failspublic void processEvent(IfsEvent event) throws IfsException
processEvent
in class IfsServer
event
- The next event to process.IfsException
- if the operation failsprotected void processWithinRun() throws IfsException
processWithinRun
in class BaseAgent
IfsException
- if the operation failsprotected void activate() throws IfsException
activate
in class BaseAgent
IfsException
- if the operation failsCopyright © 2023. All rights reserved.