|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.sblim.wbem.client.BatchResult
BatchResult class encapsulates the results from a batch request, allowing to manipulate results from individual operations one at the time. This class provides mechanisms to check which operations failed, and which operations where successfully completed.
| Field Summary | |
|---|---|
protected int[] |
failureIds
|
protected CIMOperation[] |
operations
|
protected int[] |
successIds
|
| Constructor Summary | |
|---|---|
BatchResult(java.lang.Object[] results)
Constructs an object of a BatchResult. |
|
| Method Summary | |
|---|---|
int[] |
getFailureIds()
Returns an array which contains the indexes of the operations that failed. |
java.lang.Object |
getResult(int operationID)
Returns the object produced by the specified batch operation. |
int[] |
getSuccessIds()
Returns a list of the operation ID that were successfully completed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CIMOperation[] operations
protected int[] failureIds
protected int[] successIds
| Constructor Detail |
public BatchResult(java.lang.Object[] results)
results - An array of CIMOperation| Method Detail |
public int[] getFailureIds()
public java.lang.Object getResult(int operationID)
throws CIMException
operationID -
CIMException - a cim exception of the operation was not succesfully
completed.
java.lang.IllegalArgumentException - is an invalid operationID is passed.public int[] getSuccessIds()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||