|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tango.server.cache.TangoCacheManager
public final class TangoCacheManager
Manage cache for attributes/commands of a Tango device
Constructor Summary | |
---|---|
TangoCacheManager(java.lang.String deviceName,
DeviceLocker deviceLock,
AroundInvokeImpl aroundInvoke)
|
Method Summary | |
---|---|
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 java.util.List<java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TangoCacheManager(java.lang.String deviceName, DeviceLocker deviceLock, AroundInvokeImpl aroundInvoke)
Method Detail |
---|
public static void shutdown()
public static void initPoolConf() throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public static void setPollSize(int poolSize)
public void startStateStatusPolling(CommandImpl command, AttributeImpl attribute)
public void startCommandPolling(CommandImpl command) throws fr.esrf.Tango.DevFailed
command
- The command to poll
fr.esrf.Tango.DevFailed
public void startAttributePolling(AttributeImpl attr) throws fr.esrf.Tango.DevFailed
attr
- The attribute to poll
fr.esrf.Tango.DevFailed
public void removeAttributePolling(AttributeImpl attr) throws fr.esrf.Tango.DevFailed
attr
-
fr.esrf.Tango.DevFailed
public void removeAll()
public void removeCommandPolling(CommandImpl command) throws fr.esrf.Tango.DevFailed
command
-
fr.esrf.Tango.DevFailed
public void start()
public void stop()
public net.sf.ehcache.constructs.blocking.SelfPopulatingCache getAttributeCache(AttributeImpl attr)
attr
- the attribute
public net.sf.ehcache.constructs.blocking.SelfPopulatingCache getCommandCache(CommandImpl cmd)
cmd
- The command
public static int getPoolSize()
public static java.util.List<java.lang.String> getPolledDevices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |