Examples of Domain


Examples of org.jclouds.glesys.domain.Domain

            HttpRequest.builder().method("POST").endpoint("https://api.glesys.com/domain/list/format/json")
                       .addHeader("Accept", "application/json")
                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/domain_list.json")).build()).getDomainApi();

      Domain expected =
            Domain.builder().domainName("testglesys.jclouds.org").createTime(dateService.iso8601SecondsDateParse("2012-01-31T12:19:03+01:00")).build();

      Domain actual = Iterables.getOnlyElement(api.list());
      assertEquals(expected.getName(), actual.getName());
      assertEquals(expected.getCreateTime(), actual.getCreateTime());
   }
View Full Code Here

Examples of org.jclouds.rackspace.clouddns.v1.domain.Domain

         return null;
      }
      else if (requestUrl.contains("import")) {
         Type type = new TypeLiteral<Map<String, Set<ParseDomain.RawDomain>>>() { }.getType();
         Map<String, Set<RawDomain>> domainMap = json.fromJson(response.toString(), type);
         Domain domain = Iterators.getOnlyElement(domainMap.get("domains").iterator()).getDomain();

         return domain;
      }
      else if (requestUrl.contains("export")) {
         Type type = new TypeLiteral<Map<String, String>>() { }.getType();
View Full Code Here

Examples of org.jfx4ee.adm4ee.business.configuration.entity.Domain

            Level logLevel = config.getLogLevel();
            assertEquals(Level.INFO, logLevel);
            List<Domain> domains = config.getDomains();
            assertNotNull(domains);
            assertTrue(domains.size() > 0);
            Domain domain = domains.get(0);
            assertNotNull(domain);
            assertEquals("testdomain1", domain.getDomainName());
            assertNotNull(domain.getServerType());

            List<Application> applications = domain.getApplications();
            assertNotNull(applications);
            assertTrue(applications.size() > 0);

            Application app = applications.get(0);
            assertNotNull(app);
            assertEquals("WebTest", app.getName());

            List<Database> databases = domain.getDatabases();
            assertNotNull(databases);

            Database db = databases.get(0);
            assertEquals("Master", db.getName());
View Full Code Here

Examples of org.jugile.demo.domain.Domain

import org.jugile.util.JugileTestCase;

public class BookTest extends JugileTestCase {
 
  public void testFoo() {
    Domain d = Domain.getDomain();
    d.createBook("b1");
    d.createBook("b2");
    d.createBook("b3");
    d.createBook("foo");
    d.createBook("foo");
    d.commit();
   
    for (Book b : d.getBooks().byTitle("foo")) {
      print("book: " + b.getTitle());
    }

    for (Book b : d.getBooks()) b.delete();
  }
View Full Code Here

Examples of org.jugile.proto2.domain.Domain

import org.jugile.util.JugileTestCase;

public class BoCollectionTest extends JugileTestCase {
 
  public void testPaging() {
    Domain d = Domain.getDomain();
    PersonCollection pc = new PersonCollection();
    for (int i = 0; i < 20; i++) {
      Person p = d.createPerson();
      p.setName("p"+i);
      pc.add(p);
    }
    for (Person p : pc) {
      print("p: " + p);
View Full Code Here

Examples of org.libvirt.Domain

    }

    protected Integer getVncPort(Connect conn, String vmName)
            throws LibvirtException {
        LibvirtDomainXMLParser parser = new LibvirtDomainXMLParser();
        Domain dm = null;
        try {
            dm = conn.domainLookupByUUID(UUID.nameUUIDFromBytes(vmName
                    .getBytes()));
            String xmlDesc = dm.getXMLDesc(0);
            parser.parseDomainXML(xmlDesc);
            return parser.getVncPort();
        } finally {
            try {
                if (dm != null) {
                    dm.free();
                }
            } catch (LibvirtException l) {

            }
        }
View Full Code Here

Examples of org.mule.module.launcher.domain.Domain

    }

    @Override
    public Domain deployPackagedArtifact(String zip) throws DeploymentException
    {
        Domain domain = domainDeployer.deployPackagedArtifact(zip);
        deployBundledAppsIfDomainWasCreated(domain);
        return domain;
    }
View Full Code Here

Examples of org.openengsb.core.api.Domain

            for (ServiceReference<Domain> ref : serviceReferences) {
                ServiceEntry entry = new ServiceEntry();
                for (String key : ref.getPropertyKeys()) {
                    entry.properties.put(key, ref.getProperty(key));
                }
                Domain service = bundleContext.getService(ref);
                try {
                    entry.aliveState = service.getAliveState();
                } catch (Exception e) {
                    LOGGER.error("Couldn't load service entry " + ref, e);
                    entry.aliveState = AliveState.OFFLINE;
                }
                result.add(entry);
View Full Code Here

Examples of org.openswing.swing.domains.java.Domain

      ex.printStackTrace();
    }


    // add user roles domain...
    Domain rolesDomain = new Domain("USERROLES");
    Iterator it = authorizations.getUserRoles().keySet().iterator();
    Object progressiveSYS04 = null;
    while(it.hasNext()) {
      progressiveSYS04 = new BigDecimal(it.next().toString());
      rolesDomain.addDomainPair(progressiveSYS04,authorizations.getUserRoles().get(progressiveSYS04).toString());
    }
    domains.put(
      rolesDomain.getDomainId(),
      rolesDomain
    );

    // add username panel to the status panel...
    GenericStatusPanel userPanel = new GenericStatusPanel();
View Full Code Here

Examples of org.openswing.swing.domains.java.Domain

      // fill in the company combo...
      ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
      ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
      ArrayList companiesList = bca.getCompaniesList("SCH01");
      Domain domain = new Domain("DOMAIN_SCH01");
      for (int i = 0; i < companiesList.size(); i++) {
        if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
            "SCH01",companiesList.get(i).toString()
        ))
          domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
      }
      controlCompaniesCombo.setDomain(domain);


      // task lookup...
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.