Examples of INode


Examples of com.caucho.db.blob.Inode

  public void writeData()
    throws SQLException
  {
    if (_deleteInodes != null) {
      while (_deleteInodes.size() > 0) {
        Inode inode = _deleteInodes.remove(0);

        // XXX: should be allocating based on auto-commit
        inode.remove();
      }
    }

    ArrayList<Block> updateBlocks = _updateBlocks;
    _updateBlocks = null;
View Full Code Here

Examples of com.caucho.db.blob.Inode

  {
    if (! isNull(block, rowOffset)) {
      long length = Inode.readLong(block, rowOffset + _columnOffset);

      if (Table.INLINE_BLOB_SIZE <= length) {
        Inode inode = new Inode();
        inode.init(getTable(), xa, block, rowOffset + _columnOffset);
        xa.addDeleteInode(inode);
      }
    }
   
    if (str == null) {
View Full Code Here

Examples of com.caucho.db.blob.Inode

  {
    if (! isNull(block, rowOffset)) {
      long length = Inode.readLong(block, rowOffset + _columnOffset);

      if (Table.INLINE_BLOB_SIZE <= length) {
        Inode inode = new Inode();
        inode.init(getTable(), xa, block, rowOffset + _columnOffset);
        xa.addDeleteInode(inode);
      }
    }

    if (value == null) {
View Full Code Here

Examples of com.caucho.db.blob.Inode

      long length = Inode.readLong(block, rowOffset + _columnOffset);

      if (length < Table.INLINE_BLOB_SIZE)
        return;
     
      Inode inode = new Inode();
      inode.init(getTable(), xa, block, rowOffset + _columnOffset);
      xa.addDeleteInode(inode);
    }
  }
View Full Code Here

Examples of com.dotmarketing.beans.Inode

  }

  @SuppressWarnings("unchecked")
  public List<Category> getChildrenCategories(String inode) {
    try {
      Inode inodeObj = new Inode();
      inodeObj.setInode(inode);
      List<Category> categories = InodeFactory.getChildrenClass(inodeObj, Category.class);
      return perAPI.filterCollection(categories, PermissionAPI.PERMISSION_READ, true, user);
    } catch (Exception e) {
      Logger.error(this, "An unknown error happening while trying to retrieve categories : ", e);
      return null;
View Full Code Here

Examples of com.whatevernot.flatlang.INode

    super(node.getName() == null ? node.getValue() : node.getName());
   
    // If the name is null, we have to look for the child 'class=value' line.
    if(node.getName() == null)
    {
      INode classChild = node.getChildByName(CLASS);
     
      if(classChild == null)
      {
        Log.error(this, "<ctor>", "No class name defined");
       
        className_ = null;
      }
      else
      {
        className_ = classChild.getValue();
      }
    }
    else
    {
      className_ = node.getValue()
View Full Code Here

Examples of edu.vt.rt.hyflow.benchmark.rmi.list.INode

      dmy.setNext(null);
   
  }
 
  public void enqueue(Integer item) {
    INode tail = null, last=null;
    Address tailServer = null, lastServer=null;
    String lastId = null;
    try{
      tailServer = (Address) Network.getAddress(Benchmark.getServerId(TAIL));
      tail = (INode)LocateRegistry.getRegistry(tailServer.inetAddress.getHostAddress(), tailServer.port).lookup(TAIL);
      Network.linkDelay(true, tailServer);
      tail.lock();
      Network.linkDelay(true, tailServer);
      lastId = tail.getNext();    //Got Id for last node in queue
     
      lastServer = (Address) Network.getAddress(Benchmark.getServerId(lastId));
      last = (INode)LocateRegistry.getRegistry(lastServer.inetAddress.getHostAddress(), lastServer.port).lookup(lastId);
      Network.linkDelay(true, lastServer);
      last.lock();
      Network.linkDelay(true, lastServer);
     
      String newNodeId =  Network.getInstance().getID() + "-" + Math.random()// generate random id
      Node newNode = new Node(newNodeId, item);
      newNode.setNext(null);
     
      tail.setNext(newNodeId);
      Network.linkDelay(true, tailServer);
     
      last.setNext(newNodeId);
      Network.linkDelay(true, lastServer);
     
      Logger.debug("list.add("+item+");");
    } catch (AccessException e) {
      e.printStackTrace();
    } catch (RemoteException e) {
      e.printStackTrace();
    } catch (NotBoundException e) {
      e.printStackTrace();
    } catch (InterruptedException e) {
      e.printStackTrace();
    }finally {
      try {
        Benchmark.processingDelay();
      } catch (InterruptedException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
      }
      if(last!=null){
        Network.linkDelay(true, lastServer);
        try {
          last.unlock();
        } catch (RemoteException e) {
          e.printStackTrace();
        }
      }
      if(tail!=null ){
        Network.linkDelay(true, tailServer);
        try {
          tail.unlock();
        } catch (RemoteException e) {
          e.printStackTrace();
        }
      }
    }
View Full Code Here

Examples of helma.objectmodel.INode

        } else {
            convertedNodes.addElement(node);
            writeTagOpen(node, elementName, propName);

            INode parent = node.getParent();

            if (parent != null) {
                writeReferenceTag(parent, "hop:parent", null);
            }
View Full Code Here

Examples of helma.objectmodel.INode

        }

        Enumeration e = node.getSubnodes();

        while (e.hasMoreElements()) {
            INode nextNode = (INode) e.nextElement();

            write(nextNode, "hop:child", null, level);
        }
    }
View Full Code Here

Examples of helma.objectmodel.INode

        if (idref != null) {
            // a reference to a node that should have been parsed
            // and lying in our cache of parsed nodes.
            String prototyperef = atts.getValue("prototyperef");
            String key = idref + "-" + prototyperef;
            INode n = (INode) convertedNodes.get(key);

            // if not a reference to a node we already read, try to
            // resolve against the NodeManager.
            if (n == null) {
                n = nmgr.getNode(idref, nmgr.getDbMapping(prototyperef));
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.