com.bigswitch.floodlight.vendor
Class OFActionMirror

java.lang.Object
  extended by org.openflow.protocol.action.OFAction
      extended by org.openflow.protocol.action.OFActionVendor
          extended by com.bigswitch.floodlight.vendor.OFActionBigSwitchVendor
              extended by com.bigswitch.floodlight.vendor.OFActionMirror
All Implemented Interfaces:
java.lang.Cloneable

public class OFActionMirror
extends OFActionBigSwitchVendor


Field Summary
static int BSN_ACTION_MIRROR
           
protected  byte copyStage
           
protected  int destPort
           
static int MINIMUM_LENGTH
           
protected  byte pad0
           
protected  byte pad1
           
protected  byte pad2
           
protected  int vlanTag
           
 
Fields inherited from class com.bigswitch.floodlight.vendor.OFActionBigSwitchVendor
BSN_VENDOR_ID, subtype
 
Fields inherited from class org.openflow.protocol.action.OFActionVendor
data, vendor
 
Fields inherited from class org.openflow.protocol.action.OFAction
length, OFFSET_LENGTH, OFFSET_TYPE, type
 
Constructor Summary
OFActionMirror(int portNumber)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte getCopyStage()
           
 int getDestPort()
           
 int getVlanTag()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
           
 void setCopyStage(byte copyStage)
           
 void setDestPort(int destPort)
           
 void setVlanTag(int vlanTag)
           
 java.lang.String toString()
          Returns a summary of the message
 void writeTo(java.nio.ByteBuffer data)
           
 
Methods inherited from class com.bigswitch.floodlight.vendor.OFActionBigSwitchVendor
getSubtype, setSubtype
 
Methods inherited from class org.openflow.protocol.action.OFActionVendor
getData, getVendor, setData, setVendor
 
Methods inherited from class org.openflow.protocol.action.OFAction
clone, fromString, getLength, getLengthU, getType, setLength, setType
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static final int MINIMUM_LENGTH
See Also:
Constant Field Values

BSN_ACTION_MIRROR

public static final int BSN_ACTION_MIRROR
See Also:
Constant Field Values

destPort

protected int destPort

vlanTag

protected int vlanTag

copyStage

protected byte copyStage

pad0

protected byte pad0

pad1

protected byte pad1

pad2

protected byte pad2
Constructor Detail

OFActionMirror

public OFActionMirror(int portNumber)
Method Detail

getDestPort

public int getDestPort()

setDestPort

public void setDestPort(int destPort)

getVlanTag

public int getVlanTag()

setVlanTag

public void setVlanTag(int vlanTag)

getCopyStage

public byte getCopyStage()

setCopyStage

public void setCopyStage(byte copyStage)

hashCode

public int hashCode()
Overrides:
hashCode in class OFActionBigSwitchVendor

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OFActionBigSwitchVendor

readFrom

public void readFrom(java.nio.ByteBuffer data)
Overrides:
readFrom in class OFActionBigSwitchVendor

writeTo

public void writeTo(java.nio.ByteBuffer data)
Overrides:
writeTo in class OFActionBigSwitchVendor

toString

public java.lang.String toString()
Description copied from class: OFAction
Returns a summary of the message

Overrides:
toString in class OFActionBigSwitchVendor
Returns:
"ofmsg=v=$version;t=$type:l=$len:xid=$xid"