Package org.servalproject.servaldna.rhizome

Examples of org.servalproject.servaldna.rhizome.RhizomeBundleList


  }

  static void rhizome_list() throws ServalDInterfaceException, IOException, InterruptedException
  {
    ServalDClient client = new ServerControl().getRestfulClient();
    RhizomeBundleList list = null;
    try {
      list = client.rhizomeListBundles();
      RhizomeListBundle bundle;
      while ((bundle = list.nextBundle()) != null) {
        System.out.println(
            "_token=" + bundle.token +
            ", _rowId=" + bundle.rowId +
            ", _insertTime=" + bundle.insertTime +
            ", _author=" + bundle.author +
            ", _fromHere=" + bundle.fromHere +
            ", " + manifestFields(bundle.manifest, ", ")
          );
      }
    }
    finally {
      if (list != null)
        list.close();
    }
    System.exit(0);
  }
View Full Code Here


  static void rhizome_list_newsince(String token) throws ServalDInterfaceException, IOException, InterruptedException
  {
    System.err.println("token=" + token);
    ServalDClient client = new ServerControl().getRestfulClient();
    RhizomeBundleList list = null;
    try {
      list = client.rhizomeListBundlesSince(token);
      RhizomeListBundle bundle;
      while ((bundle = list.nextBundle()) != null) {
        System.out.println(
            "_token=" + bundle.token +
            ", _rowId=" + bundle.rowId +
            ", _insertTime=" + bundle.insertTime +
            ", _author=" + bundle.author +
            ", _fromHere=" + bundle.fromHere +
            ", " + manifestFields(bundle.manifest, ", ")
          );
      }
    }
    finally {
      if (list != null)
        list.close();
    }
    System.exit(0);
  }
View Full Code Here

    this.restfulPassword = restfulPassword;
  }

  public RhizomeBundleList rhizomeListBundles() throws ServalDInterfaceException, IOException
  {
    RhizomeBundleList list = new RhizomeBundleList(this);
    list.connect();
    return list;
  }
View Full Code Here

    return list;
  }

  public RhizomeBundleList rhizomeListBundlesSince(String token) throws ServalDInterfaceException, IOException
  {
    RhizomeBundleList list = new RhizomeBundleList(this, token);
    list.connect();
    return list;
  }
View Full Code Here

TOP

Related Classes of org.servalproject.servaldna.rhizome.RhizomeBundleList

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.