Class Event
- java.lang.Object
-
- org.apache.flink.streaming.examples.statemachine.event.Event
-
public class Event extends Object
Data type for events, consisting of the originating IP address and an event type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static StringformatAddress(int address)Util method to create a string representation of a 32 bit integer representing an IPv4 address.inthashCode()intsourceAddress()Gets the event's source address.StringtoString()EventTypetype()Gets the event's type.
-
-
-
Constructor Detail
-
Event
public Event(EventType type, int sourceAddress)
Creates a new event.- Parameters:
type- The event type.sourceAddress- The originating address (think 32 bit IPv4 address).
-
-
Method Detail
-
type
public EventType type()
Gets the event's type.
-
sourceAddress
public int sourceAddress()
Gets the event's source address.
-
formatAddress
public static String formatAddress(int address)
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.
-
-