Package org.jclouds.openstack.v2_0

Examples of org.jclouds.openstack.v2_0.ServiceType


   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public NotificationChain basicSetService(ServiceType newService, NotificationChain msgs) {
    ServiceType oldService = service;
    service = newService;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs10Package.WCS_CAPABILITIES_TYPE__SERVICE, oldService, newService);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


  public JAXBElement createServiceDeploymentPlan(IFile dpFile) throws Exception {
    Trace.tracePoint("Entry","V11DeploymentPlanCreationOperation.createServiceDeploymentPlan", dpFile);

    org.apache.geronimo.xml.ns.deployment_1.ObjectFactory artifactFactory = new org.apache.geronimo.xml.ns.deployment_1.ObjectFactory();
    ServiceType service = artifactFactory.createServiceType();

       
    JAXBElement jaxbElement = artifactFactory.createService(service);
    JAXBUtils.marshalDeploymentPlan(jaxbElement, dpFile);
View Full Code Here

      return properties;
   }

   @Override
   protected Iterable<Module> setupModules() {
      return ImmutableSet.<Module> of(getLoggingModule(), new InternalUrlModule());
   }
View Full Code Here

      return properties;
   }

   @Override
   protected Iterable<Module> setupModules() {
      return ImmutableSet.<Module> of(getLoggingModule(), new InternalUrlModule());
   }
View Full Code Here

    * namespaces were different, for whatever reason. One way to address this is to have a multimap
    * of the authoritative namespace to alternate onces, which could be wired up with guice
    *
    */
   public void testPresentWhenAliasForExtensionMapsToNamespace() throws SecurityException, NoSuchMethodException {
      Extension keypairsWithDifferentNamespace = keypairs.toBuilder().namespace(
               URI.create("http://docs.openstack.org/ext/arbitrarilydifferent/keypairs/api/v1.1")).build();

      Multimap<URI, URI> aliases = ImmutableMultimap.of(keypairs.getNamespace(), keypairsWithDifferentNamespace
               .getNamespace());

      assertEquals(whenExtensionsAndAliasesInZoneInclude("zone", ImmutableSet.of(keypairsWithDifferentNamespace), aliases).apply(
              getKeyPairExtension(ImmutableList.<Object> of("zone"))), Optional.of("foo"));
      assertEquals(whenExtensionsAndAliasesInZoneInclude("zone", ImmutableSet.of(keypairsWithDifferentNamespace), aliases).apply(
View Full Code Here

    public void testGetExtensionByAlias() throws Exception {
       for (String zoneId : zones) {
           ExtensionApi extensionApi = api.getExtensionApiForZone(zoneId);
           Set<? extends Extension> response = extensionApi.list();
           for (Extension extension : response) {
              Extension details = extensionApi.get(extension.getId());
              assertNotNull(details);
              assertEquals(details.getId(), extension.getId());
              assertEquals(details.getName(), extension.getName());
              assertEquals(details.getDescription(), extension.getDescription());
              assertEquals(details.getNamespace(), extension.getNamespace());
              assertEquals(details.getUpdated(), extension.getUpdated());
              assertEquals(details.getLinks(), extension.getLinks());
           }
        }
    }
View Full Code Here

    * namespaces were different, for whatever reason. One way to address this is to have a multimap
    * of the authoritative namespace to alternate onces, which could be wired up with guice
    *
    */
   public void testPresentWhenAliasForExtensionMapsToNamespace() throws SecurityException, NoSuchMethodException {
      Extension keypairsWithDifferentNamespace = keypairs.toBuilder().namespace(
               URI.create("http://docs.openstack.org/ext/arbitrarilydifferent/keypairs/api/v1.1")).build();

      Multimap<URI, URI> aliases = ImmutableMultimap.of(keypairs.getNamespace(), keypairsWithDifferentNamespace
               .getNamespace());

      assertEquals(whenExtensionsAndAliasesInZoneInclude("zone", ImmutableSet.of(keypairsWithDifferentNamespace), aliases).apply(
              getKeyPairExtension(ImmutableList.<Object> of("zone"))), Optional.of("foo"));
      assertEquals(whenExtensionsAndAliasesInZoneInclude("zone", ImmutableSet.of(keypairsWithDifferentNamespace), aliases).apply(
View Full Code Here

    public void testGetExtensionByAlias() throws Exception {
       for (String zoneId : zones) {
           ExtensionApi extensionApi = api.getExtensionApiForZone(zoneId);
           Set<? extends Extension> response = extensionApi.list();
           for (Extension extension : response) {
              Extension details = extensionApi.get(extension.getId());
              assertNotNull(details);
              assertEquals(details.getId(), extension.getId());
              assertEquals(details.getName(), extension.getName());
              assertEquals(details.getDescription(), extension.getDescription());
              assertEquals(details.getNamespace(), extension.getNamespace());
              assertEquals(details.getUpdated(), extension.getUpdated());
              assertEquals(details.getLinks(), extension.getLinks());
           }
        }
    }
View Full Code Here

    * namespaces were different, for whatever reason. One way to address this is to have a multimap
    * of the authoritative namespace to alternate onces, which could be wired up with guice
    *
    */
   public void testPresentWhenAliasForExtensionMapsToNamespace() throws SecurityException, NoSuchMethodException {
      Extension keypairsWithDifferentNamespace = keypairs.toBuilder().namespace(
               URI.create("http://docs.openstack.org/ext/arbitrarilydifferent/keypairs/api/v1.1")).build();

      Multimap<URI, URI> aliases = ImmutableMultimap.of(keypairs.getNamespace(), keypairsWithDifferentNamespace
               .getNamespace());

      assertEquals(whenExtensionsAndAliasesInZoneInclude("zone", ImmutableSet.of(keypairsWithDifferentNamespace), aliases).apply(
              getKeyPairExtension(ImmutableList.<Object> of("zone"))), Optional.of("foo"));
      assertEquals(whenExtensionsAndAliasesInZoneInclude("zone", ImmutableSet.of(keypairsWithDifferentNamespace), aliases).apply(
View Full Code Here

    public void testGetExtensionByAlias() throws Exception {
       for (String zoneId : zones) {
           ExtensionApi extensionApi = api.getExtensionApiForZone(zoneId);
           Set<? extends Extension> response = extensionApi.list();
           for (Extension extension : response) {
              Extension details = extensionApi.get(extension.getId());
              assertNotNull(details);
              assertEquals(details.getId(), extension.getId());
              assertEquals(details.getName(), extension.getName());
              assertEquals(details.getDescription(), extension.getDescription());
              assertEquals(details.getNamespace(), extension.getNamespace());
              assertEquals(details.getUpdated(), extension.getUpdated());
              assertEquals(details.getLinks(), extension.getLinks());
           }
        }
    }
View Full Code Here

TOP

Related Classes of org.jclouds.openstack.v2_0.ServiceType

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.