public class ExecutedActionRetainedEventAgent extends RetainedEventAgent
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 |
---|
ExecutedActionRetainedEventAgent()
Constructs the ExecutedActionRetainedEventAgent.
|
Modifier and Type | Method and Description |
---|---|
void |
disableEventListening()
Disable listening for events on the ActivityRecord class.
|
void |
enableEventListening()
Enable listening events on ActivityRecord class.
|
protected String |
getBatchSizePropertyName()
Get the name of the property used to specify the event batch size.
|
protected String |
getEventTargetKey()
Get the event target key used for this agent.
|
IfsLogger |
getLogger()
Gets the appropriate logger for this server.
|
protected RetainedEvent |
getRetainedEventSeed()
Gets the retained event "seed" to select the appropriate type
of retained events.
|
protected String |
getRetryAttemptsPropertyName()
Get the name of the property used to specify the number of
times to retry process an event in case of failure.
|
protected void |
handlePropertyChangeRequest(AttributeValue av)
Handles updates to dynamic properties.
|
protected void |
handleTimerExpired()
Handles a timer expiration.
|
void |
initialize()
Perform one time initialization tasks upon loading.
|
boolean |
isPropertyReadonly(String name)
Returns true if the property name specified is readonly.
|
static void |
main(String[] args)
This is used to run the ExecutedActionRetainedEventAgent in the standalone mode.
|
protected void |
processRetainedEvent(LibrarySession session,
RetainedEvent re)
Process a retained event.
|
protected void |
refreshLastViewedDeltas(LibrarySession session,
ActivityRecord ar)
Refresh the last viewed deltas for all TARs that exist for the
specified ActivityRecord.
|
getBatchSize, getRetryAttempts, handleEvent, handleResumeRequest, handleStopRequest, handleSuspendRequest, isAgent, postProcessRetainedEvents, postRun, preBatchProcessing, processEvent, run, 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, handleRequest, handleRequests, handleServerStateControllerRequest, isNonCompeting, 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 ExecutedActionRetainedEventAgent() throws IfsException
IfsException
- if the operation failspublic static void main(String[] args) throws Exception
args
- command line argsException
- if the operation failspublic IfsLogger getLogger()
Typically overridden by subclasses to return the IfsLogger associatged with the specific server.
getLogger
in class RetainedEventAgent
public void initialize() throws Exception
initialize
in class RetainedEventAgent
Exception
- if the operation failsprotected RetainedEvent getRetainedEventSeed()
getRetainedEventSeed
in class RetainedEventAgent
protected String getEventTargetKey()
getEventTargetKey
in class RetainedEventAgent
protected String getBatchSizePropertyName()
getBatchSizePropertyName
in class RetainedEventAgent
protected String getRetryAttemptsPropertyName()
getRetryAttemptsPropertyName
in class RetainedEventAgent
public boolean isPropertyReadonly(String name) throws IfsException
isPropertyReadonly
in interface ServerInterface
isPropertyReadonly
in class RetainedEventAgent
name
- name of the propertyIfsException
- if the operation failsprotected void handlePropertyChangeRequest(AttributeValue av) throws Exception
handlePropertyChangeRequest
in class RetainedEventAgent
av
- the property that was changedException
- if the operation failspublic void enableEventListening() throws IfsException
enableEventListening
in class RetainedEventAgent
IfsException
- if the operation failspublic void disableEventListening() throws IfsException
disableEventListening
in class RetainedEventAgent
IfsException
- if the operation failsprotected void handleTimerExpired() throws Exception
handleTimerExpired
in class RetainedEventAgent
Exception
- if the operation failsprotected void processRetainedEvent(LibrarySession session, RetainedEvent re) throws IfsException
processRetainedEvent
in class RetainedEventAgent
session
- session contextre
- the retained event to processIfsException
- if the operation failsprotected void refreshLastViewedDeltas(LibrarySession session, ActivityRecord ar)
session
- session contextar
- the ActivityRecord to processCopyright © 2023. All rights reserved.