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()
ScheduledTaskHandler
getAddress
in class ScheduledTaskHandler
public int getPartitionId()
ScheduledTaskHandler
getPartitionId
in class ScheduledTaskHandler
public String getSchedulerName()
ScheduledTaskHandler
getSchedulerName
in class ScheduledTaskHandler
public String getTaskName()
ScheduledTaskHandler
getTaskName
in class ScheduledTaskHandler
public boolean isAssignedToPartition()
isAssignedToPartition
in class ScheduledTaskHandler
public boolean isAssignedToMember()
isAssignedToMember
in class ScheduledTaskHandler
public String toUrn()
ScheduledTaskHandler
ScheduledTaskHandler
can be constructed
again from the Urn String using ScheduledTaskHandler.of(String)
toUrn
in class ScheduledTaskHandler
public int getFactoryId()
IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
in
- inputIOException
public 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 © 2016 Hazelcast, Inc.. All Rights Reserved.