Examples of userData()


Examples of org.apache.camel.component.jmx.beans.ISimpleMXBean.userData()

    }

    @Test
    public void test() throws Exception {
        ISimpleMXBean simpleBean = getSimpleMXBean();
        simpleBean.userData("myUserData");

        waitForMessages();

        Message m = getMessage(0);
        URI uri = (URI) m.getHeader("jmx.handback");
View Full Code Here

Examples of org.apache.camel.component.jmx.beans.ISimpleMXBean.userData()

    }

    @Test
    public void test() throws Exception {
        ISimpleMXBean simpleBean = getSimpleMXBean();
        simpleBean.userData("myUserData");

        getMockFixture().waitForMessages();

        Message m = getMockFixture().getMessage(0);
        URI uri = (URI) m.getHeader("jmx.handback");
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.userData()

                        Class binding = g.getClass();
                        CoordinateReferenceSystem crs = null;
                        if (g.getSRID() > 0) {
                            // see if the dialect can handle this one
                            crs = store.getSQLDialect().createCRS(g.getSRID(), cx);
                            tb.userData(JDBCDataStore.JDBC_NATIVE_SRID, g.getSRID());
                        }
                        if (crs == null) {
                            crs = gd.getCoordinateReferenceSystem();
                        }
                        tb.add(ad.getLocalName(), binding, crs);
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureTypeBuilder.userData()

                        Class binding = g.getClass();
                        CoordinateReferenceSystem crs = null;
                        if (g.getSRID() > 0) {
                            // see if the dialect can handle this one
                            crs = store.getSQLDialect().createCRS(g.getSRID(), cx);
                            tb.userData(JDBCDataStore.JDBC_NATIVE_SRID, g.getSRID());
                        }
                        if (crs == null) {
                            crs = gd.getCoordinateReferenceSystem();
                        }
                        tb.add(ad.getLocalName(), binding, crs);
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.options.CreateServerOptions.userData()

      CreateServerOptions options = new CreateServerOptions();
      options.metadata(metadataAndTagsAsCommaDelimitedValue(template.getOptions()));
      if (templateOptions.getSecurityGroupNames().isPresent())
         options.securityGroupNames(templateOptions.getSecurityGroupNames().get());
      options.userData(templateOptions.getUserData());
      options.diskConfig(templateOptions.getDiskConfig());

      Optional<String> privateKey = Optional.absent();
      if (templateOptions.getKeyPairName() != null) {
         options.keyPairName(templateOptions.getKeyPairName());       
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.options.CreateServerOptions.userData()

      CreateServerOptions options = new CreateServerOptions();
      options.metadata(metadataAndTagsAsCommaDelimitedValue(template.getOptions()));
      if (templateOptions.getSecurityGroupNames().isPresent())
         options.securityGroupNames(templateOptions.getSecurityGroupNames().get());
      options.userData(templateOptions.getUserData());
      options.diskConfig(templateOptions.getDiskConfig());
      options.networks(templateOptions.getNetworks());

      Optional<String> privateKey = Optional.absent();
      if (templateOptions.getKeyPairName() != null) {
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.options.CreateServerOptions.userData()

      CreateServerOptions options = new CreateServerOptions();
      options.metadata(metadataAndTagsAsCommaDelimitedValue(template.getOptions()));
      if (templateOptions.getSecurityGroupNames().isPresent())
         options.securityGroupNames(templateOptions.getSecurityGroupNames().get());
      options.userData(templateOptions.getUserData());
      options.diskConfig(templateOptions.getDiskConfig());
      options.configDrive(templateOptions.getConfigDrive());
      if (templateOptions.getNovaNetworks() != null) {
         options.novaNetworks(templateOptions.getNovaNetworks());
      }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.options.CreateServerOptions.userData()

      CreateServerOptions options = new CreateServerOptions();
      options.metadata(metadataAndTagsAsCommaDelimitedValue(template.getOptions()));
      if (templateOptions.getSecurityGroupNames().isPresent())
         options.securityGroupNames(templateOptions.getSecurityGroupNames().get());
      options.userData(templateOptions.getUserData());

      Optional<String> privateKey = Optional.absent();
      if (templateOptions.getKeyPairName() != null) {
         options.keyPairName(templateOptions.getKeyPairName());       
         KeyPair keyPair = keyPairCache.getIfPresent(ZoneAndName.fromZoneAndName(template.getLocation().getId(), templateOptions.getKeyPairName()));
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.options.CreateServerOptions.userData()

      CreateServerOptions options = new CreateServerOptions();
      options.metadata(metadataAndTagsAsCommaDelimitedValue(template.getOptions()));
      if (templateOptions.getSecurityGroupNames().isPresent())
         options.securityGroupNames(templateOptions.getSecurityGroupNames().get());
      options.userData(templateOptions.getUserData());
      options.diskConfig(templateOptions.getDiskConfig());
      options.configDrive(templateOptions.getConfigDrive());
      options.availabilityZone(templateOptions.getAvailabilityZone());

      if (templateOptions.getNovaNetworks() != null) {
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.options.CreateServerOptions.userData()

    CreateServerOptions serverOptions = new CreateServerOptions();
    serverOptions.keyPairName(this.keyPair);
    serverOptions.securityGroupNames(this.securityGroups);
    serverOptions.metadata(this.metadata);
    if (this.userData.isPresent()) {
      serverOptions.userData(this.userData.get().getBytes());
    }

    // create server
    ServerApi serverApi = api.getServerApiForZone(getAccount().getRegion());
    ServerCreated serverCreated = serverApi.create(this.serverName,
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.