Class TransferScheduler.DestinationThread
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.technical.WakeupThread
ecmwf.common.ecaccess.ECaccessScheduler
ecmwf.common.ecaccess.MBeanScheduler
ecmwf.common.ecaccess.MBeanRepository<DataTransfer>
ecmwf.ecpds.master.transfer.TransferScheduler.DestinationThread
- All Implemented Interfaces:
MBeanService
,MonitorCallback
,Closeable
,AutoCloseable
,Runnable
- Enclosing class:
TransferScheduler
The Class DestinationThread.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionGets the activity.getAttribute
(String attributeName) Gets the attribute.int
Gets the destination step.getKey
(DataTransfer transfer) Gets the key.Gets the last failed transfer.Gets the last transfer.Gets the MBean info.Gets the next transfer.int
Gets the performed.int
Gets the selected.getStatus
(DataTransfer transfer) Gets the status.void
Initialize.void
Load pending data transfers.int
nextStep()
Next step.void
reset()
Reset.void
shutdown()
Shutdown.void
Shutdown.boolean
Signal is should be reset.Methods inherited from class ecmwf.common.ecaccess.MBeanRepository
clear, containsKey, containsValue, getComparator, getList, getList, getSize, getStatus, getValue, getWakeup, invoke, put, removeKey, removeValue, setComparator, setMaxAuthorisedSize, setWakeup, sort
Methods inherited from class ecmwf.common.ecaccess.MBeanScheduler
close, getMonitorName, setAttribute
Methods inherited from class ecmwf.common.ecaccess.ECaccessScheduler
configurableRun, deactivateMonitor, getDelay, getJammedTimeout, getLastStepTime, getMonitorManager, getNextStep, getSchedulerState, getStartDate, getStepTime, isInitialized, isJammed, isOnHold, isRunning, 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
-
Method Details
-
getKey
Gets the key.- Overrides:
getKey
in classMBeanRepository<DataTransfer>
- Parameters:
transfer
- the transfer- Returns:
- the key
-
getLastTransfer
-
getNextTransfer
-
getLastFailedTransfer
Gets the last failed transfer.- Returns:
- the last failed transfer
-
getStatus
Gets the status.- Overrides:
getStatus
in classMBeanRepository<DataTransfer>
- Parameters:
transfer
- the transfer- Returns:
- the status
-
shutdown
-
shutdown
Shutdown.- Parameters:
timeout
- the timeoutreset
- the resetcomment
- the comment
-
getActivity
Gets the activity.- Overrides:
getActivity
in classECaccessScheduler
- Returns:
- the activity
-
getDestinationStep
public int getDestinationStep()Gets the destination step.- Returns:
- the destination step
-
toBeReseted
public boolean toBeReseted()Signal is should be reset.- Returns:
- true, if successful
-
reset
public void reset()Reset. -
loadPendingDataTransfers
public void loadPendingDataTransfers()Load pending data transfers. -
initialize
-
nextStep
-
getPerformed
public int getPerformed()Gets the performed.- Returns:
- the performed
-
getSelected
public int getSelected()Gets the selected.- Returns:
- the selected
-
getMBeanInfo
Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Overrides:
getMBeanInfo
in classMBeanRepository<DataTransfer>
- Returns:
- the MBean info
-
getAttribute
Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- Overrides:
getAttribute
in classMBeanRepository<DataTransfer>
- Parameters:
attributeName
- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException
- the attribute not found exceptionMBeanException
- the MBean exception
-