Class Event
java.lang.Object
org.apache.flink.streaming.examples.statemachine.event.Event
Data type for events, consisting of the originating IP address and an event type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StringformatAddress(int address) Util method to create a string representation of a 32 bit integer representing an IPv4 address.inthashCode()intGets the event's source address.toString()type()Gets the event's type.
-
Constructor Details
-
Event
Creates a new event.- Parameters:
type- The event type.sourceAddress- The originating address (think 32 bit IPv4 address).
-
-
Method Details
-
type
Gets the event's type. -
sourceAddress
public int sourceAddress()Gets the event's source address. -
hashCode
public int hashCode() -
equals
-
toString
-
formatAddress
Util method to create a string representation of a 32 bit integer representing an IPv4 address.- Parameters:
address- The address, MSB first.- Returns:
- The IP address string.
-