Package org.exoplatform.services.jcr.cluster

Examples of org.exoplatform.services.jcr.cluster.JCRWebdavConnection.addNode()


   public void testRemoveProperty() throws Exception
   {
      JCRWebdavConnection conn = getConnection();
     
      // prepare
      conn.addNode(nodeName, "nt:untstructured", "".getBytes());
      conn.setProperty(nodeName, "D:testProp", "the_value");
     
      //check
      for (JCRWebdavConnection connection : getConnections())
      {
View Full Code Here


   public void testSetProperty() throws Exception
   {
      JCRWebdavConnection conn = getConnection();

      // prepare
      conn.addNode(nodeName, "nt:untstructured", "".getBytes());
      conn.addProperty(nodeName, "D:testProp");

      // check
      for (JCRWebdavConnection connection : getConnections())
      {
View Full Code Here

   public void testAddNode() throws Exception
   {
      JCRWebdavConnection conn = getConnection();
     
      // add node
      conn.addNode(nodeName, "_data_".getBytes());

      // check is node exist
      for (JCRWebdavConnection connection : getConnections())
      {
         HTTPResponse response = connection.getNode(nodeName);
View Full Code Here

      JCRWebdavConnection conn = getConnection();
     
      String newNodeName = nodeName + "new";

      // add node
      conn.addNode(nodeName, "".getBytes());

      // check is node exist
      for (JCRWebdavConnection connection : getConnections())
      {
         HTTPResponse response = connection.getNode(nodeName);
View Full Code Here

      {
         connection = getNewConnection();
         String putFile = testRoot + "/" + UUID.randomUUID().toString();

         long start = System.currentTimeMillis();
         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()));
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.