public class UscRouteIdentifier extends UscRemoteChannelIdentifier implements Serializable
CHANNEL_TYPE_PREFIX
Constructor and Description |
---|
UscRouteIdentifier(InetAddress inetAddress,
UscChannel.ChannelType type,
int sessionId,
int applicationPort)
constructor using device address,channel type,session identifier and
application type
|
UscRouteIdentifier(UscRemoteChannelIdentifier remoteChannel,
int sessionId,
int applicationPort)
constructor by remote channel and session identifier and application port
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getApplicationPort()
get application port
|
int |
getSessionId()
get session identifier
|
int |
hashCode() |
boolean |
hasSameDevice(UscRouteIdentifier other)
check if the route identifier using same device
|
String |
toString() |
getChannelType, getChannelTypeByString, getInetAddress, getIp, getIpString, getRemoteChannelType
public UscRouteIdentifier(UscRemoteChannelIdentifier remoteChannel, int sessionId, int applicationPort)
remoteChannel
- remote channelsessionId
- session identifierapplicationPort
- application portpublic UscRouteIdentifier(InetAddress inetAddress, UscChannel.ChannelType type, int sessionId, int applicationPort)
inetAddress
- device addresstype
- channel typesessionId
- session identifierapplicationPort
- application portpublic int getSessionId()
public String toString()
toString
in class UscRemoteChannelIdentifier
public boolean equals(Object obj)
equals
in class UscRemoteChannelIdentifier
public int hashCode()
hashCode
in class UscRemoteChannelIdentifier
public boolean hasSameDevice(UscRouteIdentifier other)
other
- another route identifierpublic int getApplicationPort()
Copyright © 2019 OpenDaylight. All rights reserved.