org.apache.servicemix.jbi.deployer.utils
Class ManagementSupport
java.lang.Object
org.apache.servicemix.jbi.deployer.utils.ManagementSupport
public final class ManagementSupport
- extends Object
ManagementMessageHelper is a class that ease the parsing and build of management messages.
|
Method Summary |
static javax.jbi.management.DeploymentException |
componentFailure(String task,
String component,
String info)
|
static Element |
createComponentFailure(String task,
String component,
String info,
Throwable t)
|
static Element |
createComponentMessage(ManagementSupport.Message msg)
|
static Element |
createComponentSuccess(String task,
String component)
|
static Element |
createComponentWarning(String task,
String component,
String info,
Throwable t)
|
static String |
createFrameworkMessage(ManagementSupport.Message fmkMsg,
List<Element> componentResults)
|
static String |
createSuccessMessage(String task)
|
static String |
createSuccessMessage(String task,
List<Element> componentResults)
|
static String |
createSuccessMessage(String task,
String info)
|
static String |
createSuccessMessage(String task,
String info,
List<Element> componentResults)
|
static String |
createWarningMessage(String task,
String info,
List<Element> componentResults)
|
static RuntimeException |
failure(String task,
List<Element> componentResults)
|
static RuntimeException |
failure(String task,
String info)
|
static RuntimeException |
failure(String task,
String info,
Throwable t)
|
static RuntimeException |
failure(String task,
String info,
Throwable t,
List<Element> componentResults)
|
static boolean |
getComponentTaskResult(String resultMsg,
String component,
List<Element> results)
|
protected static String |
wrap(String resultMsg)
Wrap the result message string to set the default namespace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FAILED
public static final String FAILED
- See Also:
- Constant Field Values
ERROR
public static final String ERROR
- See Also:
- Constant Field Values
SUCCESS
public static final String SUCCESS
- See Also:
- Constant Field Values
WARNING
public static final String WARNING
- See Also:
- Constant Field Values
COMPONENT_NAME
public static final String COMPONENT_NAME
- See Also:
- Constant Field Values
COMPONENT_TASK_RESULT
public static final String COMPONENT_TASK_RESULT
- See Also:
- Constant Field Values
COMPONENT_TASK_RESULT_DETAILS
public static final String COMPONENT_TASK_RESULT_DETAILS
- See Also:
- Constant Field Values
DEFAULT_VERSION
public static final String DEFAULT_VERSION
- See Also:
- Constant Field Values
EXCEPTION_INFO
public static final String EXCEPTION_INFO
- See Also:
- Constant Field Values
FRMWK_TASK_RESULT
public static final String FRMWK_TASK_RESULT
- See Also:
- Constant Field Values
FRMWK_TASK_RESULT_DETAILS
public static final String FRMWK_TASK_RESULT_DETAILS
- See Also:
- Constant Field Values
HTTP_JAVA_SUN_COM_XML_NS_JBI_MANAGEMENT_MESSAGE
public static final String HTTP_JAVA_SUN_COM_XML_NS_JBI_MANAGEMENT_MESSAGE
- See Also:
- Constant Field Values
JBI_TASK
public static final String JBI_TASK
- See Also:
- Constant Field Values
JBI_TASK_RESULT
public static final String JBI_TASK_RESULT
- See Also:
- Constant Field Values
LOC_MESSAGE
public static final String LOC_MESSAGE
- See Also:
- Constant Field Values
LOC_TOKEN
public static final String LOC_TOKEN
- See Also:
- Constant Field Values
LOCALE
public static final String LOCALE
- See Also:
- Constant Field Values
MESSAGE_TYPE
public static final String MESSAGE_TYPE
- See Also:
- Constant Field Values
MSG_LOC_INFO
public static final String MSG_LOC_INFO
- See Also:
- Constant Field Values
NESTING_LEVEL
public static final String NESTING_LEVEL
- See Also:
- Constant Field Values
STACK_TRACE
public static final String STACK_TRACE
- See Also:
- Constant Field Values
TASK_ID
public static final String TASK_ID
- See Also:
- Constant Field Values
TASK_RESULT
public static final String TASK_RESULT
- See Also:
- Constant Field Values
TASK_RESULT_DETAILS
public static final String TASK_RESULT_DETAILS
- See Also:
- Constant Field Values
TASK_STATUS_MSG
public static final String TASK_STATUS_MSG
- See Also:
- Constant Field Values
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
XMLNS
public static final String XMLNS
- See Also:
- Constant Field Values
failure
public static RuntimeException failure(String task,
String info)
failure
public static RuntimeException failure(String task,
List<Element> componentResults)
failure
public static RuntimeException failure(String task,
String info,
Throwable t)
failure
public static RuntimeException failure(String task,
String info,
Throwable t,
List<Element> componentResults)
createSuccessMessage
public static String createSuccessMessage(String task)
createSuccessMessage
public static String createSuccessMessage(String task,
List<Element> componentResults)
createSuccessMessage
public static String createSuccessMessage(String task,
String info)
createSuccessMessage
public static String createSuccessMessage(String task,
String info,
List<Element> componentResults)
createWarningMessage
public static String createWarningMessage(String task,
String info,
List<Element> componentResults)
createFrameworkMessage
public static String createFrameworkMessage(ManagementSupport.Message fmkMsg,
List<Element> componentResults)
componentFailure
public static javax.jbi.management.DeploymentException componentFailure(String task,
String component,
String info)
createComponentMessage
public static Element createComponentMessage(ManagementSupport.Message msg)
createComponentSuccess
public static Element createComponentSuccess(String task,
String component)
createComponentFailure
public static Element createComponentFailure(String task,
String component,
String info,
Throwable t)
createComponentWarning
public static Element createComponentWarning(String task,
String component,
String info,
Throwable t)
getComponentTaskResult
public static boolean getComponentTaskResult(String resultMsg,
String component,
List<Element> results)
wrap
protected static String wrap(String resultMsg)
- Wrap the result message string to set the default namespace. The JBI spec
is a bit misleading here: the javadoc for ServiceUnitManager.deploy shows
a result string that does not declare the namespace for the
component-task-result element. That would be invalid, but we'll hack the
result string to allow it.
Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.