Examples of addDomain()


Examples of com.cloudbees.plugins.credentials.CredentialsStore.addDomain()

                                        new HostnameSpecification(hostnameRequirement.getHostname(), null));
                                if (schemeRequirement != null) {
                                    specs.add(new SchemeSpecification(schemeRequirement.getScheme()));
                                }
                                domain = new Domain(hostnameRequirement.getHostname(), null, specs);
                                if (store.addDomain(domain, credential)) {
                                    return credential;
                                }
                            }
                        } else {
                            if (store.addCredentials(domain, credential)) {
View Full Code Here

Examples of com.dianping.cat.configuration.client.entity.ClientConfig.addDomain()

  @BeforeClass
  public static void beforeClass() throws IOException {
    ClientConfig clientConfig = new ClientConfig();

    clientConfig.setMode("client");
    clientConfig.addDomain(new Domain("Test").setEnabled(true));

    File configFile = new File("/data/appdatas/cat/client.xml").getCanonicalFile();

    configFile.getParentFile().mkdirs();
View Full Code Here

Examples of com.dianping.cat.configuration.client.entity.ClientConfig.addDomain()

  @BeforeClass
  public static void beforeClass() throws IOException {
    ClientConfig clientConfig = new ClientConfig();

    clientConfig.setMode("client");
    clientConfig.addDomain(new Domain("Test").setEnabled(true));

    File configFile = new File("target/client.xml").getCanonicalFile();

    configFile.getParentFile().mkdirs();
View Full Code Here

Examples of com.dianping.cat.configuration.client.entity.ClientConfig.addDomain()

  protected File getConfigurationFile() {
    try {
      ClientConfig config = new ClientConfig();

      config.setMode("client");
      config.addDomain(new Domain("cat").setMaxMessageSize(8));
      config.addServer(new Server("localhost"));

      File file = new File("target/cat-config.xml");

      Files.forIO().writeTo(file, config.toString());
View Full Code Here

Examples of com.dianping.cat.configuration.client.entity.ClientConfig.addDomain()

    if (isCatServerAlive()) {
      try {
        ClientConfig config = new ClientConfig();

        config.setMode("client");
        config.addDomain(new Domain("cat"));
        config.addServer(new Server("localhost").setPort(2280));

        File file = new File("target/cat-config.xml");

        Files.forIO().writeTo(file, config.toString());
View Full Code Here

Examples of com.dianping.cat.configuration.client.entity.ClientConfig.addDomain()

        String appName = prop.getProperty("app.name");

        if (appName != null) {
          ClientConfig config = new ClientConfig();

          config.addDomain(new Domain(appName));
          m_logger.info(String.format("Find domain name %s from app.properties.", appName));
          return config;
        } else {
          m_logger.info(String.format("Can't find app.name from app.properties."));
          return null;
View Full Code Here

Examples of com.dianping.cat.consumer.company.model.entity.ProductLine.addDomain()

      if (productLine == null) {
        productLine = new ProductLine();
        productLine.setId(product);
        productLine.setTitle(product);
        buildDefaultDashboard(productLine, domain);
        productLine.addDomain(new Domain(domain));
        company.addProductLine(productLine);
        return storeConfig();
      } else {
        Map<String, Domain> domains = productLine.getDomains();
View Full Code Here

Examples of com.dianping.cat.consumer.metric.model.entity.MetricItem.addDomain()

      long current = metric.getTimestamp() / 1000 / 60;
      int min = (int) (current % (60));
      String key = m_configManager.buildMetricKey(domain, METRIC, metricName);
      MetricItem metricItem = report.findOrCreateMetricItem(key);

      metricItem.addDomain(domain).setType(status);
      updateMetric(metricItem, min, config.getCount(), config.getValue());

      config.setTitle(metricName);

      ProductLine productline = m_productLineConfigManager.queryProductLine(report.getProduct());
View Full Code Here

Examples of com.hp.hpl.jena.ontology.DatatypeProperty.addDomain()

   
    String resourceString = ns_ + goodName ;
    log.info("datatype Property created " + resourceString);
    DatatypeProperty p = newOntModel.createDatatypeProperty(resourceString);
    p.addProperty(RDFS.label, str);
    p.addDomain(classForTerms);
    return p;
  }

  private String getGoodName(String str, boolean allowColon) {
//    return finalUri + cleanStringforID(row.getString(id).trim());
View Full Code Here

Examples of com.hp.hpl.jena.ontology.DatatypeProperty.addDomain()

                log.info("Source object type reference not found on property definition {}",
                    propertyDefinition.getLocalname());
            }

            for (Resource domain : domains) {
                datatypeProperty.addDomain(domain);
            }
            datatypeProperty.addRange(range);
        } else {
            // Add domains to union class
            OntResource domain = datatypeProperty.getDomain();
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.