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 Object
implements GatewayInterface.MessagePrinter
A MessagePrinter that has some static string values pre-encoded into byte[]'s
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static byte[]<arg name="protected static byte[]"><![CDATA[protected static byte[]]]></arg>protected static byte[]protected static byte[]protected static byte[]</messagebody></message>protected static byte[]<message><messagetype>protected static byte[]</messagetype><messagebody>protected int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintMinimum connection mode needed to run, or zero to always run.A stat metric to update when this message finishes.protected voidwriteArg(OutputStream pw, String argName, String argVal) protected voidwriteArg(OutputStream pw, String argName, String argVal, int idx) protected voidOpens message element, writes messagetype element, opens messagebody elementMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.MessagePrinterprintMessage
- 
Field Details- 
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
 
- 
- 
Constructor Details- 
AbstractMessagePrinterpublic AbstractMessagePrinter(int type) 
 
- 
- 
Method Details- 
writeHeadOpens message element, writes messagetype element, opens messagebody element- Throws:
- IOException
 
- 
writeArg- Throws:
- IOException
 
- 
writeArg- Throws:
- 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
 
- 
getStatMetricDescription copied from interface:GatewayInterface.MessagePrinterA stat metric to update when this message finishes. Optional, may be null.- Specified by:
- getStatMetricin interface- GatewayInterface.MessagePrinter
 
 
-