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 ByteSequence |
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(WireFormat wireFormat) |
void |
afterUnmarshall(WireFormat wireFormat) |
void |
beforeMarshall(WireFormat wireFormat) |
void |
beforeUnmarshall(WireFormat wireFormat) |
void |
clearProperties() |
ByteSequence |
getCachedMarshalledForm(WireFormat wireFormat) |
int |
getCacheSize() |
int |
getCommandId() |
byte |
getDataStructureType() |
Endpoint |
getFrom()
The endpoint within the transport where this message came from.
|
java.lang.String |
getHost() |
byte[] |
getMagic() |
ByteSequence |
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) |
Endpoint |
getTo()
The endpoint within the transport where this message is going to - null
means all endpoints.
|
int |
getVersion() |
boolean |
isBrokerInfo() |
boolean |
isCacheEnabled() |
boolean |
isConnectionControl() |
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 |
setCachedMarshalledForm(WireFormat wireFormat,
ByteSequence data) |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCacheSize(int cacheSize) |
void |
setCommandId(int value) |
void |
setFrom(Endpoint from) |
void |
setHost(java.lang.String hostname) |
void |
setMagic(byte[] magic) |
void |
setMarshalledProperties(ByteSequence 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 |
setTo(Endpoint to) |
void |
setVersion(int version) |
java.lang.String |
toString() |
Response |
visit(CommandVisitor visitor) |
public static final byte DATA_STRUCTURE_TYPE
protected byte[] magic
protected int version
protected ByteSequence 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 ByteSequence getMarshalledProperties()
public void setMarshalledProperties(ByteSequence marshalledProperties)
public Endpoint getFrom()
public Endpoint getTo()
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(WireFormat wireFormat) throws java.io.IOException
beforeMarshall in interface MarshallAwarejava.io.IOExceptionpublic void afterMarshall(WireFormat wireFormat) throws java.io.IOException
afterMarshall in interface MarshallAwarejava.io.IOExceptionpublic void beforeUnmarshall(WireFormat wireFormat) throws java.io.IOException
beforeUnmarshall in interface MarshallAwarejava.io.IOExceptionpublic void afterUnmarshall(WireFormat 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 java.lang.String getHost()
throws java.io.IOException
java.io.IOExceptionpublic void setHost(java.lang.String hostname)
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 Response visit(CommandVisitor visitor) throws java.lang.Exception
public 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 boolean isConnectionControl()
isConnectionControl in interface Commandpublic void setCachedMarshalledForm(WireFormat wireFormat, ByteSequence data)
public ByteSequence getCachedMarshalledForm(WireFormat wireFormat)
Copyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.