public class ServiceWarmupAgent extends IfsServer
IfsServer.ServerRequest
Modifier and Type | Field and Description |
---|---|
static String |
IFS_SERVER_AGENT_SERVICEWARMUP_WarmupAclsStatus
The property specifying if the acl cache has been warmed up
|
static String |
IFS_SERVER_AGENT_SERVICEWARMUP_WarmupFormatsStatus
The property specifying if the format cache has been warmed up.
|
static String |
IFS_SERVER_AGENT_SERVICEWARMUP_WarmupMediasStatus
The property specifying if the media cache has been warmed up.
|
static String |
IFS_SERVER_AGENT_SERVICEWARMUP_WarmupUsersStatus
The property specifying if the user cache has been warmed up.
|
protected Thread |
m_ServiceWarmupThread
The Thread perofrming the warmup
|
protected static IfsLogger |
s_logger
Logging
|
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 |
---|
ServiceWarmupAgent()
Constructs the Agent.
|
Modifier and Type | Method and Description |
---|---|
IfsLogger |
getLogger()
Gets the appropriate logger for this server.
|
void |
initialize()
Initialize prior to running
|
boolean |
isAgent()
Gets whether this Server is an agent.
|
static void |
main(String[] args)
This is used to run the ServiceWarmup Agent in the standalone mode.
|
void |
postRun()
The post-run tasks for this Server.
|
protected void |
preRun()
The pre-run tasks for this Server.
|
protected void |
publishProperty(String name,
AttributeValue av)
Publish a property for the world to see
|
protected void |
publishProperty(String name,
boolean status)
Publish a boolean property for the world to see
|
void |
run()
The run tasks for this Agent.
|
protected void |
serviceWarmup()
Warmup the service caches
|
checkSession, connectSession, constructSession, convertTimerInterval, convertTimerInterval, convertTimerInterval, dispose, getLastTimerActivation, getNextTimerActivation, getService, getTimerActivationPeriod, getTimerClassName, getTimerConfiguration, handlePriorityChangeRequest, handlePropertyChangeRequest, handlePropertyChangeRequest, handleRequest, handleRequests, handleResumeRequest, handleServerStateControllerRequest, handleStopRequest, handleSuspendRequest, handleTimerExpired, isNonCompeting, isPropertyReadonly, isServiceAvailable, isTimerActive, isTokenNonCompeting, 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, supportsSuspendResume, toStatusLabel, toStatusLabel, toStatusLabel, verifyNotDisposed, verifyNotDisposed
public static final String IFS_SERVER_AGENT_SERVICEWARMUP_WarmupAclsStatus
public static final String IFS_SERVER_AGENT_SERVICEWARMUP_WarmupFormatsStatus
public static final String IFS_SERVER_AGENT_SERVICEWARMUP_WarmupMediasStatus
public static final String IFS_SERVER_AGENT_SERVICEWARMUP_WarmupUsersStatus
protected Thread m_ServiceWarmupThread
protected static IfsLogger s_logger
public ServiceWarmupAgent() throws IfsException
IfsException
public 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 boolean isAgent() throws IfsException
This method is called by iFS administration tools to group together servers that are agents in administration user interfaces.
isAgent
in interface ServerInterface
isAgent
in class Server
IfsException
- (IFS-45178) if the operation failspublic void run()
This method is called after preRun
each time this Server is started, and before
postRun
is invoked.
protected void preRun() throws Exception
This method is invoked each time this Server is started.
Unless overridden, no operation is performed by this method.
The Server status is SERVERSTATUS_STARTING
while this method executes. When this method returns, the
status changes to SERVERSTATUS_RUNNING
and
run
is invoked. However, if this method throws,
the status is set to SERVERSTATUS_STOPPING
and
postRun
is invoked.
public void postRun()
This method is invoked each time this Server is stopped, whether by the
run
method returning or either the preRun
or
run
methods throwing. Unless overridden, no operation is
performed by this method. While this method executes, the server status
is SERVERSTATUS_STOPPING
. When this method terminates (by
either returning or throwing), the status of the server is set to
SERVERSTATUS_STOPPED
.
public void initialize() throws Exception
initialize
in class IfsServer
Exception
- if the operation failsprotected void publishProperty(String name, AttributeValue av) throws Exception
Exception
protected void publishProperty(String name, boolean status) throws Exception
Exception
Copyright © 2023. All rights reserved.