public static class ILinkDiscoveryListener.LDUpdate
extends java.lang.Object
ILinkDiscoveryListener.linkDiscoveryUpdate(LDUpdate)
that ILinkDiscoveryService
object calls receives this object as parameter.Modifier and Type | Field and Description |
---|---|
protected long |
dst |
protected int |
dstPort |
protected ILinkDiscoveryListener.UpdateOperation |
operation |
protected long |
src |
protected int |
srcPort |
protected IOFSwitch.SwitchType |
srcType |
protected ILinkDiscovery.LinkType |
type |
Constructor and Description |
---|
ILinkDiscoveryListener.LDUpdate(ILinkDiscoveryListener.LDUpdate old)
Constructor
|
ILinkDiscoveryListener.LDUpdate(long sw,
int port,
ILinkDiscoveryListener.UpdateOperation operation)
Constructor for port up/down
|
ILinkDiscoveryListener.LDUpdate(long src,
int srcPort,
long dst,
int dstPort,
ILinkDiscovery.LinkType type,
ILinkDiscoveryListener.UpdateOperation operation)
Constructor
|
ILinkDiscoveryListener.LDUpdate(long switchId,
IOFSwitch.SwitchType stype,
ILinkDiscoveryListener.UpdateOperation oper)
Constructor for updatedSwitch(sw)
|
Modifier and Type | Method and Description |
---|---|
long |
getDst() |
int |
getDstPort() |
ILinkDiscoveryListener.UpdateOperation |
getOperation() |
long |
getSrc() |
int |
getSrcPort() |
IOFSwitch.SwitchType |
getSrcType() |
ILinkDiscovery.LinkType |
getType() |
void |
setOperation(ILinkDiscoveryListener.UpdateOperation operation) |
java.lang.String |
toString() |
protected long src
protected int srcPort
protected long dst
protected int dstPort
protected IOFSwitch.SwitchType srcType
protected ILinkDiscovery.LinkType type
protected ILinkDiscoveryListener.UpdateOperation operation
public ILinkDiscoveryListener.LDUpdate(long src, int srcPort, long dst, int dstPort, ILinkDiscovery.LinkType type, ILinkDiscoveryListener.UpdateOperation operation)
src
- source switchsrcPort
- source switch portdst
- destination switchdstPort
- destination switch porttype
- the type of link (ILinkDiscovery.LinkType
)operation
- the type of link update operation (ILinkDiscoveryListener.UpdateOperation
)public ILinkDiscoveryListener.LDUpdate(ILinkDiscoveryListener.LDUpdate old)
old
- LDUpdate object to copypublic ILinkDiscoveryListener.LDUpdate(long switchId, IOFSwitch.SwitchType stype, ILinkDiscoveryListener.UpdateOperation oper)
switchId
- id of the switchstype
- IOFSwitch.SwitchType
oper
- ILinkDiscoveryListener.UpdateOperation
public ILinkDiscoveryListener.LDUpdate(long sw, int port, ILinkDiscoveryListener.UpdateOperation operation)
sw
- id of the switchport
- port numberoperation
- ILinkDiscoveryListener.UpdateOperation
public long getSrc()
public int getSrcPort()
public long getDst()
public int getDstPort()
public IOFSwitch.SwitchType getSrcType()
public ILinkDiscovery.LinkType getType()
public ILinkDiscoveryListener.UpdateOperation getOperation()
public void setOperation(ILinkDiscoveryListener.UpdateOperation operation)
public java.lang.String toString()
toString
in class java.lang.Object