public class ProxyWriteHandlerImpl extends ProxyItemSupport implements ProxyWriteHandler
Modifier and Type | Class and Description |
---|---|
static class |
ProxyWriteHandlerImpl.AttributeResultHandler |
static class |
ProxyWriteHandlerImpl.ValueResultHandler |
Modifier and Type | Field and Description |
---|---|
protected Map<ProxySubConnectionId,ProxySubConnection> |
subConnections |
currentConnection, prefix, proxyItemId, separator
Constructor and Description |
---|
ProxyWriteHandlerImpl(String separator,
ProxyPrefixName prefix,
Map<ProxySubConnectionId,ProxySubConnection> subConnections,
ProxySubConnectionId currentConnection,
String proxyItemId) |
Modifier and Type | Method and Description |
---|---|
void |
write(String itemId,
Variant value,
OperationParameters operationParameters)
Write a value to the currently active connection
|
void |
writeAttributes(String itemId,
Map<String,Variant> attributes,
WriteAttributeResults writeAttributeResults,
OperationParameters operationParameters)
Write attributes to the currently active connection
|
getItemId, switchTo
protected final Map<ProxySubConnectionId,ProxySubConnection> subConnections
public ProxyWriteHandlerImpl(String separator, ProxyPrefixName prefix, Map<ProxySubConnectionId,ProxySubConnection> subConnections, ProxySubConnectionId currentConnection, String proxyItemId)
public void write(String itemId, Variant value, OperationParameters operationParameters) throws NoConnectionException, OperationException
ProxyWriteHandler
write
in interface ProxyWriteHandler
itemId
- the item id of the local proxy item to write tovalue
- the value to write toNoConnectionException
OperationException
public void writeAttributes(String itemId, Map<String,Variant> attributes, WriteAttributeResults writeAttributeResults, OperationParameters operationParameters)
ProxyWriteHandler
writeAttributes
in interface ProxyWriteHandler
itemId
- the item id of the local proxy item to write toattributes
- the attributes to writewriteAttributeResults
- the result set that must be filled by the implementorCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.