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.intGets 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.intGets the performed.intGets the selected.getStatus(DataTransfer transfer) Gets the status.voidInitialize.voidLoad pending data transfers.intnextStep()Next step.voidreset()Reset.voidshutdown()Shutdown.voidShutdown.booleanSignal 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, sortMethods inherited from class ecmwf.common.ecaccess.MBeanScheduler
close, getMonitorName, setAttributeMethods 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, wakeupMethods inherited from class ecmwf.common.technical.WakeupThread
isSleeping, waitForMethods 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:
getKeyin 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:
getStatusin 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:
getActivityin 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:
getMBeanInfoin interfaceMBeanService- Overrides:
getMBeanInfoin classMBeanRepository<DataTransfer>- Returns:
- the MBean info
-
getAttribute
Gets the attribute.- Specified by:
getAttributein interfaceMBeanService- Overrides:
getAttributein classMBeanRepository<DataTransfer>- Parameters:
attributeName- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException- the attribute not found exceptionMBeanException- the MBean exception
-