Class BasicWriteRequest
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.util.BasicWriteRequest
 
- 
- All Implemented Interfaces:
- OPCWriteRequest
 
 public class BasicWriteRequest extends java.lang.Object implements OPCWriteRequest A basic implementation of OPCWriteRequest. Stores a ServerNodeId and Value.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IndexRangeindexRangeprotected ServerNodeIdnodeIdprotected java.lang.Objectvalue
 - 
Constructor SummaryConstructors Constructor Description BasicWriteRequest(ServerNodeId nodeId, java.lang.Object value)Constructor that takes the id of the item to write to, and the value.BasicWriteRequest(ServerNodeId nodeId, java.lang.Object value, IndexRange indexRange)BasicWriteRequest(java.lang.String serverName, java.lang.String itemPath, java.lang.Object value)Convenience constructor to build a write request out of basic values.BasicWriteRequest(java.lang.String serverName, java.lang.String itemPath, java.lang.Object value, IndexRange indexRange)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<IndexRange>getIndexRange()If present, the node identified byOPCWriteRequest.getNodeId()is an array this value should be written to the element or elements at the givenIndexRange.ServerNodeIdgetNodeId()The id to write tojava.lang.ObjectgetValue()The value to writejava.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
nodeIdprotected ServerNodeId nodeId 
 - 
valueprotected java.lang.Object value 
 - 
indexRangeprotected IndexRange indexRange 
 
- 
 - 
Constructor Detail- 
BasicWriteRequestpublic BasicWriteRequest(java.lang.String serverName, java.lang.String itemPath, java.lang.Object value)Convenience constructor to build a write request out of basic values. Creates a server node id automatically, with a string based identifier in namespace 0. If a different namespace is required, the ServerNodeId should be constructed manually and passed to the other constructor.
 - 
BasicWriteRequestpublic BasicWriteRequest(java.lang.String serverName, java.lang.String itemPath, java.lang.Object value, @Nullable IndexRange indexRange)
 - 
BasicWriteRequestpublic BasicWriteRequest(ServerNodeId nodeId, java.lang.Object value) Constructor that takes the id of the item to write to, and the value.
 - 
BasicWriteRequestpublic BasicWriteRequest(ServerNodeId nodeId, java.lang.Object value, IndexRange indexRange) 
 
- 
 - 
Method Detail- 
getNodeIdpublic ServerNodeId getNodeId() Description copied from interface:OPCWriteRequestThe id to write to- Specified by:
- getNodeIdin interface- OPCWriteRequest
 
 - 
getValuepublic java.lang.Object getValue() Description copied from interface:OPCWriteRequestThe value to write- Specified by:
- getValuein interface- OPCWriteRequest
 
 - 
getIndexRangepublic java.util.Optional<IndexRange> getIndexRange() Description copied from interface:OPCWriteRequestIf present, the node identified byOPCWriteRequest.getNodeId()is an array this value should be written to the element or elements at the givenIndexRange.- Specified by:
- getIndexRangein interface- OPCWriteRequest
- Returns:
- if present, the IndexRangeto write this value to.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-