|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osgi.jmx.codec.BundleBatchInstallResult
public class BundleBatchInstallResult
This class represents the CODEC for the resulting composite data from the batch install operations on the bundles in the FrameworkMBean. It serves as both the documentation of the type structure and as the codification of the mechanism to convert to/from the CompositeData.
The structure of the composite data is:
Success | Boolean |
Error | String |
Completed | Array of long |
BundleInError | String |
Remaining | Array of String |
Field Summary | |
---|---|
static javax.management.openmbean.CompositeType |
BATCH_RESULT
The CompositeType which represents the result of batch install operations on the FrameworkMBean |
Constructor Summary | |
---|---|
BundleBatchInstallResult(javax.management.openmbean.CompositeData compositeData)
Construct a result representing the contents of the supplied CompositeData returned from a batch operation. |
|
BundleBatchInstallResult(long[] completed)
Construct a result signifying the successful completion of the batch operation. |
|
BundleBatchInstallResult(java.lang.String errorMessage,
long[] completed,
java.lang.String bundleInError,
java.lang.String[] remaining)
Construct a result indictating the failure of a batch operation. |
Method Summary | |
---|---|
javax.management.openmbean.CompositeData |
asCompositeData()
Answer the receiver encoded as CompositeData |
java.lang.String |
getBundleInError()
Answer the bundle location which indicates the bundle that produced an error during the batch operation. |
long[] |
getCompleted()
Answer the list of bundle identifiers that successfully completed the batch operation. |
java.lang.String |
getErrorMessage()
Answer the error message indicating the error that occurred during the batch operation or null if the operation was successful |
java.lang.String[] |
getRemaining()
Answer the list of locations of the bundles that were not processed during the batch operation, or null if the operation was successsful |
boolean |
isSuccess()
Answer true if the batch operation was successful, false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final javax.management.openmbean.CompositeType BATCH_RESULT
Constructor Detail |
---|
public BundleBatchInstallResult(javax.management.openmbean.CompositeData compositeData)
compositeData
- - the CompositeData representing the result of a batch
operation.public BundleBatchInstallResult(long[] completed)
completed
- - the resulting bundle identifiers of the installed bundlespublic BundleBatchInstallResult(java.lang.String errorMessage, long[] completed, java.lang.String bundleInError, java.lang.String[] remaining)
errorMessage
- - the message indicating the errorcompleted
- - the list of bundle identifiers indicating bundles that have
successfully completed the batch operationbundleInError
- - the identifier of the bundle which produced the errorremaining
- - the list of bundle identifiers which remain unprocessedMethod Detail |
---|
public javax.management.openmbean.CompositeData asCompositeData()
public java.lang.String getBundleInError()
public long[] getCompleted()
public java.lang.String getErrorMessage()
public java.lang.String[] getRemaining()
public boolean isSuccess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |