Class StorageRepository<O>
- Type Parameters:
O
- the generic type
- All Implemented Interfaces:
MBeanService
,MonitorCallback
,Closeable
,AutoCloseable
,Runnable
- Direct Known Subclasses:
ECaccessProvider.ProviderMBean
,TicketRepository
The Class StorageRepository.
-
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
ConstructorsConstructorDescriptionStorageRepository
(String name, int storageThreadsCount, long storageThreadsDelay) Instantiates a new storage repository. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Expired.getAttribute
(String attributeName) Gets the attribute.Gets the MBean info.int
Gets the threads list size.void
Initialize.Invoke.int
nextStep()
Next step.void
shutdown()
Shutdown.toString()
To string.abstract void
Update.Methods inherited from class ecmwf.common.ecaccess.MBeanRepository
clear, containsKey, containsValue, getComparator, getKey, getList, getList, getSize, getStatus, getStatus, getValue, getWakeup, 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, getActivity, 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
-
Constructor Details
-
StorageRepository
Instantiates a new storage repository.- Parameters:
name
- the namestorageThreadsCount
- the storage threads countstorageThreadsDelay
- the storage threads delay
-
-
Method Details
-
expired
Expired.- Parameters:
object
- the object- Returns:
- true, if successful
-
update
-
initialize
-
getThreadsSize
public int getThreadsSize()Gets the threads list size.- Returns:
- the size
-
shutdown
-
nextStep
public int nextStep()Next step. Next step.- Specified by:
nextStep
in classECaccessScheduler
- Returns:
- the int
-
getMBeanInfo
Gets the MBean info. Gets the MBean info. Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Overrides:
getMBeanInfo
in classMBeanRepository<O>
- Returns:
- the MBean info
-
getAttribute
Gets the attribute. Gets the attribute. Gets the attribute. Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- Overrides:
getAttribute
in classMBeanRepository<O>
- Parameters:
attributeName
- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException
- the attribute not found exceptionMBeanException
- the MBean exception
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke. Invoke. Invoke.- Specified by:
invoke
in interfaceMBeanService
- Overrides:
invoke
in classMBeanRepository<O>
- Parameters:
operationName
- the operation nameparams
- the paramssignature
- the signature- Returns:
- the object
- Throws:
NoSuchMethodException
- the no such method exceptionMBeanException
- the MBean exception
-
toString
-