public class JBIManagementMessage extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JBIManagementMessage.AbstractTaskResult
base class for task result object.
|
static class |
JBIManagementMessage.ComponentTaskResult
class for component result
|
static class |
JBIManagementMessage.ESBTaskResult
class for esb task resutls that consists of {JBITaskResult, ESBInstanceTaskResult*}
|
static class |
JBIManagementMessage.ExceptionInfo
class for Exception info storage.
|
static class |
JBIManagementMessage.FrameworkTaskResult
class for Framework task results object
|
static class |
JBIManagementMessage.InstanceTaskResult
class for instance result in ESB
|
static class |
JBIManagementMessage.JBIManagementMessageException
This is the Exception takes the Manamagement Message object and prints the
stacktrace information in the message as part of the stacktrace of the
exception.
|
static class |
JBIManagementMessage.JBIManagementMessageUnmarshaller
to convert the management message xml to the JBIManagementMessageObject.
|
static class |
JBIManagementMessage.JBITaskResult
class for jbi task resutls that consists of {FrameworkTaskResult, ComponentTaskResult*}
|
static class |
JBIManagementMessage.MessageInfo
class for message inf object.
|
static class |
JBIManagementMessage.TaskResultInfo
class for task result object
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR
error message type
|
static String |
EXCEPTION
error message type
|
static String |
FAILED
failed status
|
static String |
INFO
info message type
|
static String |
SUCCESS
success status
|
static String |
UNKNOWN
unknown value for any unknonw value of any msg status or type.
|
static String |
WARNING
warning message type
|
| Modifier | Constructor and Description |
|---|---|
protected |
JBIManagementMessage()
Creates a new instance of JBIManagementMessage
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeWriter(Writer writer)
closes the wirter without generationg the ioexception
|
static JBIManagementMessage |
createJBIManagementMessage(String xmlText)
factory method to create the message object
|
static JBIManagementMessage |
createJBIManagementMessage(String taskId,
Map<String,String> responseMap,
boolean requireAllSuccess)
Build a single management message from the entries in the map.
|
protected List |
getAllMessagesForComponent(JBIManagementMessage.ComponentTaskResult compTaskResult) |
protected List |
getComponentTaskResultList()
returns result list.
|
String |
getDebugMessage()
Returns a verbose output.
|
protected JBIManagementMessage.FrameworkTaskResult |
getFrameworkTaskResult()
get fw result object.
|
protected static String |
getL10NMessageType(String msgType)
returns the l10n msgtyep string for msgType
|
String |
getMessage()
returns the formatted message as a string
|
String |
getMessage(String level)
returns the formatted message as a string
|
String |
getMessageDeprecated(String level)
Deprecated.
|
String |
getMessageType()
check message type
|
protected List |
getSortedComponentTaskResultList()
returns result list.
|
String |
getStackTrace()
stacktrace
|
boolean |
isErrorMsgType()
check message type
|
boolean |
isExceptionMsgType()
check message type
|
boolean |
isFailedMsg()
check message status
|
boolean |
isInfoMsgType()
check message type
|
boolean |
isSuccessMsg()
check message status
|
boolean |
isWarningMsg()
check message status
|
boolean |
isWarningMsgType()
check message type
|
void |
printDebugMessage(PrintWriter writer)
prints message
|
void |
printMessage(PrintStream s)
override method
|
void |
printMessage(PrintWriter writer)
prints message
|
protected void |
printMessageList(PrintWriter out,
List msgList) |
void |
printStackTrace(PrintStream s)
override method
|
void |
printStackTrace(PrintWriter writer)
prints stacktrace
|
static void |
printWithIndentation(String prefix,
String msg,
PrintWriter writer)
write string to the writer
|
protected void |
setFrameworkTaskResult(JBIManagementMessage.FrameworkTaskResult frameworkTaskResult)
sets fw result.
|
public static final String FAILED
public static final String SUCCESS
public static final String INFO
public static final String WARNING
public static final String ERROR
public static final String EXCEPTION
public static final String UNKNOWN
protected JBIManagementMessage()
protected void setFrameworkTaskResult(JBIManagementMessage.FrameworkTaskResult frameworkTaskResult)
frameworkTaskResult - fw result object.protected JBIManagementMessage.FrameworkTaskResult getFrameworkTaskResult()
protected List getComponentTaskResultList()
protected List getSortedComponentTaskResultList()
public boolean isSuccessMsg()
public boolean isFailedMsg()
public boolean isWarningMsg()
public String getMessageType()
public boolean isWarningMsgType()
public boolean isInfoMsgType()
public boolean isErrorMsgType()
public boolean isExceptionMsgType()
public void printMessage(PrintStream s)
s - streampublic String getDebugMessage()
public void printDebugMessage(PrintWriter writer)
writer - writerprotected void closeWriter(Writer writer)
writer - Writer objectprotected void printMessageList(PrintWriter out, List msgList)
out - msgList - protected List getAllMessagesForComponent(JBIManagementMessage.ComponentTaskResult compTaskResult)
compTaskResult - public String getMessageDeprecated(String level)
level - Specifies the level of output ("verbose","normal","terse")public String getMessage(String level)
level - Specifies the level of output ("verbose","normal","terse")public String getMessage()
public void printMessage(PrintWriter writer)
writer - writerpublic void printStackTrace(PrintStream s)
s - streampublic static void printWithIndentation(String prefix, String msg, PrintWriter writer)
prefix - stringmsg - stringwriter - Print Writerpublic void printStackTrace(PrintWriter writer)
writer - writerpublic String getStackTrace()
public static JBIManagementMessage createJBIManagementMessage(String xmlText)
xmlText - xml textprotected static String getL10NMessageType(String msgType)
msgType - is one of the INFO, ERROR, WARNINGpublic static JBIManagementMessage createJBIManagementMessage(String taskId, Map<String,String> responseMap, boolean requireAllSuccess)
taskId - - task idresponseMap - - a map of | application variable name | JBI Mgmt OR Exception
message |requireAllSuccess - boolean flag indicating that all responses need to be SUCCESS for
the eventual task result to be SUCCESS.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.