Examples of log()


Examples of com.sleepycat.je.tree.BIN.log()

                System.out.println("IN " + i + " = " + in.getNodeId());
            }

            /* Add other types of INs. */
            BIN bin = new BIN(DbInternal.dbGetDatabaseImpl(db), key, 2, 1);
            lsn = bin.log(logManager);
            checkList.add(new CheckInfo(lsn, bin));

            /* Add provisional entries, which should get ignored. */
            lsn = bin.logProvisional(logManager, in);

View Full Code Here

Examples of com.sleepycat.je.tree.DBIN.log()

  DIN din = (DIN) bin.getTarget(idx);
  assertNotNull(din);
  idx = din.findEntry("yrhwlvlgvq".getBytes(), false, true);
  DBIN dbin = (DBIN) din.getTarget(idx);
  Key.DUMP_BINARY = false;
  dbin.log(envImpl.getLogManager());
  din.log(envImpl.getLogManager());
  bin.releaseLatch();
  env.compress();
  bin.log(envImpl.getLogManager());
    }
View Full Code Here

Examples of com.sleepycat.je.tree.DIN.log()

  assertNotNull(din);
  idx = din.findEntry("yrhwlvlgvq".getBytes(), false, true);
  DBIN dbin = (DBIN) din.getTarget(idx);
  Key.DUMP_BINARY = false;
  dbin.log(envImpl.getLogManager());
  din.log(envImpl.getLogManager());
  bin.releaseLatch();
  env.compress();
  bin.log(envImpl.getLogManager());
    }
}
View Full Code Here

Examples of com.sleepycat.je.tree.DupCountLN.log()

            dcl = (DupCountLN) dupCountRef.fetchTarget(database, dupRoot);
            dcl.decDupCount();
      assert dcl.getDupCount() >= 0;
            EnvironmentImpl envImpl = database.getDbEnvironment();
            long dupCountLsn =
                dcl.log(envImpl, database.getId(), dupKey, oldDclLsn, locker);
            dupRoot.updateDupCountLNRef(dupCountLsn);
            dupRoot.releaseLatch();

            locker.addDeleteInfo(dupBin, new Key(lnKey));
        } else {
View Full Code Here

Examples of com.sleepycat.je.tree.IN.log()

                        boolean logProvisional =
                            coordinateWithCheckpoint(rootIN, null /*parent*/);

                        /* Flush if dirty. */
                        if (isDirty) {
                            long newLsn = rootIN.log
                                (useEnvImpl.getLogManager(),
                                 false, // allowDeltas
                                 false, // allowCompress
                                 logProvisional,
                                 backgroundIO,
View Full Code Here

Examples of com.sleepycat.je.tree.LN.log()

             * Do not pass a locker, because there is no need to lock the new
             * LSN, as done for user operations.  Another locker cannot attempt
             * to lock the new LSN until we're done, because we release the
             * lock before we release the BIN latch.
             */
            long newLNLsn = ln.log(env, db, bin.getKey(index), lsn,
                                   backgroundIO,
                                   getMigrationRepContext(ln));
            bin.updateEntry(index, newLNLsn);
            nLNsMigrated.increment();
            /* Lock new LSN on behalf of existing lockers. */
 
View Full Code Here

Examples of com.sleepycat.je.tree.MapLN.log()

            /* Add a MapLN. */
            MapLN mapLN = new MapLN(DbInternal.dbGetDatabaseImpl(db));
            userTxn.lock
                (mapLN.getNodeId(), LockType.WRITE,
                 DbInternal.dbGetDatabaseImpl(db));
            lsn = mapLN.log(envImpl,
                            DbInternal.dbGetDatabaseImpl(db).getId(),
                            key, DbLsn.NULL_LSN, userTxn);
            if (!trackLNs) {
                checkList.add(new CheckInfo(lsn, mapLN, key,
                                            mapLN.getData(),
View Full Code Here

Examples of com.sun.appserv.server.LifecycleEventContext.log()

     @throws ServerLifecycleException
     */
    public void handleEvent(LifecycleEvent event)
        throws ServerLifecycleException {       
        LifecycleEventContext ctx = event.getLifecycleEventContext();
        ctx.log("got event" + event.getEventType() + " event data: " +
            event.getData());
        switch (event.getEventType()) {
        case LifecycleEvent.INIT_EVENT:
            onInitialization(ctx);
            break;
View Full Code Here

Examples of com.sun.messaging.jmq.util.log.Logger.log()

  try  {
      count = Integer.parseInt(countStr);
  } catch(Exception e)  {
            Logger logger = getLogger();
            logger.log(Logger.WARNING, "Invalid value for property "
      + countPropName
      + ": "
      + countStr);
      return (getDefaultBrokerAdminDefinedRoles());
  }
View Full Code Here

Examples of com.twitter.zipkin.gen.ZipkinCollector.Client.Log()

            LOGGER.debug("Exception when trying to log Span.  Will retry: ", e.getMessage());
            final Client newClient = clientProvider.exception(e);
            if (newClient != null) {
                LOGGER.debug("Got new client with new connection. Logging with new client.");
                try {
                    newClient.Log(logEntries);
                    return true;
                } catch (final TException e2) {
                    LOGGER.warn("Logging spans failed. " + logEntries.size() + " spans are lost!", e2);
                }
            } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.