public abstract class AbstractLispRouter extends java.lang.Object implements LispRouter
| Modifier and Type | Method and Description |
|---|---|
java.lang.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(java.lang.Object o) |
java.util.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(java.util.List<LispEidRecord> records)
Associates the EID records to this router.
|
void |
setSubscribed(boolean subscribed)
Sets whether the router is subscribed.
|
java.lang.String |
stringId()
Obtains a string version of the ID for this router.
|
java.lang.String |
toString() |
public final java.lang.String channelId()
LispRouterchannelId in interface LispRouterpublic final org.onlab.packet.IpAddress routerId()
LispRouterrouterId in interface LispRouterpublic final java.lang.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 java.util.List<LispEidRecord> getEidRecords()
LispRoutergetEidRecords in interface LispRouterpublic void setEidRecords(java.util.List<LispEidRecord> records)
LispRoutersetEidRecords in interface LispRouterrecords - a collection of EID recordspublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object