Package org.openstack.client.storage

Examples of org.openstack.client.storage.OpenstackStorageClient


    this.containerName = containerName;
  }

  @Override
  public CasStoreObject findArtifact(Md5Hash hash) {
    OpenstackStorageClient storageClient = getStorageClient();

    try {
      List<StorageObject> storageObjects = Lists.newArrayList(storageClient
          .listObjects(containerName, null, null));

      String findHash = hash.toHex();
      for (StorageObject storageObject : storageObjects) {
        String storageObjectHash = storageObject.getHash();
View Full Code Here


    return null;
  }

  private OpenstackStorageClient getStorageClient() {
    OpenstackStorageClient storageClient = getSession().getStorageClient();
    return storageClient;
  }
View Full Code Here

      String objectPath) throws OpsException {

    RemoteCurlOpenstackSession session = new RemoteCurlOpenstackSession(target);
    session.authenticate(credentials, false);

    OpenstackStorageClient storageClient = session.getStorageClient();

    RequestBuilder request = storageClient.root().containers().id(containerName).objects().id(objectPath)
        .buildDownloadRequest();

    CurlRequest curlRequest = session.toCurlRequest(request);
    curlRequest.bareRequest = true;
View Full Code Here

TOP

Related Classes of org.openstack.client.storage.OpenstackStorageClient

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.