public abstract class AbstractLispRouter extends Object implements LispRouter
| Modifier and Type | Method and Description |
|---|---|
String |
channelId()
Identifies the channel used to communicate with the router.
|
boolean |
connectRouter()
Announces to the LISP agent that this router has connected.
|
org.onosproject.net.Device.Type |
deviceType()
Returns the router device type.
|
void |
disconnectRouter()
Disconnects the router by closing UDP connection.
|
boolean |
equals(Object o) |
List<LispEidRecord> |
getEidRecords()
Obtains a collection of EID records that associated with this router.
|
void |
handleMessage(LispMessage message)
Handles the LISP control message from the channel.
|
int |
hashCode() |
boolean |
isConnected()
Checks if the router is connected.
|
boolean |
isSubscribed()
Checks if the router is subscribed.
|
org.onlab.packet.IpAddress |
routerId()
Obtains an IpAddress version of the ID for this router.
|
void |
sendMessage(LispMessage message)
Writes the LISP control message to the channel.
|
void |
setAgent(LispRouterAgent agent)
Sets the LISP agent to be used.
|
void |
setChannel(io.netty.channel.Channel channel)
Sets the associated Netty channel for this router.
|
void |
setConnected(boolean connected)
Sets whether the router is connected.
|
void |
setEidRecords(List<LispEidRecord> records)
Associates the EID records to this router.
|
void |
setSubscribed(boolean subscribed)
Sets whether the router is subscribed.
|
String |
stringId()
Obtains a string version of the ID for this router.
|
String |
toString() |
public final String channelId()
LispRouterchannelId in interface LispRouterpublic final org.onlab.packet.IpAddress routerId()
LispRouterrouterId in interface LispRouterpublic final String stringId()
LispRouterstringId in interface LispRouterpublic final void setChannel(io.netty.channel.Channel channel)
LispRoutersetChannel in interface LispRouterchannel - the Netty channelpublic final void setConnected(boolean connected)
LispRoutersetConnected in interface LispRouterconnected - whether the router is connectedpublic final boolean isConnected()
LispRouterisConnected in interface LispRouterpublic final boolean isSubscribed()
LispRouterisSubscribed in interface LispRouterpublic final void setSubscribed(boolean subscribed)
LispRoutersetSubscribed in interface LispRoutersubscribed - whether the router is subscribedpublic final void setAgent(LispRouterAgent agent)
LispRoutersetAgent in interface LispRouteragent - the agent to setpublic final org.onosproject.net.Device.Type deviceType()
LispRouterdeviceType in interface LispRouterpublic void sendMessage(LispMessage message)
LispRoutersendMessage in interface LispRoutermessage - the message to be writtenpublic void handleMessage(LispMessage message)
LispRouterhandleMessage in interface LispRoutermessage - the message to be handledpublic final boolean connectRouter()
LispRouterconnectRouter in interface LispRouterpublic final void disconnectRouter()
LispRouterdisconnectRouter in interface LispRouterpublic List<LispEidRecord> getEidRecords()
LispRoutergetEidRecords in interface LispRouterpublic void setEidRecords(List<LispEidRecord> records)
LispRoutersetEidRecords in interface LispRouterrecords - a collection of EID records