Package org.drasyl.node.event
Class Node
java.lang.Object
org.drasyl.node.event.Node
Used by 
Event to describe an event related to the local Node (e.g. NodeUpEvent,
 NodeOnlineEvent).
 This is an immutable object.
- 
Constructor Details- 
Nodepublic Node()
 
- 
- 
Method Details- 
getIdentityReturns the node's identity.- Returns:
- the node's identity
 
- 
getPortpublic abstract int getPort()Returns the node's server port.- Returns:
- the node's server port
 
- 
getTcpFallbackPortpublic abstract int getTcpFallbackPort()Returns the node's tcp fallback server port.- Returns:
- the node's tcp fallback server port
 
- 
of- Throws:
- NullPointerException- if- identityis- null
 
- 
of- Throws:
- NullPointerException- if- identityis- null
- IllegalArgumentException- if- portis negative
 
- 
of- Throws:
- NullPointerException- if- identityis- null
- IllegalArgumentException- if- portor- tcpFallbackPortis negative
 
 
-