Class MBeanScheduler
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.technical.WakeupThread
ecmwf.common.ecaccess.ECaccessScheduler
ecmwf.common.ecaccess.MBeanScheduler
- All Implemented Interfaces:
MBeanService
,MonitorCallback
,Closeable
,AutoCloseable
,Runnable
- Direct Known Subclasses:
DestinationProductStatusCalculatorTask
,DestinationProductStatusResetterTask
,MasterServer.AcquisitionScheduler
,MasterServer.BackupScheduler
,MasterServer.DownloadScheduler
,MasterServer.EventScheduler
,MasterServer.FilterScheduler
,MasterServer.ProxyScheduler
,MasterServer.PurgeScheduler
,MasterServer.ReplicateScheduler
,MBeanRepository
,MonitoringStatusCalculatorTask
,TransferScheduler
The Class MBeanScheduler.
-
Field Summary
Fields inherited from class ecmwf.common.ecaccess.ECaccessScheduler
NEXT_STEP_ABORT, NEXT_STEP_CONTINUE, NEXT_STEP_DELAY, NEXT_STEP_INIT, SCHEDULER_STATE_CLOSING, SCHEDULER_STATE_JAMMED, SCHEDULER_STATE_OFFLINE, SCHEDULER_STATE_ONHOLD, SCHEDULER_STATE_ONLINE, SCHEDULER_STATE_OPENING, states, steps
-
Constructor Summary
ConstructorsConstructorDescriptionMBeanScheduler
(String name) Instantiates a new m bean scheduler.MBeanScheduler
(String group, String name) Instantiates a new m bean scheduler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close.getAttribute
(String attributeName) Gets the attribute.Gets the MBean info.Gets the monitor name.Invoke.boolean
setAttribute
(String name, Object value) Sets the attribute.void
shutdown()
Shutdown.Methods inherited from class ecmwf.common.ecaccess.ECaccessScheduler
configurableRun, deactivateMonitor, getActivity, getDelay, getJammedTimeout, getLastStepTime, getMonitorManager, getNextStep, getSchedulerState, getStartDate, getStepTime, initialize, isInitialized, isJammed, isOnHold, isRunning, nextStep, onHold, setDelay, setJammedTimeout, setOnhold, setTimeRanges, start, wakeup
Methods inherited from class ecmwf.common.technical.WakeupThread
isSleeping, waitFor
Methods inherited from class ecmwf.common.technical.ThreadService.ConfigurableRunnable
execute, execute, getContextClassLoader, getPriority, getThreadName, interrupt, interrupted, isAlive, isStarted, join, join, run, setContextClassLoader, setForceCookie, setInheritCookie, setPriority, setThreadNameAndCookie
-
Constructor Details
-
MBeanScheduler
-
MBeanScheduler
-
-
Method Details
-
getMonitorName
Gets the monitor name. Gets the monitor name.- Overrides:
getMonitorName
in classECaccessScheduler
- Returns:
- the monitor name
-
getMBeanInfo
Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Returns:
- the MBean info
-
getAttribute
Gets the attribute. Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- Parameters:
attributeName
- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException
- the attribute not found exceptionMBeanException
- the MBean exception
-
setAttribute
public boolean setAttribute(String name, Object value) throws InvalidAttributeValueException, MBeanException Sets the attribute. Sets the attribute.- Specified by:
setAttribute
in interfaceMBeanService
- Parameters:
name
- the namevalue
- the value- Returns:
- true, if successful
- Throws:
InvalidAttributeValueException
- the invalid attribute value exceptionMBeanException
- the MBean exception
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke.- Specified by:
invoke
in interfaceMBeanService
- Parameters:
operationName
- the operation nameparams
- the paramssignature
- the signature- Returns:
- the object
- Throws:
NoSuchMethodException
- the no such method exceptionMBeanException
- the MBean exception
-
close
public void close()Close.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
shutdown
-