Class MasterServer.BackupScheduler
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.technical.WakeupThread
ecmwf.common.ecaccess.ECaccessScheduler
ecmwf.common.ecaccess.MBeanScheduler
ecmwf.ecpds.master.MasterServer.BackupScheduler
- All Implemented Interfaces:
MBeanService, MonitorCallback, Closeable, AutoCloseable, Runnable
- Enclosing class:
MasterServer
The Class BackupScheduler.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the activity.getAttribute(String attributeName) Gets the attribute.intGets the backup threads count.Gets the MBean info.intgetThreadCount(Host hostForBackup) Return the number of threads with the specified host for source name.Gets the thread list.intnextStep()Next step.Methods inherited from class MBeanScheduler
close, getMonitorName, invoke, setAttribute, shutdownMethods inherited from class ECaccessScheduler
configurableRun, deactivateMonitor, getDelay, getJammedTimeout, getLastStepTime, getMonitorManager, getNextStep, getSchedulerState, getStartDate, getStepTime, initialize, isInitialized, isJammed, isOnHold, isRunning, onHold, setDelay, setJammedTimeout, setOnhold, setTimeRanges, start, wakeupMethods inherited from class WakeupThread
isSleeping, waitForMethods inherited from class ThreadService.ConfigurableRunnable
execute, execute, execute, getContextClassLoader, getPriority, getThreadName, interrupt, interrupted, isAlive, isStarted, join, join, run, setContextClassLoader, setForceCookie, setInheritCookie, setPriority, setThreadNameAndCookie
-
Constructor Details
-
BackupScheduler
Instantiates a new backup scheduler.- Parameters:
name- the name
-
-
Method Details
-
getBackupThreadsCount
public int getBackupThreadsCount()Gets the backup threads count.- Returns:
- the backup threads count
-
getThreadCount
Return the number of threads with the specified host for source name.- Parameters:
hostForBackup- the host for backup- Returns:
- the thread count
-
getActivity
Gets the activity.- Overrides:
getActivityin classECaccessScheduler- Returns:
- the activity
-
getThreadList
-
getMBeanInfo
Gets the MBean info.- Specified by:
getMBeanInfoin interfaceMBeanService- Overrides:
getMBeanInfoin classMBeanScheduler- Returns:
- the MBean info
-
getAttribute
Gets the attribute.- Specified by:
getAttributein interfaceMBeanService- Overrides:
getAttributein classMBeanScheduler- Parameters:
attributeName- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException- the attribute not found exceptionMBeanException- the MBean exception
-
nextStep
-