public final class PollingManager extends Object
| Constructor and Description |
|---|
PollingManager(String deviceName,
TangoCacheManager cacheManager,
List<AttributeImpl> attributeList,
List<CommandImpl> commandList,
int minPolling,
Map<String,Integer> minCommandPolling,
Map<String,Integer> minAttributePolling,
Map<String,Integer> cmdPollRingDepth,
Map<String,Integer> attrPollRingDepth) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributePolling(String attributeName,
int pollingPeriod)
Add attribute polling
|
void |
addCommandPolling(String commandName,
int pollingPeriod)
Add command polling.
|
void |
configurePolling(AttributeImpl attribute) |
void |
configurePolling(CommandImpl command) |
AttributeValue |
getAttributeCacheElement(AttributeImpl att) |
Object |
getCommandCacheElement(CommandImpl cmd) |
void |
initPolling() |
void |
removeAll() |
void |
removeAttributePolling(String attributeName)
Remove attribute polling
|
void |
removeCommandPolling(String commandName)
Remove command polling
|
void |
setPollAttributes(Map<String,Integer> pollAttributes) |
void |
setPollRingDepth(int pollRingDepth) |
void |
startPolling()
Start already configured polling
|
void |
stopPolling()
Stop all polling
|
void |
triggerPolling(String objectName)
Update polling cache
|
public PollingManager(String deviceName, TangoCacheManager cacheManager, List<AttributeImpl> attributeList, List<CommandImpl> commandList, int minPolling, Map<String,Integer> minCommandPolling, Map<String,Integer> minAttributePolling, Map<String,Integer> cmdPollRingDepth, Map<String,Integer> attrPollRingDepth)
public void initPolling()
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic void configurePolling(CommandImpl command) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic void configurePolling(AttributeImpl attribute) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic void triggerPolling(String objectName) throws fr.esrf.Tango.DevFailed
objectName - The command or attribute to updatefr.esrf.Tango.DevFailedpublic void addCommandPolling(String commandName, int pollingPeriod) throws fr.esrf.Tango.DevFailed
commandName - the command to pollpollingPeriod - the polling periodfr.esrf.Tango.DevFailedpublic void stopPolling()
public void startPolling()
public void addAttributePolling(String attributeName, int pollingPeriod) throws fr.esrf.Tango.DevFailed
attributeName - the attribute to pollpollingPeriod - the polling periodfr.esrf.Tango.DevFailedpublic void removeAttributePolling(String attributeName) throws fr.esrf.Tango.DevFailed
attributeName - the attributefr.esrf.Tango.DevFailedpublic void removeCommandPolling(String commandName) throws fr.esrf.Tango.DevFailed
commandName - the commandfr.esrf.Tango.DevFailedpublic void removeAll()
public Object getCommandCacheElement(CommandImpl cmd) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic AttributeValue getAttributeCacheElement(AttributeImpl att) throws net.sf.ehcache.CacheException
att - the attributeIllegalStateException - TODO descriptionnet.sf.ehcache.CacheException - TODO descriptionpublic void setPollRingDepth(int pollRingDepth)
Copyright © 2012–2017 Tango Controls. All rights reserved.