public class BatchInstallResult extends BatchResult
BatchInstallResult represents codec for resulting CompositeData of
FrameworkMBean installBundles methods.
It converting batch install results to CompositeData toCompositeData()
and from CompositeData to this BatchInstallResult from(CompositeData)
.
It provides also constructors to build BatchInstallResult.
Structure of compositeData as defined in compositeType @see FrameworkMBean.BATCH_INSTALL_RESULT_TYPE
.
BatchResult
Constructor and Description |
---|
BatchInstallResult(long[] completedItems)
Constructs new BatchInstallResult with completedItems array.
|
BatchInstallResult(long[] completedItems,
java.lang.String error,
java.lang.String[] remainingLocationItems,
boolean success,
java.lang.String bundleInError)
Constructs new BatchInstallResult.
|
BatchInstallResult(long[] completedItems,
java.lang.String error,
java.lang.String[] remainingLocationItems,
java.lang.String bundleInError)
Constructs new BatchInstallResult.
|
BatchInstallResult(java.lang.String error)
Constructs new BatchInstallResult with error message.
|
Modifier and Type | Method and Description |
---|---|
static BatchInstallResult |
from(javax.management.openmbean.CompositeData data)
Static factory method to create BatchInstallResult from CompositeData object.
|
java.lang.String |
getBundleInError()
Gets bundle in error location.
|
java.lang.String[] |
getRemainingLocationItems()
Gets remaining location items.
|
javax.management.openmbean.CompositeData |
toCompositeData()
Translates BatchInstallResult to CompositeData represented by
compositeType
FrameworkMBean.BATCH_INSTALL_RESULT_TYPE . |
getCompleted, getError, isSuccess
public BatchInstallResult(long[] completedItems)
completedItems
- containing the list of bundles completing the batch operation.public BatchInstallResult(java.lang.String error)
error
- containing the error message of the batch operation.public BatchInstallResult(long[] completedItems, java.lang.String error, java.lang.String[] remainingLocationItems, java.lang.String bundleInError)
completedItems
- containing the list of bundles completing the batch operation.error
- containing the error message of the batch operation.remainingLocationItems
- remaining bundles unprocessed by the
failing batch operation.bundleInError
- containing the bundle which caused the error during the batch
operation.public BatchInstallResult(long[] completedItems, java.lang.String error, java.lang.String[] remainingLocationItems, boolean success, java.lang.String bundleInError)
completedItems
- containing the list of bundles completing the batch operation.error
- containing the error message of the batch operation.remainingLocationItems
- remaining bundles unprocessed by the
failing batch operation.success
- indicates if this operation was successful.bundleInError
- containing the bundle which caused the error during the batch
operation.public javax.management.openmbean.CompositeData toCompositeData()
FrameworkMBean.BATCH_INSTALL_RESULT_TYPE
.public static BatchInstallResult from(javax.management.openmbean.CompositeData data)
data
- CompositeData
instance.public java.lang.String[] getRemainingLocationItems()
public java.lang.String getBundleInError()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"