Package com.sun.messaging.jmq.util

Examples of com.sun.messaging.jmq.util.DebugPrinter


  }
    }


    public static void printDebugHash(Hashtable hash)  {
  DebugPrinter dbp;

  dbp = new DebugPrinter(hash, 4);
  dbp.println();   
  dbp.close();
    }
View Full Code Here


            if ( isLoggingConfigSet ) {
                return;
            }

            DebugPrinter dbp = new DebugPrinter(2);
            String filename = (String) props.get("file");
            dbp.setFile(filename);

            String vstr = (String) props.get("verbose");
            boolean verbose = Boolean.valueOf(vstr).booleanValue();

            Hashtable debugState = connection.getDebugState(verbose);
            debugState.put("DebugCmd", props);

            dbp.setHashtable(debugState);
            dbp.println();

            dbp.close();
        } catch (Throwable e) {

            ExceptionHandler.logCaughtException(e);

            e.printStackTrace();
View Full Code Here

                msg = "Unknown kill argument " + cmdarg;           
            }
        }

  if (fileStr != null && debugHash != null)  {
      DebugPrinter dbp = new DebugPrinter(2);
      dbp.setHashtable(debugHash);
      dbp.setFile(fileStr);
      dbp.println();
      dbp.close();
            if (status == Status.OK)
                msg = "Data logged at file " + fileStr;
            if (logOnly) {
                debugHash = new Hashtable();
                debugHash.put("logfile", fileStr);
View Full Code Here

    public void printDebugState() {

        try {

            DebugPrinter dbp = new DebugPrinter(2);

            Hashtable debugState = getDebugState(false);

            dbp.setHashtable(debugState);

            dbp.println();

            dbp.close();

        } catch (Throwable e) {
            e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.util.DebugPrinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.