|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tango.server.cache.PollingManager
public final class PollingManager
Manage all polling stuff of a device
| Constructor Summary | |
|---|---|
PollingManager(java.lang.String deviceName,
TangoCacheManager cacheManager,
java.util.List<AttributeImpl> attributeList,
java.util.List<CommandImpl> commandList,
int minPolling,
java.util.Map<java.lang.String,java.lang.Integer> minCommandPolling,
java.util.Map<java.lang.String,java.lang.Integer> minAttributePolling,
java.util.Map<java.lang.String,java.lang.Integer> cmdPollRingDepth,
java.util.Map<java.lang.String,java.lang.Integer> attrPollRingDepth)
|
|
| Method Summary | |
|---|---|
void |
addAttributePolling(java.lang.String attributeName,
int pollingPeriod)
Add attribute polling |
void |
addCommandPolling(java.lang.String commandName,
int pollingPeriod)
Add command polling. |
void |
configurePolling(AttributeImpl attribute)
|
void |
configurePolling(CommandImpl command)
|
AttributeValue |
getAttributeCacheElement(AttributeImpl att)
|
java.lang.Object |
getCommandCacheElement(CommandImpl cmd)
|
void |
initPolling()
|
void |
removeAll()
|
void |
removeAttributePolling(java.lang.String attributeName)
Remove attribute polling |
void |
removeCommandPolling(java.lang.String commandName)
Remove command polling |
void |
setPollAttributes(java.util.Map<java.lang.String,java.lang.Integer> pollAttributes)
|
void |
setPollRingDepth(int pollRingDepth)
|
void |
startPolling()
Start already configured polling |
void |
stopPolling()
Stop all polling |
void |
triggerPolling(java.lang.String objectName)
Update polling cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PollingManager(java.lang.String deviceName,
TangoCacheManager cacheManager,
java.util.List<AttributeImpl> attributeList,
java.util.List<CommandImpl> commandList,
int minPolling,
java.util.Map<java.lang.String,java.lang.Integer> minCommandPolling,
java.util.Map<java.lang.String,java.lang.Integer> minAttributePolling,
java.util.Map<java.lang.String,java.lang.Integer> cmdPollRingDepth,
java.util.Map<java.lang.String,java.lang.Integer> attrPollRingDepth)
| Method Detail |
|---|
public void initPolling()
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public void configurePolling(CommandImpl command)
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public void configurePolling(AttributeImpl attribute)
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public void triggerPolling(java.lang.String objectName)
throws fr.esrf.Tango.DevFailed
objectName - The command or attribute to update
fr.esrf.Tango.DevFailed
public void addCommandPolling(java.lang.String commandName,
int pollingPeriod)
throws fr.esrf.Tango.DevFailed
commandName - the command to pollpollingPeriod - the polling period
fr.esrf.Tango.DevFailedpublic void stopPolling()
public void startPolling()
public void addAttributePolling(java.lang.String attributeName,
int pollingPeriod)
throws fr.esrf.Tango.DevFailed
attributeName - the attribute to pollpollingPeriod - the polling period
fr.esrf.Tango.DevFailed
public void removeAttributePolling(java.lang.String attributeName)
throws fr.esrf.Tango.DevFailed
attributeName - the attribute
fr.esrf.Tango.DevFailed
public void removeCommandPolling(java.lang.String commandName)
throws fr.esrf.Tango.DevFailed
commandName - the command
fr.esrf.Tango.DevFailedpublic void removeAll()
public java.lang.Object getCommandCacheElement(CommandImpl cmd)
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailed
public AttributeValue getAttributeCacheElement(AttributeImpl att)
throws net.sf.ehcache.CacheException
net.sf.ehcache.CacheExceptionpublic void setPollRingDepth(int pollRingDepth)
public void setPollAttributes(java.util.Map<java.lang.String,java.lang.Integer> pollAttributes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||