| |
|
| java.lang.Object com.sun.jbi.ui.common.JBIManagementMessage
JBIManagementMessage | public class JBIManagementMessage (Code) | | This class represents the management message object that will be constructed
from the xml string returned by the management apis to access various parts of
the message. The factory method create is used to construct the dom for the xml
text and parse the dom to construct this object.
author: Sun Microsystems, Inc. |
Inner Class :public static class MessageInfo | |
Inner Class :public static class ExceptionInfo | |
Inner Class :public static class TaskResultInfo | |
Inner Class :abstract public static class AbstractTaskResult | |
Inner Class :public static class FrameworkTaskResult extends AbstractTaskResult | |
Inner Class :public static class ComponentTaskResult extends AbstractTaskResult | |
Inner Class :public static class JBITaskResult | |
Inner Class :public static class InstanceTaskResult | |
Inner Class :public static class ESBTaskResult | |
Inner Class :public static class JBIManagementMessageUnmarshaller | |
Inner Class :public static class JBIManagementMessageException extends Exception | |
ERROR | final public static String ERROR(Code) | | error message type
|
EXCEPTION | final public static String EXCEPTION(Code) | | error message type
|
SUCCESS | final public static String SUCCESS(Code) | | success status
|
UNKNOWN | final public static String UNKNOWN(Code) | | unknown value for any unknonw value of any msg status or type.
|
WARNING | final public static String WARNING(Code) | | warning message type
|
JBIManagementMessage | protected JBIManagementMessage()(Code) | | Creates a new instance of JBIManagementMessage
|
closeWriter | protected void closeWriter(Writer writer)(Code) | | closes the wirter without generationg the ioexception
Parameters: writer - Writer object |
createJBIManagementMessage | public static JBIManagementMessage createJBIManagementMessage(String xmlText)(Code) | | factory method to create the message object
Parameters: xmlText - xml text Message Object |
createJBIManagementMessage | public static JBIManagementMessage createJBIManagementMessage(String taskId, Map<String, String> responseMap, boolean requireAllSuccess)(Code) | | Build a single management message from the entries in the map. Each entry in the
map corresponds to a application variable name and the value is the JBI Management
message ( or exception message ) response on the target.
Parameters: taskId - - task id Parameters: responseMap - - a map of | application variable name | JBI Mgmt OR Exceptionmessage | Parameters: requireAllSuccess - boolean flag indicating that all responses need to be SUCCESS for the eventual task result to be SUCCESS. a single management message based on the entries in the map. |
getAllMessagesForComponent | protected List getAllMessagesForComponent(ComponentTaskResult compTaskResult)(Code) | | Parameters: compTaskResult - |
getComponentTaskResultList | protected List getComponentTaskResultList()(Code) | | returns result list.
result list. |
getDebugMessage | public String getDebugMessage()(Code) | | Returns a verbose output.
debug message. |
getFrameworkTaskResult | protected FrameworkTaskResult getFrameworkTaskResult()(Code) | | get fw result object.
fw result object. |
getL10NMessageType | protected static String getL10NMessageType(String msgType)(Code) | | returns the l10n msgtyep string for msgType
Parameters: msgType - is one of the INFO, ERROR, WARNING |
getMessage | public String getMessage(String level)(Code) | | returns the formatted message as a string
Parameters: level - Specifies the level of output ("verbose","normal","terse") message. |
getMessage | public String getMessage()(Code) | | returns the formatted message as a string
text |
getMessageDeprecated | public String getMessageDeprecated(String level)(Code) | | returns the formatted message as a string
Parameters: level - Specifies the level of output ("verbose","normal","terse") message. |
getMessageType | public String getMessageType()(Code) | | check message type
msg type or null if no message type present |
getSortedComponentTaskResultList | protected List getSortedComponentTaskResultList()(Code) | | returns result list.
result list. |
getStackTrace | public String getStackTrace()(Code) | | stacktrace
text |
isErrorMsgType | public boolean isErrorMsgType()(Code) | | check message type
true if it is error message type else fasle |
isExceptionMsgType | public boolean isExceptionMsgType()(Code) | | check message type
true if it is error message type else fasle |
isFailedMsg | public boolean isFailedMsg()(Code) | | check message status
true if status is FAILED else fasle |
isInfoMsgType | public boolean isInfoMsgType()(Code) | | check message type
true if it is info message type else fasle |
isSuccessMsg | public boolean isSuccessMsg()(Code) | | check message status
true if status is SUCCESS else fasle |
isWarningMsg | public boolean isWarningMsg()(Code) | | check message status
true if it is warning message else fasle |
isWarningMsgType | public boolean isWarningMsgType()(Code) | | check message type
true if it is warning message type else fasle |
printDebugMessage | public void printDebugMessage(PrintWriter writer)(Code) | | prints message
Parameters: writer - writer |
printMessage | public void printMessage(PrintStream s)(Code) | | override method
Parameters: s - stream |
printMessage | public void printMessage(PrintWriter writer)(Code) | | prints message
Parameters: writer - writer |
printMessageList | protected void printMessageList(PrintWriter out, List msgList)(Code) | | Parameters: out - Parameters: msgList - |
printStackTrace | public void printStackTrace(PrintStream s)(Code) | | override method
Parameters: s - stream |
printStackTrace | public void printStackTrace(PrintWriter writer)(Code) | | prints stacktrace
Parameters: writer - writer |
printWithIndentation | public static void printWithIndentation(String prefix, String msg, PrintWriter writer)(Code) | | write string to the writer
Parameters: prefix - string Parameters: msg - string Parameters: writer - Print Writer |
setFrameworkTaskResult | protected void setFrameworkTaskResult(FrameworkTaskResult frameworkTaskResult)(Code) | | sets fw result.
Parameters: frameworkTaskResult - fw result object. |
|
|
|