|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.wbem.client.BatchResult
The BatchResult class encapsulates the results from batch request. This class allows the client to get the results of the individual operations one by one. The class also allows the client to check how many operations failed and the operation IDs of the ones that failed. and the ones that succeeded.
Constructor Summary | |
BatchResult(java.lang.Object[] results)
Constructor for the BatchResult Class. |
Method Summary | |
int[] |
getFailureIds()
Method to get the list of IDs of operations that failed. |
java.lang.Object |
getResult(int operationID)
Method to get the result of a particular operation. |
int[] |
getSuccessIds()
Method to get the list of IDs of operations that succeeded. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BatchResult(java.lang.Object[] results)
results
- An array of objects that are the results of the corresponding
operations that were invoked by the client using a
BatchHandle.Method Detail |
public int[] getFailureIds()
public java.lang.Object getResult(int operationID) throws WBEMException, java.lang.Exception
operationID
- The specific operation whose result is requested.
java.lang.IllegalArgumentException
- Throws this exception if the ID passed in is invalid, or
if the result array is null.
WBEMException
- Throws this exception if the result of operation is a
CIMException.
java.lang.Exception
- Throws an exception if the operation resulted in an
exception other than CIMExceptionpublic int[] getSuccessIds()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |