Package org.infinispan.tasks.impl
Class TaskExecutionImpl
- java.lang.Object
-
- org.infinispan.tasks.impl.TaskExecutionImpl
-
- All Implemented Interfaces:
TaskExecution
@SerializeWith(TaskExecutionImplExternalizer.class) public class TaskExecutionImpl extends Object implements TaskExecution
TaskExecutionImpl. A concrete representation of aTaskExecution- Since:
- 8.1
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description TaskExecutionImpl(String name, String where, Optional<String> who, org.infinispan.tasks.TaskContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of the taskInstantgetStart()Returns the time when the task was startedUUIDgetUUID()Optional<String>getWhat()An optional context to which the task was applied.StringgetWhere()The node/address where the task was initiatedOptional<String>getWho()An optional name of the principal who has executed this task.voidsetStart(Instant start)
-
-
-
Method Detail
-
getUUID
public UUID getUUID()
-
getName
public String getName()
Description copied from interface:TaskExecutionReturns the name of the task- Specified by:
getNamein interfaceTaskExecution
-
getStart
public Instant getStart()
Description copied from interface:TaskExecutionReturns the time when the task was started- Specified by:
getStartin interfaceTaskExecution
-
getWhat
public Optional<String> getWhat()
Description copied from interface:TaskExecutionAn optional context to which the task was applied. Usually the name of a cache- Specified by:
getWhatin interfaceTaskExecution
-
getWhere
public String getWhere()
Description copied from interface:TaskExecutionThe node/address where the task was initiated- Specified by:
getWherein interfaceTaskExecution
-
getWho
public Optional<String> getWho()
Description copied from interface:TaskExecutionAn optional name of the principal who has executed this task. If the task was triggered internally, this method will return an emptyOptional- Specified by:
getWhoin interfaceTaskExecution
-
setStart
public void setStart(Instant start)
-
-