Package com.sun.sgs.impl.sharedutil

Examples of com.sun.sgs.impl.sharedutil.LoggerWrapper


        serviceBinding ? "setServiceBinding" : "setBinding",
        contextTxnId(context), name, typeName(object),
        objectId(context, object));
      }
  } catch (RuntimeException e) {
      LoggerWrapper exceptionLogger = getExceptionLogger(e);
      if (exceptionLogger.isLoggable(Level.FINEST)) {
    exceptionLogger.logThrow(
        Level.FINEST, e,
        "{0} tid:{1,number,#}, name:{2}, type:{3}," +
        " oid:{4,number,#} throws",
        serviceBinding ? "setServiceBinding" : "setBinding",
        contextTxnId(context), name, typeName(object),
View Full Code Here


        Level.FINEST, "{0} tid:{1,number,#}, name:{2} returns",
        serviceBinding ? "removeServiceBinding" : "removeBinding",
        contextTxnId(context), name);
      }
  } catch (RuntimeException e) {
      LoggerWrapper exceptionLogger = getExceptionLogger(e);
      if (exceptionLogger.isLoggable(Level.FINEST)) {
    exceptionLogger.logThrow(
        Level.FINEST, e, "{0} tid:{1,number,#}, name:{2} throws",
        serviceBinding ? "removeServiceBinding" : "removeBinding",
        contextTxnId(context), name);
      }
      throw e;
View Full Code Here

        serviceBinding ? "nextServiceBoundName" : "nextBoundName",
        contextTxnId(context), name, result);
      }
      return result;
  } catch (RuntimeException e) {
      LoggerWrapper exceptionLogger = getExceptionLogger(e);
      if (exceptionLogger.isLoggable(Level.FINEST)) {
    exceptionLogger.logThrow(
        Level.FINEST, e, "{0} tid:{1,number,#}, name:{2} throws",
        serviceBinding ? "nextServiceBoundName" : "nextBoundName",
        contextTxnId(context), name);
      }
      throw e;
View Full Code Here

    public DataStoreImpl(Properties properties,
       ComponentRegistry systemRegistry,
       TransactionProxy txnProxy)
    {
  super(systemRegistry,
        new LoggerWrapper(Logger.getLogger(CLASSNAME)),
        new LoggerWrapper(Logger.getLogger(CLASSNAME + ".abort")));
        logger.log(Level.CONFIG, "Creating DataStoreImpl");

  PropertiesWrapper wrappedProps = new PropertiesWrapper(properties);
  String specifiedDirectory =
      wrappedProps.getProperty(DIRECTORY_PROPERTY);
View Full Code Here

              ComponentRegistry systemRegistry,
              TransactionProxy txnProxy)
  throws IOException
    {
  super(properties, systemRegistry, txnProxy,
        new LoggerWrapper(Logger.getLogger(CLASSNAME)));
  PropertiesWrapper wrappedProps = new PropertiesWrapper(properties);
  String dbEnvClass = wrappedProps.getProperty(
      ENVIRONMENT_CLASS_PROPERTY, DEFAULT_ENVIRONMENT_CLASS);
  debug = wrappedProps.getBooleanProperty(DEBUG_OUTPUT_PROPERTY, false);
  String directory = wrappedProps.getProperty(DIRECTORY_PROPERTY);
View Full Code Here

         ComponentRegistry systemRegistry,
         TransactionProxy txnProxy)
  throws IOException, NotBoundException
    {
  super(systemRegistry, txnProxy,
        new LoggerWrapper(Logger.getLogger(CLASSNAME)),
        new LoggerWrapper(Logger.getLogger(CLASSNAME + ".abort")));
  logger.log(Level.CONFIG, "Creating DataStoreClient properties:{0}",
       properties);
  PropertiesWrapper wrappedProps = new PropertiesWrapper(properties);
        NodeType nodeType =
                wrappedProps.getEnumProperty(StandardProperties.NODE_TYPE,
View Full Code Here

                                  ComponentRegistry systemRegistry,
                                  TransactionProxy txnProxy)
        throws Exception
    {
        super(properties, systemRegistry, txnProxy,
              new LoggerWrapper(Logger.getLogger(PKG_NAME)));
        logger.log(Level.CONFIG, "Creating NodeMappingServiceImpl");
       
        PropertiesWrapper wrappedProps = new PropertiesWrapper(properties);
       
  try {
View Full Code Here

    {
  boolean abort = (e instanceof TransactionAbortedException);
  if (abort && txn != null && !txn.isAborted()) {
      txn.abort(e);
  }
  LoggerWrapper thisLogger = abort ? abortLogger : logger;
  thisLogger.logThrow(level, e, "{0} throws", operation);
  if (e instanceof Error) {
      throw (Error) e;
  } else if (e instanceof RuntimeException) {
      throw (RuntimeException) e;
  } else {
View Full Code Here

    public DataStoreImpl(Properties properties,
       ComponentRegistry systemRegistry,
       TransactionProxy txnProxy)
    {
  super(systemRegistry, txnProxy,
        new LoggerWrapper(Logger.getLogger(CLASSNAME)),
        new LoggerWrapper(Logger.getLogger(CLASSNAME + ".abort")));
        logger.log(Level.CONFIG, "Creating DataStoreImpl");

  PropertiesWrapper wrappedProps = new PropertiesWrapper(properties);
  String specifiedDirectory =
      wrappedProps.getProperty(DIRECTORY_PROPERTY);
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.sharedutil.LoggerWrapper

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.