Examples of Domain


Examples of aQute.bnd.osgi.Domain

            if ((options & IMPEXP) != 0) {
                out.println("[IMPEXP]");
                Manifest m = jar.getManifest();

                if (m != null) {
                    Domain domain = Domain.domain(m);
                    Parameters imports = domain.getImportPackage();
                    Parameters exports = domain.getExportPackage();
                    for (String p : exports.keySet()) {
                        if (imports.containsKey(p)) {
                            Attrs attrs = imports.get(p);
                            if (attrs.containsKey(VERSION_ATTRIBUTE)) {
                                exports.get(p).put("imported-as", attrs.get(VERSION_ATTRIBUTE));
View Full Code Here

Examples of aima.core.search.csp.Domain

      case 0:
        csp = new MapCSP();
        break;
      case 1: // three moves
        csp = new MapCSP();
        csp.setDomain(MapCSP.NSW, new Domain(new Object[]{MapCSP.BLUE}));
        break;
      case 2: // three moves
        csp = new MapCSP();
        csp.setDomain(MapCSP.WA, new Domain(new Object[]{MapCSP.RED}));
        break;
      }
      view.clearMappings();
      view.setPositionMapping(MapCSP.WA, 5, 10);
      view.setPositionMapping(MapCSP.NT, 15, 3);
View Full Code Here

Examples of anvil.server.Domain

  /// @method getDomain
  /// Returns the domain where this object is located.
  /// @synopsis Configurable getDomain()
  public Any m_getDomain()
  {
    Domain domain;
    if (_conf instanceof Zone) {
      domain = ((Zone)_conf).getDomain();
    } else {
      domain = _conf.getParent().getDomain();
    }
View Full Code Here

Examples of be.dnsbelgium.rdap.core.Domain

  public Domain get(@PathVariable("domainName") final String domainName) throws Error {
    LOGGER.debug("Query for domain {}", domainName);
    final DomainName dn;
    try {
      dn = DomainName.of(domainName);
      Domain result = domainService.getDomain(dn);
      if (result == null) {
        LOGGER.debug("Domain result for '{}' is null. Throwing DomainNotFoundException", domainName);
        throw new Error.DomainNotFound(dn);
      }
      return result;
View Full Code Here

Examples of cn.guoyukun.pdm2pdf.model.Domain

        .setVersion("V" + r.getVersion());

    // 打开文档,生成封面
    g.newPdf(pdf).openPdf().addOutline().addCover();
    // 生成业务域内容
      Domain domain = Helper.loadDomainConfig(domainCode);
      g.addDomainContent(domain);
    // 关闭文档
    g.closePdf();
  }
View Full Code Here

Examples of com.cloud.domain.Domain

        // we will default to ROOT
        if (domainId == null) {
            if (domainPath == null || domainPath.trim().length() == 0) {
                domainId = DomainVO.ROOT_DOMAIN;
            } else {
                Domain domainObj = _domainMgr.findDomainByPath(domainPath);
                if (domainObj != null) {
                    domainId = domainObj.getId();
                } else { // if an unknown path is passed in, fail the login call
                    throw new CloudAuthenticationException("Unable to find the domain from the path " + domainPath);
                }
            }
        }
View Full Code Here

Examples of com.cloudbees.plugins.credentials.domains.Domain

                            }
                            if (schemeRequirement != null && hostnameRequirement != null) {
                                break;
                            }
                        }
                        Domain domain = null;
                        if (hostnameRequirement != null) {
                            for (Domain d : store.getDomains()) {
                                HostnameSpecification spec = null;
                                for (DomainSpecification s : d.getSpecifications()) {
                                    if (s instanceof HostnameSpecification) {
                                        spec = (HostnameSpecification) s;
                                        break;
                                    }
                                }
                                if (spec != null && spec.test(hostnameRequirement).isMatch() && d.test(requirements)) {
                                    domain = d;
                                    break;
                                }
                            }
                        }
                        if (domain == null) {
                            if (hostnameRequirement != null) {
                                List<DomainSpecification> specs = new ArrayList<DomainSpecification>();
                                specs.add(
                                        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 {
View Full Code Here

Examples of com.dgwave.osrs.model.Domain

  @Test
  public void testGetString() {
    try {
      BelongsToRsp req = new BelongsToRsp();
      req.setDomain(new Domain("dgwave.com"));
      String togo = client.getString(req);
      assertNotNull(togo);
      System.out.println("Request is: " + togo);
    } catch (OsrsException e) {
      e.printStackTrace();
View Full Code Here

Examples of com.dianping.cat.configuration.client.entity.Domain

  @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.server.entity.Domain

    m_normalizePayload.normalize(model, payload);
  }

  private void setDefaultThreshold(Model model, Payload payload) {
    Map<String, Domain> domains = m_manager.getLongConfigDomains();
    Domain d = domains.get(payload.getDomain());

    if (d != null) {
      int longUrlTime = d.getUrlThreshold() == null ? m_manager.getLongUrlDefaultThreshold() : d.getUrlThreshold()
            .intValue();

      if (longUrlTime != 500 && longUrlTime != 1000 && longUrlTime != 2000 && longUrlTime != 3000
            && longUrlTime != 4000 && longUrlTime != 5000) {
        double sec = (double) (longUrlTime) / (double) 1000;
        NumberFormat nf = new DecimalFormat("#.##");
        String option = "<option value=\"" + longUrlTime + "\"" + ">" + nf.format(sec) + " Sec</option>";

        model.setDefaultThreshold(option);
      }

      int longSqlTime = d.getSqlThreshold();

      if (longSqlTime != 100 && longSqlTime != 500 && longSqlTime != 1000) {
        double sec = (double) (longSqlTime);
        NumberFormat nf = new DecimalFormat("#");
        String option = "<option value=\"" + longSqlTime + "\"" + ">" + nf.format(sec) + " ms</option>";
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.