java.lang.Object
org.newsclub.net.unix.tipc.AFTIPCTopologyEvent
A TIPC topology event received by the
AFTIPCTopologyWatcher as a result of an
AFTIPCTopologySubscription.- Author:
- Christian Kohlschütter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSome TIPC error code. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.newsclub.net.unix.AFTIPCSocketAddressThe corresponding socket address.intThe found range's lower value.intThe found range's upper value.@Nullable StringReturns the link name for a link state event requested byAFTIPCTopologySubscription.TIPC_LINK_STATEorAFTIPCTopologyWatcher.addLinkStateSubscription().The corresponding subscription that found this event.getType()The event type.inthashCode()booleanReturnstrueiff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_CANCELflag set.booleanisPort()Returnstrueiff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_PORTSflag set.booleanReturnstrueiff the event type isAFTIPCTopologyEvent.Type.TIPC_PUBLISHED.booleanReturnstrueiff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_SERVICEflag set.booleanReturnstrueiff the event type isAFTIPCTopologyEvent.Type.TIPC_SUBSCR_TIMEOUT.booleanReturnstrueiff the event type isAFTIPCTopologyEvent.Type.TIPC_WITHDRAWN.toBuffer()Converts this event message to a newByteBuffer.toString()
-
Method Details
-
toString
-
toBuffer
Converts this event message to a newByteBuffer.- Returns:
- The new buffer, ready to read from.
- Throws:
IOException- on error.
-
getType
-
getFoundLower
public int getFoundLower()The found range's lower value.- Returns:
- The lower value.
-
getFoundUpper
public int getFoundUpper()The found range's upper value.- Returns:
- The upper value.
-
getAddress
public org.newsclub.net.unix.AFTIPCSocketAddress getAddress()The corresponding socket address.- Returns:
- The socket address.
-
getSubscription
The corresponding subscription that found this event.- Returns:
- The subscription.
-
isPublished
public boolean isPublished()Returnstrueiff the event type isAFTIPCTopologyEvent.Type.TIPC_PUBLISHED.- Returns:
trueif this a "published" event.
-
isWithdrawn
public boolean isWithdrawn()Returnstrueiff the event type isAFTIPCTopologyEvent.Type.TIPC_WITHDRAWN.- Returns:
trueif this a "withdrawn" event.
-
isTimeout
public boolean isTimeout()Returnstrueiff the event type isAFTIPCTopologyEvent.Type.TIPC_SUBSCR_TIMEOUT.- Returns:
trueif this a "timeout" event.
-
isPort
public boolean isPort()Returnstrueiff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_PORTSflag set.- Returns:
trueif this a event referring to a "port" subscription.
-
isService
public boolean isService()Returnstrueiff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_SERVICEflag set.- Returns:
trueif this a event referring to a "service" subscription.
-
isCancellationRequest
public boolean isCancellationRequest()Returnstrueiff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_CANCELflag set.- Returns:
trueif this a event referring to a "cancellation" subscription request.
-
hashCode
-
equals
-
getLinkName
Returns the link name for a link state event requested byAFTIPCTopologySubscription.TIPC_LINK_STATEorAFTIPCTopologyWatcher.addLinkStateSubscription(). A link name is something like "f875a40e707d:eth0-8c1645f2ce27:eth0"- Returns:
- The link name, or
nullif unsupported. - Throws:
IOException- on error.
-