Class MBeanRepository<O>
java.lang.Object
ecmwf.common.technical.ThreadService.ConfigurableRunnable
ecmwf.common.technical.WakeupThread
ecmwf.common.ecaccess.ECaccessScheduler
ecmwf.common.ecaccess.MBeanScheduler
ecmwf.common.ecaccess.MBeanRepository<O>
- Type Parameters:
O
- the generic type
- All Implemented Interfaces:
MBeanService
,MonitorCallback
,Closeable
,AutoCloseable
,Runnable
- Direct Known Subclasses:
MailMBean
,MoverServer.DownloadRepository
,StorageRepository
,TransferScheduler.DestinationThread
The Class MBeanRepository.
-
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
ConstructorsConstructorDescriptionMBeanRepository
(String name) Instantiates a new m bean repository.MBeanRepository
(String group, String name) Instantiates a new m bean repository. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear.boolean
containsKey
(String key) Contains key.boolean
containsValue
(O object) Contains value.getAttribute
(String attributeName) Gets the attribute.Gets the comparator.Gets the key.getList()
Gets the list.getList
(Comparator<O> comparator) Gets the list.Gets the MBean info.int
getSize()
Gets the size.Gets the status.Gets the status.Gets the value.boolean
Gets the wakeup.Invoke.void
Puts the object.Removes the key.removeValue
(O object) Removes the value.void
setComparator
(Comparator<O> comparator) Sets the comparator.void
setMaxAuthorisedSize
(int maxAuthorisedSize) Sets the max authorised size.void
setWakeup
(boolean wakeup) Sets the wakeup.Sorts the list.Methods inherited from class ecmwf.common.ecaccess.MBeanScheduler
close, getMonitorName, setAttribute, 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
-
MBeanRepository
-
MBeanRepository
Instantiates a new m bean repository.- Parameters:
name
- the name
-
-
Method Details
-
clear
public void clear()Clear. -
getKey
-
getStatus
-
setComparator
Sets the comparator.- Parameters:
comparator
- the new comparator
-
setMaxAuthorisedSize
public void setMaxAuthorisedSize(int maxAuthorisedSize) Sets the max authorised size.- Parameters:
maxAuthorisedSize
- the max authorised size
-
getComparator
-
setWakeup
public void setWakeup(boolean wakeup) Sets the wakeup.- Parameters:
wakeup
- the new wakeup
-
getWakeup
public boolean getWakeup()Gets the wakeup.- Returns:
- the wakeup
-
getStatus
-
getList
-
getSize
public int getSize()Gets the size.- Returns:
- the size
-
getList
Gets the list.- Parameters:
comparator
- the comparator- Returns:
- the list
-
sort
-
getMBeanInfo
Gets the MBean info. Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Overrides:
getMBeanInfo
in classMBeanScheduler
- Returns:
- the MBean info
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke. Invoke.- Specified by:
invoke
in interfaceMBeanService
- Overrides:
invoke
in classMBeanScheduler
- Parameters:
operationName
- the operation nameparams
- the paramssignature
- the signature- Returns:
- the object
- Throws:
NoSuchMethodException
- the no such method exceptionMBeanException
- the MBean exception
-
getAttribute
Gets the attribute. Gets the attribute. Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- Overrides:
getAttribute
in classMBeanScheduler
- Parameters:
attributeName
- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException
- the attribute not found exceptionMBeanException
- the MBean exception
-
put
-
removeValue
-
removeKey
-
containsValue
Contains value.- Parameters:
object
- the object- Returns:
- true, if successful
-
containsKey
Contains key.- Parameters:
key
- the key- Returns:
- true, if successful
-
getValue
-