com.ibm.broker.plugin

Class MbService

  • java.lang.Object
    • com.ibm.broker.plugin.MbService


  • public class MbService
    extends java.lang.Object
    MbService contains static methods for writing information to the system log.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MbService() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void logError(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)
      Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).
      static void logError(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)
      Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).
      static void logInformation(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)
      Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).
      static void logInformation(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)
      Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).
      static void logUserDebugTrace(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.String[] inserts)
      Writes a message to the user trace facility at the debug level.
      static void logUserTrace(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.String[] inserts)
      Writes a message to the user trace facility.
      static void logWarning(java.lang.Object source, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)
      Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).
      static void logWarning(java.lang.String className, java.lang.String methodName, java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.String traceText, java.lang.Object[] inserts)
      Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms).
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MbService

        public MbService()
    • Method Detail

      • logError

        public static void logError(java.lang.String className,
                                    java.lang.String methodName,
                                    java.lang.String resourceBundleName,
                                    java.lang.String messageKey,
                                    java.lang.String traceText,
                                    java.lang.Object[] inserts)
                             throws MbException
        Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). The message has the following format: BIP4362E: Java user-defined node error: [MessageSource:MessageKey] Full message with inserts resolved: traceText
        Parameters:
        className - The name of the class generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
      • logInformation

        public static void logInformation(java.lang.String className,
                                          java.lang.String methodName,
                                          java.lang.String resourceBundleName,
                                          java.lang.String messageKey,
                                          java.lang.String traceText,
                                          java.lang.Object[] inserts)
                                   throws MbException
        Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). The message has the following format: BIP4360I: Java user-defined node information: [MessageSource:MessageKey] Full message with inserts resolved: traceText
        Parameters:
        className - The name of the class generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
      • logWarning

        public static void logWarning(java.lang.String className,
                                      java.lang.String methodName,
                                      java.lang.String resourceBundleName,
                                      java.lang.String messageKey,
                                      java.lang.String traceText,
                                      java.lang.Object[] inserts)
                               throws MbException
        Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). The message has the following format: BIP4361W: Java user-defined node warning: [MessageSource:MessageKey] Full message with inserts resolved: traceText
        Parameters:
        className - The name of the class generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
      • logError

        public static void logError(java.lang.Object source,
                                    java.lang.String methodName,
                                    java.lang.String resourceBundleName,
                                    java.lang.String messageKey,
                                    java.lang.String traceText,
                                    java.lang.Object[] inserts)
                             throws MbException
        Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). The message has the following format: BIP4362E: Java user-defined node error: [MessageSource:MessageKey] Full message with inserts resolved: traceText
        Parameters:
        source - The object generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
      • logInformation

        public static void logInformation(java.lang.Object source,
                                          java.lang.String methodName,
                                          java.lang.String resourceBundleName,
                                          java.lang.String messageKey,
                                          java.lang.String traceText,
                                          java.lang.Object[] inserts)
                                   throws MbException
        Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). The message has the following format: BIP4360I: Java user-defined node information: [MessageSource:MessageKey] Full message with inserts resolved: traceText
        Parameters:
        source - The object generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
      • logWarning

        public static void logWarning(java.lang.Object source,
                                      java.lang.String methodName,
                                      java.lang.String resourceBundleName,
                                      java.lang.String messageKey,
                                      java.lang.String traceText,
                                      java.lang.Object[] inserts)
                               throws MbException
        Writes a error/information/warning message to the event log (Windows) or the SYSLOG facility (other platforms). The message has the following format: BIP4360W: Java user-defined node warning: [MessageSource:MessageKey] Full message with inserts resolved: traceText
        Parameters:
        source - The object generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
      • logUserTrace

        public static void logUserTrace(java.lang.Object source,
                                        java.lang.String methodName,
                                        java.lang.String resourceBundleName,
                                        java.lang.String messageKey,
                                        java.lang.String traceText,
                                        java.lang.String[] inserts)
                                 throws MbException
        Writes a message to the user trace facility.
        Parameters:
        source - The object generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
      • logUserDebugTrace

        public static void logUserDebugTrace(java.lang.Object source,
                                             java.lang.String methodName,
                                             java.lang.String resourceBundleName,
                                             java.lang.String messageKey,
                                             java.lang.String traceText,
                                             java.lang.String[] inserts)
                                      throws MbException
        Writes a message to the user trace facility at the debug level.
        Parameters:
        source - The object generating the log message.
        methodName - The name of the method generating the log message.
        resourceBundleName - The resource bundle name.
        messageKey - The key to the message in the ResourceBundle.
        traceText - The text that is extra to the message indicated by the key.
        inserts - Array of Objects that constitutes the inserts into the ResourceBundle message referenced by the messageKey.
        Throws:
        MbException
IBM Integration BusTM
JavaTM Plugin Node API