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 Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Minimum connection mode needed to run, or zero to always run.A stat metric to update when this message finishes.protected void
writeArg
(OutputStream pw, String argName, String argVal) protected void
writeArg
(OutputStream pw, String argName, String argVal, int idx) protected void
Opens message element, writes messagetype element, opens messagebody elementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.MessagePrinter
printMessage
-
Field Details
-
head1
protected static byte[] head1<message><messagetype> -
head2
protected static byte[] head2</messagetype><messagebody> -
arg1
protected static byte[] arg1<arg name=" -
arg2
protected static byte[] arg2"><![CDATA[ -
arg3
protected static byte[] arg3]]></arg> -
argnull
protected static byte[] argnull -
argindex
protected static byte[] argindex -
end
protected static byte[] end</messagebody></message> -
type
protected int type
-
-
Constructor Details
-
AbstractMessagePrinter
public AbstractMessagePrinter(int type)
-
-
Method Details
-
writeHead
Opens message element, writes messagetype element, opens messagebody element- Throws:
IOException
-
writeArg
- Throws:
IOException
-
writeArg
- Throws:
IOException
-
getMinConnectionMode
public int getMinConnectionMode()Description copied from interface:GatewayInterface.MessagePrinter
Minimum connection mode needed to run, or zero to always run.- Specified by:
getMinConnectionMode
in interfaceGatewayInterface.MessagePrinter
-
getStatMetric
Description copied from interface:GatewayInterface.MessagePrinter
A stat metric to update when this message finishes. Optional, may be null.- Specified by:
getStatMetric
in interfaceGatewayInterface.MessagePrinter
-