Class MessageBuilder
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.gateway_interface.messages.MessageBuilder
 
- 
- All Implemented Interfaces:
- GatewayInterface.MessagePrinter
 - Direct Known Subclasses:
- RunPrepStmtMessage,- RunUpdateQueryMessage
 
 public class MessageBuilder extends java.lang.Object implements GatewayInterface.MessagePrinter This class helps build client-to-gateway comm messages. Similar to the createMessage function, but in builder-style.
- 
- 
Constructor SummaryConstructors Constructor Description MessageBuilder(int messageType)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageBuilderarg(java.lang.String name, java.lang.String value)MessageBuilderarg(java.lang.String name, java.lang.String[] values)java.lang.Stringbuild()Builds the message string.intgetMinConnectionMode()Minimum connection mode needed to run, or zero to always run.StatMetricgetStatMetric()A stat metric to update when this message finishes.voidprintMessage(java.io.OutputStream pw)
 
- 
- 
- 
Method Detail- 
argpublic MessageBuilder arg(java.lang.String name, java.lang.String value) 
 - 
argpublic MessageBuilder arg(java.lang.String name, java.lang.String[] values) 
 - 
buildpublic java.lang.String build() Builds the message string. If you're using this class as a MessagePrinter, you don't need to call this.
 - 
printMessagepublic void printMessage(java.io.OutputStream pw) throws java.io.IOException- Specified by:
- printMessagein interface- GatewayInterface.MessagePrinter
- Throws:
- java.io.IOException
 
 - 
getMinConnectionModepublic int getMinConnectionMode() Description copied from interface:GatewayInterface.MessagePrinterMinimum connection mode needed to run, or zero to always run.- Specified by:
- getMinConnectionModein interface- GatewayInterface.MessagePrinter
 
 - 
getStatMetricpublic StatMetric getStatMetric() Description copied from interface:GatewayInterface.MessagePrinterA stat metric to update when this message finishes. Optional, may be null.- Specified by:
- getStatMetricin interface- GatewayInterface.MessagePrinter
 
 
- 
 
-