public final class TangoCacheManager extends Object
| Constructor and Description |
|---|
TangoCacheManager(String deviceName,
DeviceLocker deviceLock,
AroundInvokeImpl aroundInvoke) |
| Modifier and Type | Method and Description |
|---|---|
net.sf.ehcache.constructs.blocking.SelfPopulatingCache |
getAttributeCache(AttributeImpl attr)
Get cache of an attribute
|
net.sf.ehcache.constructs.blocking.SelfPopulatingCache |
getCommandCache(CommandImpl cmd)
Get cache of a command
|
static List<String> |
getPolledDevices() |
static int |
getPoolSize() |
static void |
initPoolConf()
Retrieve the ordered list of polled devices
|
void |
removeAll()
Remove all polling
|
void |
removeAttributePolling(AttributeImpl attr)
Remove polling of an attribute
|
void |
removeCommandPolling(CommandImpl command)
Remove polling of a command
|
static void |
setPollSize(int poolSize) |
static void |
shutdown() |
void |
start()
Start all polling
|
void |
startAttributePolling(AttributeImpl attr)
Start attribute polling
|
void |
startCommandPolling(CommandImpl command)
Start command polling
|
void |
startStateStatusPolling(CommandImpl command,
AttributeImpl attribute) |
void |
stop()
Stop all polling
|
public TangoCacheManager(String deviceName, DeviceLocker deviceLock, AroundInvokeImpl aroundInvoke)
public static void shutdown()
public static void initPoolConf()
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic static void setPollSize(int poolSize)
public static int getPoolSize()
public void startStateStatusPolling(CommandImpl command, AttributeImpl attribute)
public void startCommandPolling(CommandImpl command) throws fr.esrf.Tango.DevFailed
command - The command to pollfr.esrf.Tango.DevFailedpublic void startAttributePolling(AttributeImpl attr) throws fr.esrf.Tango.DevFailed
attr - The attribute to pollfr.esrf.Tango.DevFailedpublic void removeAttributePolling(AttributeImpl attr) throws fr.esrf.Tango.DevFailed
attr - fr.esrf.Tango.DevFailedpublic void removeAll()
public void removeCommandPolling(CommandImpl command) throws fr.esrf.Tango.DevFailed
command - fr.esrf.Tango.DevFailedpublic void start()
public void stop()
public net.sf.ehcache.constructs.blocking.SelfPopulatingCache getAttributeCache(AttributeImpl attr) throws org.tango.server.cache.NoCacheFoundException
attr - the attributeNoCacheFoundException - if cache for the attribute is not foundpublic net.sf.ehcache.constructs.blocking.SelfPopulatingCache getCommandCache(CommandImpl cmd)
cmd - The commandCopyright © 2012–2017 Tango Controls. All rights reserved.