public class BatchInfo extends Object
| Constructor and Description |
|---|
BatchInfo() |
BatchInfo(String name)
|
BatchInfo(String name,
Calendar startedAt)
Creates a new BatchInfo instance.
|
BatchInfo(String id,
String batchSequenceName,
String name,
String startedAt) |
| Modifier and Type | Method and Description |
|---|---|
BatchInfo |
addProperty(String name,
String value) |
boolean |
equals(Object obj) |
String |
getId() |
String |
getName() |
List<Map<String,String>> |
getProperties() |
String |
getSequenceName() |
Calendar |
getStartedAt() |
boolean |
isCompleted() |
boolean |
isNotifyOnCompletion() |
void |
setCompleted(boolean completed) |
void |
setId(String id)
Sets a unique identifier for the batch.
|
void |
setNotifyOnCompletion(boolean notifyOnCompletion) |
void |
setSequenceName(String sequenceName) |
void |
setStartedAt(String startedAt) |
String |
toString() |
BatchInfo |
withBatchId(String id)
Sets a unique identifier for the batch and allows chaining of the id
with the instance then returns that instance.
|
public BatchInfo(String name, Calendar startedAt)
name - Name of batch or null if anonymous.startedAt - Batch start timepublic BatchInfo()
public BatchInfo(String name)
BatchInfo(String, Calendar).
startedAt defaults to the current time.name - The name of the batch.public String getName()
null if anonymous.public String getId()
public void setId(String id)
id - The batch's IDpublic BatchInfo withBatchId(String id)
id - The batch's IDBatchInfo instance.public Calendar getStartedAt()
public void setStartedAt(String startedAt)
public String getSequenceName()
public void setSequenceName(String sequenceName)
public boolean isNotifyOnCompletion()
public void setNotifyOnCompletion(boolean notifyOnCompletion)
public boolean isCompleted()
public void setCompleted(boolean completed)
Copyright © 2022. All rights reserved.