public class WireFormatInfo extends java.lang.Object implements Command, MarshallAware
| Modifier and Type | Field and Description |
|---|---|
static byte |
DATA_STRUCTURE_TYPE |
protected byte[] |
magic |
protected org.fusesource.hawtbuf.Buffer |
marshalledProperties |
protected java.util.Map<java.lang.String,java.lang.Object> |
properties |
protected int |
version |
| Constructor and Description |
|---|
WireFormatInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterMarshall(OpenWireFormat wireFormat) |
void |
afterUnmarshall(OpenWireFormat wireFormat) |
void |
beforeMarshall(OpenWireFormat wireFormat) |
void |
beforeUnmarshall(OpenWireFormat wireFormat) |
void |
clearProperties() |
int |
getCacheSize() |
int |
getCommandId() |
byte |
getDataStructureType() |
java.lang.String |
getHost() |
byte[] |
getMagic() |
org.fusesource.hawtbuf.Buffer |
getMarshalledProperties() |
long |
getMaxFrameSize() |
long |
getMaxInactivityDuration() |
long |
getMaxInactivityDurationInitalDelay() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String name) |
int |
getVersion() |
boolean |
isBrokerInfo() |
boolean |
isCacheEnabled() |
boolean |
isMarshallAware() |
boolean |
isMessage() |
boolean |
isMessageAck() |
boolean |
isMessageDispatch() |
boolean |
isMessageDispatchNotification() |
boolean |
isResponse() |
boolean |
isResponseRequired() |
boolean |
isShutdownInfo() |
boolean |
isSizePrefixDisabled() |
boolean |
isStackTraceEnabled() |
boolean |
isTcpNoDelayEnabled() |
boolean |
isTightEncodingEnabled() |
boolean |
isValid() |
boolean |
isWireFormatInfo() |
protected void |
lazyCreateProperties() |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCacheSize(int cacheSize) |
void |
setCommandId(int value) |
void |
setHost(java.lang.String hostname) |
void |
setMagic(byte[] magic) |
void |
setMarshalledProperties(org.fusesource.hawtbuf.Buffer marshalledProperties) |
void |
setMaxFrameSize(long maxFrameSize) |
void |
setMaxInactivityDuration(long maxInactivityDuration) |
void |
setMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
void |
setResponseRequired(boolean responseRequired) |
void |
setSizePrefixDisabled(boolean prefixPacketSize) |
void |
setStackTraceEnabled(boolean stackTraceEnabled) |
void |
setTcpNoDelayEnabled(boolean tcpNoDelayEnabled) |
void |
setTightEncodingEnabled(boolean tightEncodingEnabled) |
void |
setVersion(int version) |
java.lang.String |
toString() |
public static final byte DATA_STRUCTURE_TYPE
protected byte[] magic
protected int version
protected org.fusesource.hawtbuf.Buffer marshalledProperties
protected transient java.util.Map<java.lang.String,java.lang.Object> properties
public byte getDataStructureType()
getDataStructureType in interface DataStructurepublic boolean isWireFormatInfo()
isWireFormatInfo in interface Commandpublic boolean isMarshallAware()
isMarshallAware in interface DataStructurepublic byte[] getMagic()
public void setMagic(byte[] magic)
public int getVersion()
public void setVersion(int version)
public org.fusesource.hawtbuf.Buffer getMarshalledProperties()
public void setMarshalledProperties(org.fusesource.hawtbuf.Buffer marshalledProperties)
public java.lang.Object getProperty(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
throws java.io.IOException
java.io.IOExceptionpublic void clearProperties()
public void setProperty(java.lang.String name,
java.lang.Object value)
throws java.io.IOException
java.io.IOExceptionprotected void lazyCreateProperties()
throws java.io.IOException
java.io.IOExceptionpublic void beforeMarshall(OpenWireFormat wireFormat) throws java.io.IOException
beforeMarshall in interface MarshallAwarejava.io.IOExceptionpublic void afterMarshall(OpenWireFormat wireFormat) throws java.io.IOException
afterMarshall in interface MarshallAwarejava.io.IOExceptionpublic void beforeUnmarshall(OpenWireFormat wireFormat) throws java.io.IOException
beforeUnmarshall in interface MarshallAwarejava.io.IOExceptionpublic void afterUnmarshall(OpenWireFormat wireFormat) throws java.io.IOException
afterUnmarshall in interface MarshallAwarejava.io.IOExceptionpublic boolean isValid()
public void setResponseRequired(boolean responseRequired)
setResponseRequired in interface Commandpublic boolean isCacheEnabled()
throws java.io.IOException
java.io.IOExceptionpublic void setCacheEnabled(boolean cacheEnabled)
throws java.io.IOException
java.io.IOExceptionpublic boolean isStackTraceEnabled()
throws java.io.IOException
java.io.IOExceptionpublic void setStackTraceEnabled(boolean stackTraceEnabled)
throws java.io.IOException
java.io.IOExceptionpublic boolean isTcpNoDelayEnabled()
throws java.io.IOException
java.io.IOExceptionpublic void setTcpNoDelayEnabled(boolean tcpNoDelayEnabled)
throws java.io.IOException
java.io.IOExceptionpublic boolean isSizePrefixDisabled()
throws java.io.IOException
java.io.IOExceptionpublic void setSizePrefixDisabled(boolean prefixPacketSize)
throws java.io.IOException
java.io.IOExceptionpublic boolean isTightEncodingEnabled()
throws java.io.IOException
java.io.IOExceptionpublic void setTightEncodingEnabled(boolean tightEncodingEnabled)
throws java.io.IOException
java.io.IOExceptionpublic long getMaxInactivityDuration()
throws java.io.IOException
java.io.IOExceptionpublic void setMaxInactivityDuration(long maxInactivityDuration)
throws java.io.IOException
java.io.IOExceptionpublic long getMaxInactivityDurationInitalDelay()
throws java.io.IOException
java.io.IOExceptionpublic void setMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay)
throws java.io.IOException
java.io.IOExceptionpublic long getMaxFrameSize()
throws java.io.IOException
java.io.IOExceptionpublic void setMaxFrameSize(long maxFrameSize)
throws java.io.IOException
java.io.IOExceptionpublic int getCacheSize()
throws java.io.IOException
java.io.IOExceptionpublic void setCacheSize(int cacheSize)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setCommandId(int value)
setCommandId in interface Commandpublic int getCommandId()
getCommandId in interface Commandpublic boolean isResponseRequired()
isResponseRequired in interface Commandpublic boolean isResponse()
isResponse in interface Commandpublic boolean isBrokerInfo()
isBrokerInfo in interface Commandpublic boolean isMessageDispatch()
isMessageDispatch in interface Commandpublic boolean isMessageAck()
isMessageAck in interface Commandpublic boolean isMessageDispatchNotification()
isMessageDispatchNotification in interface Commandpublic boolean isShutdownInfo()
isShutdownInfo in interface Commandpublic java.lang.String getHost()
throws java.io.IOException
java.io.IOExceptionpublic void setHost(java.lang.String hostname)
throws java.io.IOException
java.io.IOExceptionCopyright © 2014 Red Hat. All Rights Reserved.