Class GatewayInterface.AbstractMessagePrinter
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.AbstractMessagePrinter
 
- 
- All Implemented Interfaces:
- GatewayInterface.MessagePrinter
 - Direct Known Subclasses:
- GatewayInterface.BasicMessage,- GatewayInterface.InvokeMessage
 - Enclosing class:
- GatewayInterface
 
 public abstract static class GatewayInterface.AbstractMessagePrinter extends java.lang.Object implements GatewayInterface.MessagePrinter A MessagePrinter that has some static string values pre-encoded into byte[]'s
- 
- 
Field SummaryFields Modifier and Type Field Description protected static byte[]arg1<arg name="protected static byte[]arg2"><![CDATA[protected static byte[]arg3]]></arg>protected static byte[]argindexprotected static byte[]argnullprotected static byte[]end</messagebody></message>protected static byte[]head1<message><messagetype>protected static byte[]head2</messagetype><messagebody>protected inttype
 - 
Constructor SummaryConstructors Constructor Description AbstractMessagePrinter(int type)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMinConnectionMode()Minimum connection mode needed to run, or zero to always run.StatMetricgetStatMetric()A stat metric to update when this message finishes.protected voidwriteArg(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal)protected voidwriteArg(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal, int idx)protected voidwriteHead(java.io.OutputStream pw)Opens message element, writes messagetype element, opens messagebody element- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.MessagePrinterprintMessage
 
- 
 
- 
- 
- 
Field Detail- 
head1protected static byte[] head1 <message><messagetype>
 - 
head2protected static byte[] head2 </messagetype><messagebody>
 - 
arg1protected static byte[] arg1 <arg name="
 - 
arg2protected static byte[] arg2 "><![CDATA[
 - 
arg3protected static byte[] arg3 ]]></arg>
 - 
argnullprotected static byte[] argnull 
 - 
argindexprotected static byte[] argindex 
 - 
endprotected static byte[] end </messagebody></message>
 - 
typeprotected int type 
 
- 
 - 
Method Detail- 
writeHeadprotected void writeHead(java.io.OutputStream pw) throws java.io.IOExceptionOpens message element, writes messagetype element, opens messagebody element- Throws:
- java.io.IOException
 
 - 
writeArgprotected void writeArg(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
writeArgprotected void writeArg(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal, int idx) throws java.io.IOException- 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
 
 
- 
 
-