Package org.exoplatform.services.jcr.cluster.load

Examples of org.exoplatform.services.jcr.cluster.load.NodeInfo


      {

         String readNodePath = null;
         while (readNodePath == null)
         {
            NodeInfo nodeInfo = nodesPath.get(random.nextInt(nodesPath.size()));
            if (!readFresh && (System.currentTimeMillis() - nodeInfo.getCreated()) < 30000)
            {
               return;
            }

            readNodePath = nodeInfo.getPath();

         }
         long start = System.currentTimeMillis();
         JCRWebdavConnection conn = null;
         try
View Full Code Here


         HTTPResponse response = connection.addNode(putFile, ("__the_data_in_nt+file__").getBytes(), "text/plain");

         if (response.getStatusCode() == HTTPStatus.CREATED)
         {
            resultCollector.addResult(false, System.currentTimeMillis() - start);
            nodesPath.add(new NodeInfo(putFile, System.currentTimeMillis()));
         }
         else
         {
            System.out.println(Thread.currentThread().getName() + " : Can not add (response code "
               + response.getStatusCode() + new String(response.getData()) + " ) file with path : " + putFile);
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.cluster.load.NodeInfo

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.