public class UscRemoteChannelIdentifier extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CHANNEL_TYPE_PREFIX |
Constructor and Description |
---|
UscRemoteChannelIdentifier(InetAddress inetAddress,
UscChannel.ChannelType type)
constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
UscChannel.ChannelType |
getChannelType()
get the channel type of remote channel
|
static UscChannel.ChannelType |
getChannelTypeByString(String type)
get channel type object through the type string
|
InetAddress |
getInetAddress() |
String |
getIp()
get ip string of current remote channel
|
static String |
getIpString(InetAddress address)
get ip string from InetAddress,specially remove the slash prefix
|
String |
getRemoteChannelType()
get type string of remote channel
|
int |
hashCode() |
String |
toString() |
public static final String CHANNEL_TYPE_PREFIX
public UscRemoteChannelIdentifier(InetAddress inetAddress, UscChannel.ChannelType type)
inetAddress
- the ip address of remote devicetype
- the channel type of remote channelpublic InetAddress getInetAddress()
public UscChannel.ChannelType getChannelType()
public static UscChannel.ChannelType getChannelTypeByString(String type)
type
- the type string of a channelpublic static String getIpString(InetAddress address)
address
- the InetAddress objectpublic String getIp()
public String getRemoteChannelType()
Copyright © 2019 OpenDaylight. All rights reserved.