org.apache.servicemix.jbi.framework
Class ManagementSupport

java.lang.Object
  extended by org.apache.servicemix.jbi.framework.ManagementSupport

public final class ManagementSupport
extends Object

ManagementMessageHelper is a class that ease the building of management messages.


Nested Class Summary
static class ManagementSupport.Message
           
 
Method Summary
static javax.jbi.management.DeploymentException componentFailure(String task, String component, String info)
           
static Element createComponentFailure(String task, String component, String info, Exception e)
           
static Element createComponentMessage(ManagementSupport.Message msg)
           
static Element createComponentSuccess(String task, String component)
           
static Element createComponentWarning(String task, String component, String info, Exception e)
           
static String createFrameworkMessage(ManagementSupport.Message fmkMsg, List componentResults)
           
static String createSuccessMessage(String task)
           
static String createSuccessMessage(String task, List componentResults)
           
static String createSuccessMessage(String task, String info)
           
static String createSuccessMessage(String task, String info, List componentResults)
           
static String createWarningMessage(String task, String info, List componentResults)
           
static Exception failure(String task, List componentResults)
           
static Exception failure(String task, String info)
           
static Exception failure(String task, String info, Exception e)
           
static Exception failure(String task, String info, Exception e, List componentResults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

failure

public static Exception failure(String task,
                                String info)
                         throws Exception
Throws:
Exception

failure

public static Exception failure(String task,
                                List componentResults)
                         throws Exception
Throws:
Exception

failure

public static Exception failure(String task,
                                String info,
                                Exception e)
                         throws Exception
Throws:
Exception

failure

public static Exception failure(String task,
                                String info,
                                Exception e,
                                List componentResults)
                         throws Exception
Throws:
Exception

createSuccessMessage

public static String createSuccessMessage(String task)

createSuccessMessage

public static String createSuccessMessage(String task,
                                          List componentResults)

createSuccessMessage

public static String createSuccessMessage(String task,
                                          String info)

createSuccessMessage

public static String createSuccessMessage(String task,
                                          String info,
                                          List componentResults)

createWarningMessage

public static String createWarningMessage(String task,
                                          String info,
                                          List componentResults)

createFrameworkMessage

public static String createFrameworkMessage(ManagementSupport.Message fmkMsg,
                                            List 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,
                                             Exception e)

createComponentWarning

public static Element createComponentWarning(String task,
                                             String component,
                                             String info,
                                             Exception e)


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.