Package com.sun.jini.reliableLog

Examples of com.sun.jini.reliableLog.ReliableLog


            persistDir = (String)Config.getNonNullEntry(config,
                                                        COMPONENT_NAME,
                                                        "persistenceDirectory",
                                                        String.class);
            /* Recover the state that was persisted on prior runs (if any) */
            log = new ReliableLog(persistDir, new LocalLogHandler());
            inRecovery = true;
            log.recover();
            inRecovery = false;
        }//endif(persistent)

View Full Code Here


     

      logToSnapshotThreshold = Config.getIntEntry(config,
                MERCURY, "logToSnapshotThreshold", 50, 0, Integer.MAX_VALUE);
     
            log = new ReliableLog(persistenceDirectory, new LocalLogHandler());

      if (initLogger.isLoggable(Level.FINEST)) {
                initLogger.log(Level.FINEST, "Recovering persistent state");
      }
            inRecovery = true;
View Full Code Here

    ProxyPreparer.class, recoveredLocatorPreparer);
      persistenceSnapshotWeight = Config.getFloatEntry(
    config, COMPONENT, "persistenceSnapshotWeight",
    persistenceSnapshotWeight, 0F, Float.MAX_VALUE);

      log = new ReliableLog(persistenceDirectory, new LocalLogHandler());
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(Level.CONFIG, "using persistence directory {0}",
         new Object[]{ persistenceDirectory });
      }
      inRecovery = true;
View Full Code Here

        super();
  if (operationsLogger.isLoggable(Level.FINER)) {
            operationsLogger.entering(JoinStateManager.class.getName(),
          "JoinStateManager", logPath);
  }
  this.log = (logPath==null) ? null : new ReliableLog(logPath, this);
  if (operationsLogger.isLoggable(Level.FINER)) {
            operationsLogger.exiting(JoinStateManager.class.getName(),
          "JoinStateManager");
  }
    }
View Full Code Here

        } else {
      throw e;
        }
    }
    ActLogHandler handler = new ActLogHandler();
    ReliableLog log = new ReliableLog(logName, handler);
    log.recover();
    Activation state = handler.getState();
    if (state == null) {
        log.snapshot();
        state = handler.getState();
    }
    state.init(log, login, config, configOptions, starter);
    if (starter == null) {
        // prevent exit
View Full Code Here

     

      logToSnapshotThreshold = Config.getIntEntry(config,
                MERCURY, "logToSnapshotThreshold", 50, 0, Integer.MAX_VALUE);
     
            log = new ReliableLog(persistenceDirectory, new LocalLogHandler());

      if (initLogger.isLoggable(Level.FINEST)) {
                initLogger.log(Level.FINEST, "Recovering persistent state");
      }
            inRecovery = true;
View Full Code Here

    ProxyPreparer.class, recoveredLocatorPreparer);
      persistenceSnapshotWeight = Config.getFloatEntry(
    config, COMPONENT, "persistenceSnapshotWeight",
    persistenceSnapshotWeight, 0F, Float.MAX_VALUE);

      log = new ReliableLog(persistenceDirectory, new LocalLogHandler());
      if (logger.isLoggable(Level.CONFIG)) {
    logger.log(Level.CONFIG, "using persistence directory {0}",
         new Object[]{ persistenceDirectory });
      }
      inRecovery = true;
View Full Code Here

     

      logToSnapshotThreshold = Config.getIntEntry(config,
                MERCURY, "logToSnapshotThreshold", 50, 0, Integer.MAX_VALUE);
     
            log = new ReliableLog(persistenceDirectory, new LocalLogHandler());

      if (initLogger.isLoggable(Level.FINEST)) {
                initLogger.log(Level.FINEST, "Recovering persistent state");
      }
            inRecovery = true;
View Full Code Here

        super();
  if (operationsLogger.isLoggable(Level.FINER)) {
            operationsLogger.entering(JoinStateManager.class.getName(),
          "JoinStateManager", logPath);
  }
  this.log = (logPath==null) ? null : new ReliableLog(logPath, this);
  if (operationsLogger.isLoggable(Level.FINER)) {
            operationsLogger.exiting(JoinStateManager.class.getName(),
          "JoinStateManager");
  }
    }
View Full Code Here

  if (logDir == null) {
      storeLocation = null;
  } else {
      storeLocation = new File(logDir);
      try {
    log = new ReliableLog(
        storeLocation.getCanonicalPath(), logHandler);
      } catch (IOException e) {
    throw new CorruptedStoreException(
        "Failure creating reliable log", e);
      }
View Full Code Here

TOP

Related Classes of com.sun.jini.reliableLog.ReliableLog

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.