public class BatchActionResult extends BatchResult
BatchInstallResult represents codec for resulting CompositeData of batch operations
made on bundle via FrameworkMBean.
It's converting batch install results to CompositeData toCompositeData()
and from CompositeData to this BatchActionResult from(CompositeData)
.
It provides also constructors to build BatchActionResult.
Structure of compositeData is as defined in compositeType @see FrameworkMBean.BATCH_ACTION_RESULT_TYPE
.
BatchResult
Constructor and Description |
---|
BatchActionResult(long[] completedItems)
Constructs new BatchActionResult with completedItems array.
|
BatchActionResult(long[] completedItems,
java.lang.String error,
long[] remainingItems,
boolean success,
long bundleInError)
Constructs new BatchActionResult.
|
BatchActionResult(long[] completedItems,
java.lang.String error,
long[] remainingItems,
long bundleInError)
Constructs new BatchActionResult.
|
BatchActionResult(java.lang.String error)
Constructs new BatchActionResult with error message.
|
Modifier and Type | Method and Description |
---|---|
static BatchActionResult |
from(javax.management.openmbean.CompositeData data)
Static factory method to create BatchActionResult from CompositeData object.
|
long |
getBundleInError()
Gets bundle in error id.
|
long[] |
getRemainingItems()
Gets remaining items id's.
|
javax.management.openmbean.CompositeData |
toCompositeData()
Translates BatchActionResult to CompositeData represented by
compositeType
FrameworkMBean.BATCH_ACTION_RESULT_TYPE . |
getCompleted, getError, isSuccess
public BatchActionResult(long[] completedItems)
completedItems
- containing the list of bundles completing the batch operation.public BatchActionResult(java.lang.String error)
error
- containing the error message of the batch operation.public BatchActionResult(long[] completedItems, java.lang.String error, long[] remainingItems, long bundleInError)
completedItems
- containing the list of bundles completing the batch operation.error
- containing the error message of the batch operation.remainingItems
- remaining bundles unprocessed by the
failing batch operation.bundleInError
- containing the bundle which caused the error during the batch
operation.public BatchActionResult(long[] completedItems, java.lang.String error, long[] remainingItems, boolean success, long bundleInError)
completedItems
- containing the list of bundles completing the batch operation.error
- containing the error message of the batch operation.remainingItems
- 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_ACTION_RESULT_TYPE
.public static BatchActionResult from(javax.management.openmbean.CompositeData data)
data
- CompositeData
instance.public long[] getRemainingItems()
public long getBundleInError()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"