|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.provisioning.server.Operation
public class Operation
The Operation class represents a provisioning operation. This class gets the handle of AdventNet Web NMS Config Engine and does the configuration through it. Normally api users need not use this class.But the one who wishes to write ProvisioningAPI implementation can use this api for doing configuration through Config Engine. This class always executes the operation synchronously and scheduling (ie., asynchronous and synchronous mode of operation) is done only in the ProvisioningAPI implementation.
| Constructor Summary | |
|---|---|
Operation(Template template)
Creates a new Operation instance which represents a provisioning operation. |
|
| Method Summary | |
|---|---|
void |
executeConfigTasks(java.lang.String stageId,
java.util.Vector taskVector)
Method to execute the provisioning operation. |
java.lang.String |
getRequestID()
Returns the request id of the request sent. |
TemplateResult |
getResult()
Returns the result of this provisioning operation in TemplateResult xml form. |
java.lang.String |
getStageStatus(java.lang.String stageId)
|
java.lang.String |
getStatus()
Returns the current status of this operation and it will be one of the following: "NOTSTARTED", "INPROGRESS", "FINISHED" or "FAILED". |
void |
setRequestID(java.lang.String requestID)
Set the request id before the request sent in case of asynchronous execution. |
void |
setResult(TemplateResult result)
|
void |
setResult(TemplateResult templateresult,
java.lang.String stageID)
Set the result of the operation once configuration finished. |
void |
setScheduledTime(java.lang.String scheduledTime)
|
void |
setStatus(java.lang.String status)
Set the status of this operation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Operation(Template template)
Operation instance which represents a provisioning operation.
It requires the template reference that contains provisioning operation details.
template - a Template reference which contains config task details.| Method Detail |
|---|
public void executeConfigTasks(java.lang.String stageId,
java.util.Vector taskVector)
throws OperationFailedException
OperationFailedException - if an error occurspublic void setRequestID(java.lang.String requestID)
requestID - a long value to uniquly identify a operation.public java.lang.String getRequestID()
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status - the status of the opreation
public void setResult(TemplateResult templateresult,
java.lang.String stageID)
templateResult - TemplateResult that contains result of the operationpublic void setResult(TemplateResult result)
public void setScheduledTime(java.lang.String scheduledTime)
public TemplateResult getResult()
public java.lang.String getStageStatus(java.lang.String stageId)
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||