Examples of log()


Examples of org.chaidb.db.log.logrecord.BTreeReplLogRecord.log()

                byte[] oldNode = ByteTool.copyByteArray(page.getPage(), nodeOffset, BTreeSpec.NODE_HEADER_SIZE + keySize);
                byte[] emptyNode = new byte[BTreeSpec.NODE_HEADER_SIZE + keySize];
                if ((ByteTool.compare(oldNode, 0, emptyNode, 0, BTreeSpec.NODE_HEADER_SIZE + keySize) != 0) && oldNode != newNode) {
                    BTreeReplLogRecord lr = new BTreeReplLogRecord(page.getPageNumber().getTreeId(), pgno, txnId, nodeOffset, oldNode, newNode, page.btreeSpec.btree.getType());

                    lr.log();
                }
            }
            /*************************************************************/
            System.arraycopy(this.getHeader(), 0, page.getPage(), nodeOffset, BTreeSpec.NODE_HEADER_SIZE);
            System.arraycopy(key, 0, page.getPage(), nodeOffset + BTreeSpec.NODE_HEADER_SIZE, keySize);
View Full Code Here

Examples of org.chaidb.db.log.logrecord.BTreeSpecLogRecord.log()

                oldPage = new PageNumber(BTreeSpec.INVALID_PAGENO);
            }

            if (oldPage.getPageNumber() != newPage.getPageNumber()) {
                BTreeSpecLogRecord logRec = new BTreeSpecLogRecord(treeid, oldPage.getPageNumber(), newPage.getPageNumber(), BTreeSpecLogRecord.LATEST_DATA_PAGE_NUMBER_FLAG, uid, docid, ob.btree.getType());
                logRec.log();
            }

            if (Debug.DEBUG_RESOURCE_CONTROL_BLOCK) {
                logger.fatal(Integer.toHexString(uid) + " New LDP" + newPage.toHexString());
            }
View Full Code Here

Examples of org.chaidb.db.log.logrecord.FilesDeleteLogRecord.log()

        if (deleteFilesNumber <= 0) {
            return;
        }

        FilesDeleteLogRecord logRec = new FilesDeleteLogRecord(deleteFiles, txnId);
        logRec.log();

        for (int i = 0; i < deleteFilesNumber; i++) {
            String filePath = (String) deleteFiles.get(i);
            File deleteFile = new File(filePath);
            if (deleteFile.isFile()) {
View Full Code Here

Examples of org.eclipse.core.runtime.ILog.log()


  public static void info(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.INFO, plugin.getPluginId(),0,message,null);
    log.log(status);
  }

  public static void warn(String message){
    warning(message);
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.core.identity.Activator.log()

  }

  protected void logWarning(Throwable exception) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.WARNING, Activator.PLUGIN_ID,
          IStatus.WARNING, "Warning: code cannot be run", exception)); //$NON-NLS-1$
  }

  public void run() throws Exception {
    try {
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.filetransfer.Activator.log()

  }

  private void logError(String message, IOException e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, message, e));
  }

  /**
   * Wraps the underlying stream's method.
   *
 
View Full Code Here

Examples of org.eclipse.ecf.internal.remoteservice.Activator.log()

  }

  protected void logException(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, string, e));
  }

  protected ID getRemoteCallTargetID() {
    // First synchronize on connect lock
    synchronized (connectLock) {
View Full Code Here

Examples of org.eclipse.ecf.internal.remoteservice.rest.Activator.log()

  }

  protected void logException(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, string, e));
  }

  protected void logWarning(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
View Full Code Here

Examples of org.eclipse.ecf.internal.remoteservice.rpc.Activator.log()

  }

  protected void logException(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
      a.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, string, e));
  }

  protected void logWarning(String string, Throwable e) {
    Activator a = Activator.getDefault();
    if (a != null)
View Full Code Here

Examples of org.eclipse.emf.common.util.Logger.log()

         
      status = new Status(severity, PLUGIN_ID, 0, m, e); //$NON-NLS-1$
    }   
    Logger logger = INSTANCE.getPluginLogger();
    if (logger != null) {
      logger.log(status);
    } else if (Platform.isRunning()) {
      RuntimeLog.log(status);
    } else {
     
      String msg = java.text.MessageFormat.format(
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.