|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.aries.jmx.codec.BatchResult
org.apache.aries.jmx.codec.BatchInstallResult
public class BatchInstallResult
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| Field Summary |
|---|
| Fields inherited from class org.apache.aries.jmx.codec.BatchResult |
|---|
completed, error, success |
| Constructor Summary | |
|---|---|
BatchInstallResult(long[] completedItems)
Constructs new BatchInstallResult with completedItems array. |
|
BatchInstallResult(long[] completedItems,
String error,
String[] remainingLocationItems,
boolean success,
String bundleInError)
Constructs new BatchInstallResult. |
|
BatchInstallResult(long[] completedItems,
String error,
String[] remainingLocationItems,
String bundleInError)
Constructs new BatchInstallResult. |
|
BatchInstallResult(String error)
Constructs new BatchInstallResult with error message. |
|
| Method Summary | |
|---|---|
static BatchInstallResult |
from(CompositeData data)
Static factory method to create BatchInstallResult from CompositeData object. |
String |
getBundleInError()
Gets bundle in error location. |
String[] |
getRemainingLocationItems()
Gets remaining location items. |
CompositeData |
toCompositeData()
Translates BatchInstallResult to CompositeData represented by compositeType FrameworkMBean.BATCH_INSTALL_RESULT_TYPE. |
| Methods inherited from class org.apache.aries.jmx.codec.BatchResult |
|---|
getCompleted, getError, isSuccess, toLongArray, toLongPrimitiveArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatchInstallResult(long[] completedItems)
completedItems - containing the list of bundles completing the batch operation.public BatchInstallResult(String error)
error - containing the error message of the batch operation.
public BatchInstallResult(long[] completedItems,
String error,
String[] remainingLocationItems,
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,
String error,
String[] remainingLocationItems,
boolean success,
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.| Method Detail |
|---|
public CompositeData toCompositeData()
FrameworkMBean.BATCH_INSTALL_RESULT_TYPE.
public static BatchInstallResult from(CompositeData data)
data - CompositeData instance.
public String[] getRemainingLocationItems()
public String getBundleInError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||