public class AgentImplementation extends ItemImplementation implements AgentOperations
The Agent is an extension of the Item that can execute Jobs, and in doing so change the state of Item workflows, submit data to them in the form of Outcomes and run any scripts associated with those activities. In this server object, none of this specific Agent work is performed - it all must be done using the client API. The server implementation only manages the Agent's data: its roles and persistent Jobs.
mItemPath, mStorage| Constructor and Description |
|---|
AgentImplementation(AgentPath path) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(String roleName)
Adds the given Role to this Agent.
|
protected void |
finalize() |
protected PredefinedStepContainer |
getNewPredefStepContainer()
Agents have their own predefined step containers.
|
void |
refreshJobList(SystemKey sysKey,
String stepPath,
String newJobs)
Updates an Agent's list of Jobs relating to a particular activity.
|
void |
removeRole(String roleName)
Removes the given Role from this Agent.
|
delegatedAction, getSystemKey, getUUID, initialise, queryData, queryLifeCycle, requestActionclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelegatedAction, getSystemKey, initialise, queryData, queryLifeCycle, requestActionpublic AgentImplementation(AgentPath path)
public void refreshJobList(SystemKey sysKey, String stepPath, String newJobs)
refreshJobList in interface AgentOperationssysKey - the item which generated the jobs. The Agent should discard any existing jobs for that Item.stepPath - the Activity within the lifecycle of the item which the jobs relate tonewJobs - an XML marshalled JobArrayList containing the new Jobspublic void addRole(String roleName) throws CannotManageException, ObjectNotFoundException
addRole in interface AgentOperationsroleName - - the new Role to addCannotManageException - When the process has no lookup managerObjectNotFoundException - Role does not existspublic void removeRole(String roleName) throws CannotManageException, ObjectNotFoundException
removeRole in interface AgentOperationsroleName - the Name of the RoleCannotManageException - when an error occurs writing the data to LDAPObjectNotFoundExceptionprotected PredefinedStepContainer getNewPredefStepContainer()
getNewPredefStepContainer in class ItemImplementationAgentPredefinedStepContainerprotected void finalize()
throws Throwable
finalize in class ItemImplementationThrowableCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.