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
-
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.booleanConverts into be reseted.Methods inherited from class MBeanRepository
clear, containsKey, containsValue, getComparator, getList, getList, getSize, getStatus, getValue, getWakeup, invoke, put, removeKey, removeValue, setComparator, setMaxAuthorisedSize, setWakeup, sortMethods inherited from class MBeanScheduler
close, getMonitorName, setAttributeMethods inherited from class 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 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
-
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()Converts into be reseted.- 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
-