public abstract static class GatewayInterface.AbstractMessagePrinter extends java.lang.Object implements GatewayInterface.MessagePrinter
Modifier and Type | Field and Description |
---|---|
protected static byte[] |
arg1
<arg name="
|
protected static byte[] |
arg2
"><![CDATA[
|
protected static byte[] |
arg3
]]></arg>
|
protected static byte[] |
argindex |
protected static byte[] |
argnull |
protected static byte[] |
end
</messagebody></message>
|
protected static byte[] |
head1
<message><messagetype>
|
protected static byte[] |
head2
</messagetype><messagebody>
|
protected int |
type |
Constructor and Description |
---|
AbstractMessagePrinter(int type) |
Modifier and Type | Method and Description |
---|---|
int |
getMinConnectionMode()
Minimum connection mode needed to run, or zero to always run.
|
StatMetric |
getStatMetric()
A stat metric to update when this mesage finishes.
|
protected void |
writeArg(java.io.OutputStream pw,
java.lang.String argName,
java.lang.String argVal) |
protected void |
writeArg(java.io.OutputStream pw,
java.lang.String argName,
java.lang.String argVal,
int idx) |
protected void |
writeHead(java.io.OutputStream pw)
Opens message element, writes messagetype element, opens messagebody element
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
printMessage
protected static byte[] head1
protected static byte[] head2
protected static byte[] arg1
protected static byte[] arg2
protected static byte[] arg3
protected static byte[] argnull
protected static byte[] argindex
protected static byte[] end
protected int type
protected void writeHead(java.io.OutputStream pw) throws java.io.IOException
java.io.IOException
protected void writeArg(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal) throws java.io.IOException
java.io.IOException
protected void writeArg(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal, int idx) throws java.io.IOException
java.io.IOException
public int getMinConnectionMode()
GatewayInterface.MessagePrinter
getMinConnectionMode
in interface GatewayInterface.MessagePrinter
public StatMetric getStatMetric()
GatewayInterface.MessagePrinter
getStatMetric
in interface GatewayInterface.MessagePrinter