public class MNAuditTask extends Object implements Serializable, Callable<String>
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
MNAuditTask()
Constructor - create an empty audit task instance
|
MNAuditTask(String taskid,
org.dataone.service.types.v1.Node auditTargetNode,
ArrayList<org.dataone.service.types.v1.Identifier> auditIDs)
Constructor - create a audit task instance
|
| Modifier and Type | Method and Description |
|---|---|
String |
call()
Implement the Callable interface, providing code that initiates auditing.
|
org.dataone.service.types.v1.Node |
getAuditTargetNode()
Get the target node
|
String |
getAuditTargetNodeSubject()
For the given Audit task, return the Subject listed in the audit target
node.
|
String |
getEventid()
Get the event identifier
|
String |
getTaskid()
Get the task identifier for this task
|
void |
setAuditTargetNode(org.dataone.service.types.v1.Node auditTargetNode)
Set the target node
|
void |
setAuditTargetNodeSubject(String subject)
Set the target node subject identifying the node
|
void |
setEventid(String eventid)
Set the event identifier
|
void |
setTaskid(String taskid)
Set the task identifier for this task
|
public MNAuditTask()
public MNAuditTask(String taskid, org.dataone.service.types.v1.Node auditTargetNode, ArrayList<org.dataone.service.types.v1.Identifier> auditIDs)
taskid - task ID for this taskauditTargetNode - target Node to checkauditIDs - list of IDs to checkpublic String getTaskid()
public void setTaskid(String taskid)
taskid - the taskid to setpublic String getEventid()
public void setEventid(String eventid)
eventid - the eventid to setpublic org.dataone.service.types.v1.Node getAuditTargetNode()
public void setAuditTargetNode(org.dataone.service.types.v1.Node auditTargetNode)
targetNode - the targetNode to setpublic String getAuditTargetNodeSubject()
public void setAuditTargetNodeSubject(String subject)
subject - the targetNode subjectpublic String call() throws IllegalStateException
call in interface Callable<String>IllegalStateExceptionCopyright © 2018. All rights reserved.