public static class ILinkDiscoveryListener.LDUpdate
extends java.lang.Object
ILinkDiscoveryListener.linkDiscoveryUpdate(LDUpdate)
that IDiscoveryService
object calls receives this object as parameter.Modifier and Type | Field and Description |
---|---|
protected long |
dst |
protected short |
dstPort |
protected ILinkDiscoveryListener.UpdateOperation |
operation |
protected long |
src |
protected short |
srcPort |
protected IOFSwitch.SwitchType |
srcType |
protected ILinkDiscovery.LinkType |
type |
Constructor and Description |
---|
ILinkDiscoveryListener.LDUpdate(ILinkDiscoveryListener.LDUpdate old)
Constructor
|
ILinkDiscoveryListener.LDUpdate(long switchId,
IOFSwitch.SwitchType stype,
ILinkDiscoveryListener.UpdateOperation oper)
Constructor for updatedSwitch(sw)
|
ILinkDiscoveryListener.LDUpdate(long sw,
short port,
ILinkDiscoveryListener.UpdateOperation operation)
Constructor for port up/down
|
ILinkDiscoveryListener.LDUpdate(long src,
short srcPort,
long dst,
short dstPort,
ILinkDiscovery.LinkType type,
ILinkDiscoveryListener.UpdateOperation operation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getDst() |
short |
getDstPort() |
ILinkDiscoveryListener.UpdateOperation |
getOperation() |
long |
getSrc() |
short |
getSrcPort() |
IOFSwitch.SwitchType |
getSrcType() |
ILinkDiscovery.LinkType |
getType() |
void |
setOperation(ILinkDiscoveryListener.UpdateOperation operation) |
java.lang.String |
toString() |
protected long src
protected short srcPort
protected long dst
protected short dstPort
protected IOFSwitch.SwitchType srcType
protected ILinkDiscovery.LinkType type
protected ILinkDiscoveryListener.UpdateOperation operation
public ILinkDiscoveryListener.LDUpdate(long src, short srcPort, long dst, short 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, short port, ILinkDiscoveryListener.UpdateOperation operation)
sw
- id of the switchport
- port numberoperation
- ILinkDiscoveryListener.UpdateOperation
public long getSrc()
public short getSrcPort()
public long getDst()
public short 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