Examples of root()


Examples of org.openstack.client.common.OpenstackImageClient.root()

    String tokenId;

    try {
      Access access = client.getSession().getAuthenticationToken();
      tokenId = access.getToken().getId();
      glanceBaseUrl = client.root().getBaseUrl();
    } catch (OpenstackException e) {
      throw new OpsException("Error getting glance url", e);
    }

    // Upload to glance
View Full Code Here

Examples of org.openstack.client.common.OpenstackImageClient.root()

    try {
      Map<String, Object> tagMap = Maps.newHashMap();
      for (Tag tag : tags.getTags()) {
        tagMap.put(tag.getKey(), tag.getValue());
      }
      glanceClient.root().images().image(imageId).updateMetadata(tagMap, replace);
    } catch (OpenstackException e) {
      throw new OpsException("Error updating image tags", e);
    }
  }
View Full Code Here

Examples of org.openstack.client.common.OpenstackImageClient.root()

    OpenstackImageClient glanceClient = getOpenstackImageClient();

    Iterable<Image> images;
    try {
      images = glanceClient.root().images().list(true);
    } catch (OpenstackException e) {
      throw new OpsException("Error listing images", e);
    }

    for (Image image : images) {
View Full Code Here

Examples of org.openstack.client.storage.OpenstackStorageClient.root()

    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

Examples of org.sonar.api.technicaldebt.batch.internal.DefaultCharacteristic.root()

    assertThat(resultRootCharacteristic.key()).isEqualTo("MEMORY_EFFICIENCY");
    assertThat(resultRootCharacteristic.name()).isEqualTo("Memory use");
    assertThat(resultRootCharacteristic.order()).isEqualTo(1);
    assertThat(resultRootCharacteristic.children()).hasSize(1);
    assertThat(resultRootCharacteristic.parent()).isNull();
    assertThat(resultRootCharacteristic.root()).isNull();
  }

  @Test
  public void get_characteristic_by_key() throws Exception {
    assertThat(sqaleModel.characteristicByKey("MEMORY_EFFICIENCY")).isNotNull();
View Full Code Here

Examples of org.zeroexchange.web.annotations.Bookmarkable.root()

     * {@inheritDoc}
     */
    @Override
    public boolean isRootPage(Class pageClass) {
        Bookmarkable bookmarkableMarker = (Bookmarkable) pageClass.getAnnotation(Bookmarkable.class);
        return bookmarkableMarker != null && bookmarkableMarker.root();
    }
}
View Full Code Here

Examples of xtc.util.SymbolTable.root()

     
    if (runtime.test("printSymbolTable")) {
      if (null != table){
        Visitor visitor = runtime.console().visitor();
        try {
          table.root().dump(runtime.console());
        } finally {
          runtime.console().register(visitor);
        }
        runtime.console().flush();
      } else {
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.