Class DataTransferEvent
- java.lang.Object
-
- org.apache.nemo.runtime.common.metric.Event
-
- org.apache.nemo.runtime.common.metric.DataTransferEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class DataTransferEvent extends Event
Event for data transfer, such as data read or write.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataTransferEvent.TransferType
Enum of transfer types.
-
Constructor Summary
Constructors Constructor Description DataTransferEvent(long timestamp, DataTransferEvent.TransferType transferType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTransferEvent.TransferType
getTransferType()
Get transfer type.void
setTransferType(DataTransferEvent.TransferType transferType)
Set transfer type.-
Methods inherited from class org.apache.nemo.runtime.common.metric.Event
getTimestamp, setTimestamp
-
-
-
-
Constructor Detail
-
DataTransferEvent
public DataTransferEvent(long timestamp, DataTransferEvent.TransferType transferType)
-
-
Method Detail
-
getTransferType
public final DataTransferEvent.TransferType getTransferType()
Get transfer type.- Returns:
- TransferType.
-
setTransferType
public final void setTransferType(DataTransferEvent.TransferType transferType)
Set transfer type.- Parameters:
transferType
- TransferType to set.
-
-