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 TypeMethodDescriptionbooleanExpired.getAttribute(String attributeName) Gets the attribute.Gets the MBean info.intGets the threads list size.voidInitialize.Invoke.intnextStep()Next step.voidshutdown()Shutdown.toString()To string.abstract voidUpdate.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, sortMethods inherited from class ecmwf.common.ecaccess.MBeanScheduler
close, getMonitorName, setAttributeMethods 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, 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
-
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:
nextStepin classECaccessScheduler- Returns:
- the int
-
getMBeanInfo
Gets the MBean info. Gets the MBean info. Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfoin interfaceMBeanService- Overrides:
getMBeanInfoin classMBeanRepository<O>- Returns:
- the MBean info
-
getAttribute
Gets the attribute. Gets the attribute. Gets the attribute. Gets the attribute.- Specified by:
getAttributein interfaceMBeanService- Overrides:
getAttributein 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:
invokein interfaceMBeanService- Overrides:
invokein 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
-