|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.OFMessage
org.openflow.protocol.OFError
public class OFError
Represents an ofp_error_msg
Nested Class Summary | |
---|---|
static class |
OFError.OFBadActionCode
|
static class |
OFError.OFBadInstructionCode
|
static class |
OFError.OFBadMatchCode
|
static class |
OFError.OFBadRequestCode
|
static class |
OFError.OFErrorType
|
static class |
OFError.OFFlowModFailedCode
|
static class |
OFError.OFGroupModFailedCode
|
static class |
OFError.OFHelloFailedCode
|
static class |
OFError.OFMeterModFailedCode
|
static class |
OFError.OFPortModFailedCode
|
static class |
OFError.OFQueueOpFailedCode
|
static class |
OFError.OFRoleRequestFailedCode
|
static class |
OFError.OFSwitchConfigFailedCode
|
static class |
OFError.OFTableFeaturesFailedCode
|
static class |
OFError.OFTableModFailedCode
|
Field Summary | |
---|---|
protected byte[] |
error
|
protected short |
errorCode
|
protected boolean |
errorIsAscii
|
protected short |
errorType
|
protected OFMessageFactory |
factory
|
static int |
MINIMUM_LENGTH
|
Fields inherited from class org.openflow.protocol.OFMessage |
---|
length, OFP_VERSION, type, version, xid |
Constructor Summary | |
---|---|
OFError()
|
Method Summary | |
---|---|
void |
computeLength()
This method is called during the writeTo method for serialization and is expected to set the length of the message. |
boolean |
equals(java.lang.Object obj)
|
byte[] |
getError()
|
short |
getErrorCode()
|
java.lang.String |
getErrorCodeName(OFError.OFErrorType errorType,
int errorCode)
|
short |
getErrorType()
|
OFMessageFactory |
getFactory()
|
OFMessage |
getOffendingMsg()
|
int |
hashCode()
|
boolean |
isErrorIsAscii()
|
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
OFError |
setError(byte[] error)
|
OFError |
setErrorCode(OFError.OFBadActionCode code)
|
OFError |
setErrorCode(OFError.OFBadRequestCode code)
|
OFError |
setErrorCode(OFError.OFFlowModFailedCode code)
|
OFError |
setErrorCode(OFError.OFHelloFailedCode code)
|
OFError |
setErrorCode(OFError.OFPortModFailedCode code)
|
OFError |
setErrorCode(OFError.OFQueueOpFailedCode code)
|
OFError |
setErrorCode(short errorCode)
|
OFError |
setErrorIsAscii(boolean errorIsAscii)
|
OFError |
setErrorType(OFError.OFErrorType type)
|
OFError |
setErrorType(short errorType)
|
void |
setMessageFactory(OFMessageFactory factory)
Sets the message factory for this object |
OFError |
setOffendingMsg(OFMessage offendingMsg)
Write this offending message into the payload of the Error message |
java.lang.String |
toString()
Returns a summary of the message |
void |
writeTo(java.nio.ByteBuffer data)
Write this message's binary format to the specified ByteBuffer |
Methods inherited from class org.openflow.protocol.OFMessage |
---|
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
protected short errorType
protected short errorCode
protected OFMessageFactory factory
protected byte[] error
protected boolean errorIsAscii
Constructor Detail |
---|
public OFError()
Method Detail |
---|
public short getErrorType()
public OFError setErrorType(short errorType)
errorType
- the errorType to setpublic OFError setErrorType(OFError.OFErrorType type)
public short getErrorCode()
public OFError setErrorCode(OFError.OFHelloFailedCode code)
errorCode
- the errorCode to setpublic OFError setErrorCode(short errorCode)
public OFError setErrorCode(OFError.OFBadRequestCode code)
public OFError setErrorCode(OFError.OFBadActionCode code)
public OFError setErrorCode(OFError.OFFlowModFailedCode code)
public OFError setErrorCode(OFError.OFPortModFailedCode code)
public OFError setErrorCode(OFError.OFQueueOpFailedCode code)
public OFMessage getOffendingMsg()
public OFError setOffendingMsg(OFMessage offendingMsg)
offendingMsg
- public OFMessageFactory getFactory()
public void setMessageFactory(OFMessageFactory factory)
OFMessageFactoryAware
setMessageFactory
in interface OFMessageFactoryAware
public byte[] getError()
public OFError setError(byte[] error)
error
- the error to setpublic boolean isErrorIsAscii()
public OFError setErrorIsAscii(boolean errorIsAscii)
errorIsAscii
- the errorIsAscii to setpublic void readFrom(java.nio.ByteBuffer data)
OFMessage
readFrom
in class OFMessage
public void writeTo(java.nio.ByteBuffer data)
OFMessage
writeTo
in class OFMessage
public int hashCode()
hashCode
in class OFMessage
public boolean equals(java.lang.Object obj)
equals
in class OFMessage
public java.lang.String getErrorCodeName(OFError.OFErrorType errorType, int errorCode)
public java.lang.String toString()
OFMessage
toString
in class OFMessage
public void computeLength()
OFMessage
computeLength
in class OFMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |