public final class ScheduledTaskHandlerImpl extends ScheduledTaskHandler
| Constructor and Description |
|---|
ScheduledTaskHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Address |
getAddress()
Return the address of the member the task is associated with.
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
int |
getPartitionId()
Return the partition id the task is associated with.
|
String |
getSchedulerName()
Return the name of the ScheduledExecutor this tasks is running on.
|
String |
getTaskName()
Return the name of the task.
|
int |
hashCode() |
boolean |
isAssignedToMember() |
boolean |
isAssignedToPartition() |
static ScheduledTaskHandler |
of(Address addr,
String schedulerName,
String taskName) |
static ScheduledTaskHandler |
of(int partitionId,
String schedulerName,
String taskName) |
static ScheduledTaskHandler |
of(String urn) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
String |
toUrn()
Return the String represantion of the handler.
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Address getAddress()
ScheduledTaskHandlergetAddress in class ScheduledTaskHandlerpublic int getPartitionId()
ScheduledTaskHandlergetPartitionId in class ScheduledTaskHandlerpublic String getSchedulerName()
ScheduledTaskHandlergetSchedulerName in class ScheduledTaskHandlerpublic String getTaskName()
ScheduledTaskHandlergetTaskName in class ScheduledTaskHandlerpublic boolean isAssignedToPartition()
isAssignedToPartition in class ScheduledTaskHandlerpublic boolean isAssignedToMember()
isAssignedToMember in class ScheduledTaskHandlerpublic String toUrn()
ScheduledTaskHandlerScheduledTaskHandler can be constructed
again from the Urn String using ScheduledTaskHandler.of(String)toUrn in class ScheduledTaskHandlerpublic int getFactoryId()
IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablein - inputIOExceptionpublic static ScheduledTaskHandler of(Address addr, String schedulerName, String taskName)
public static ScheduledTaskHandler of(int partitionId, String schedulerName, String taskName)
public static ScheduledTaskHandler of(String urn)
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.