Codota Logo
ExtensionsResource
Code IndexAdd Codota to your IDE (free)

How to use
ExtensionsResource
in
com.woorea.openstack.nova.api

Best Java code snippets using com.woorea.openstack.nova.api.ExtensionsResource (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: com.att.cdp/cdp-pal-openstack

/**
 * @return List of extensions
 * @throws ZoneException
 *             If the context cannot be used to obtain the list of extensions
 * @see com.att.cdp.zones.NetworkService#getNetworks()
 */
@SuppressWarnings("nls")
public List<Extension> getNetworkExtensions() throws ZoneException {
  connect();
  trackRequest();
  RequestState.put(RequestState.SERVICE, "Network");
  RequestState.put(RequestState.SERVICE_URL, quantumConnector.getEndpoint());
  ArrayList<Extension> list = new ArrayList<>();
  try {
    Quantum client = quantumConnector.getClient();
    ExtensionsResource res = new ExtensionsResource(client);
    for (com.woorea.openstack.nova.model.Extension ext : res.list(false).execute()) {
      list.add(ext);
    }
  } catch (OpenStackBaseException e) {
    ExceptionMapper.mapException(e);
  }
  return list;
}
origin: woorea/openstack-java-sdk

public Nova(String endpoint, OpenStackClientConnector connector) {
  super(endpoint, connector);
  EXTENSIONS = new ExtensionsResource(this);
  SERVERS = new ServersResource(this);
  IMAGES = new ImagesResource(this);
  FLAVORS = new FlavorsResource(this);
  KEY_PAIRS = new KeyPairsExtension(this);
  FLOATING_IPS = new FloatingIpsExtension(this);
  SECURITY_GROUPS = new SecurityGroupsExtension(this);
  SNAPSHOTS = new SnapshotsExtension(this);
  VOLUMES = new VolumesExtension(this);
  AGGREGATES = new AggregatesExtension(this);
  QUOTA_SETS = new QuotaSetsResource(this);
  HOSTS = new HostsExtension(this);
  SERVICES = new ServicesResource(this);
  HYPERVISORS = new HypervisorsResource(this);
}

origin: com.att.cdp/cdp-pal-openstack

/**
 * Returns the set of extensions loaded, if any
 *
 * @return The list of extensions installed, if any
 * @throws ZoneException
 *             If anything fails
 */
public List<String> getExtensions() throws ZoneException {
  connect();
  trackRequest();
  RequestState.put(RequestState.SERVICE, "Compute");
  RequestState.put(RequestState.SERVICE_URL, nova.getEndpoint());
  ArrayList<String> extensions = new ArrayList<>();
  try {
    for (Extension extension : nova.getClient().extensions().list(true).execute()) {
      extensions.add(extension.getName());
    }
  } catch (OpenStackBaseException ex) {
    if (ex instanceof OpenStackResponseException) {
      OpenStackResponseException osre = (OpenStackResponseException) ex;
      if (osre.getStatus() != 404) {
        ExceptionMapper.mapException(ex);
      }
    } else {
      ExceptionMapper.mapException(ex);
    }
  }
  return extensions;
}
origin: com.att.woorea/nova-client

public Nova(String endpoint, OpenStackClientConnector connector) {
  super(endpoint, connector);
  EXTENSIONS = new ExtensionsResource(this);
  SERVERS = new ServersResource(this);
  IMAGES = new ImagesResource(this);
  FLAVORS = new FlavorsResource(this);
  KEY_PAIRS = new KeyPairsExtension(this);
  FLOATING_IPS = new FloatingIpsExtension(this);
  SECURITY_GROUPS = new SecurityGroupsExtension(this);
  SNAPSHOTS = new SnapshotsExtension(this);
  VOLUMES = new VolumesExtension(this);
  AGGREGATES = new AggregatesExtension(this);
  QUOTA_SETS = new QuotaSetsResource(this);
  HOSTS = new HostsExtension(this);
  SERVICES = new ServicesResource(this);
  HYPERVISORS = new HypervisorsResource(this);
  NETWORKS = new NetworksExtension(this);
}

origin: com.att.cdp/cdp-pal-openstack

for (Extension extension : nova.getClient().extensions().list(true)
    .execute()) {
  extensions.add(extension.getName());
com.woorea.openstack.nova.apiExtensionsResource

Most used methods

  • <init>
  • list

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now