public class DeviceOwnerEvent extends Object
DeviceOwnerService
(immutable).Modifier and Type | Class and Description |
---|---|
static class |
DeviceOwnerEvent.Type |
Constructor and Description |
---|
DeviceOwnerEvent(DeviceOwnerEvent.Type type,
OwnerChangeTrigger trigger,
IpAddress newOwnerIp,
IpAddress previousOwnerIp,
DataPathId dataPathId,
ProtocolVersion negotiated,
IpAddress deviceIp,
IpAddress localIp)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
DataPathId |
dataPathId()
Returns the data path ID on which the ownership change occurred.
|
IpAddress |
deviceIp()
Returns the device IP on which the ownership change occurred.
|
boolean |
isNewOwner()
Returns
true if the local controller is the new owner. |
ProtocolVersion |
negotiated()
Returns the negotiated protocol version of the data path ID.
|
IpAddress |
newOwnerIp()
Returns the controller IP of the new owner.
|
IpAddress |
previousOwnerIp()
Returns the controller IP of the previous owner.
|
OwnerChangeTrigger |
trigger()
Returns what triggered this ownership change.
|
DeviceOwnerEvent.Type |
type()
Returns the type of this event.
|
boolean |
wasPreviousOwner()
Returns
true if the local controller was the previous owner. |
public DeviceOwnerEvent(DeviceOwnerEvent.Type type, OwnerChangeTrigger trigger, IpAddress newOwnerIp, IpAddress previousOwnerIp, DataPathId dataPathId, ProtocolVersion negotiated, IpAddress deviceIp, IpAddress localIp)
type
- event typetrigger
- what triggered the ownership changenewOwnerIp
- controller IP of the new ownerpreviousOwnerIp
- controller IP that was the previous ownerdataPathId
- data path ID on which the ownership change occurrednegotiated
- negotiated protocol version of the data path IDdeviceIp
- device IP on which the ownership change occurredlocalIp
- local controller IP (can be null
)public DeviceOwnerEvent.Type type()
public OwnerChangeTrigger trigger()
public IpAddress newOwnerIp()
public IpAddress previousOwnerIp()
public DataPathId dataPathId()
public ProtocolVersion negotiated()
public IpAddress deviceIp()
public boolean isNewOwner()
true
if the local controller is the new owner.true
if the local controller is the new ownerpublic boolean wasPreviousOwner()
true
if the local controller was the previous owner.true
if the local controller was the previous ownerCopyright © 2015. All Rights Reserved.