Examples of Domain


Examples of com.dianping.cat.consumer.company.model.entity.Domain

      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();

        if (domains.containsKey(domain)) {
          return true;
        } else {
          domains.put(domain, new Domain(domain));

          return storeConfig();
        }
      }
    }
View Full Code Here

Examples of com.dianping.cat.home.bug.config.entity.Domain

  public Set<String> queryBugConfigsByDomain(String domain) {
    Set<String> result = m_configs.get(domain);

    if (result == null) {
      result = new HashSet<String>();
      Domain config = m_bugConfig.findDomain(domain);

      if (config == null) {
        result = new HashSet<String>(m_bugConfig.getExceptions());
      } else {
        if (config.getAdditivity() == true) {
          result.addAll(m_bugConfig.getExceptions());
          result.addAll(config.getExceptions());
        } else {
          result = new HashSet<String>(config.getExceptions());
        }
      }
      m_configs.put(domain, result);
    }
    return result;
View Full Code Here

Examples of com.dianping.cat.home.bug.entity.Domain

  }

  @Override
  public void visitDuration(Duration duration) {
    int count = duration.getCount();
    Domain domainInfo = m_report.findOrCreateDomain(m_currentDomain);
    ExceptionItem target = domainInfo.findOrCreateExceptionItem(m_exception);
    List<String> oldMessages = target.getMessages();
    List<String> newMessages = duration.getMessages();

    target.setCount(target.getCount() + count);
    mergeList(oldMessages, newMessages, SIZE);
View Full Code Here

Examples of com.dianping.cat.home.group.entity.Domain

      return "";
    }
  }

  public List<String> queryDomainGroup(String domain) {
    Domain domainGroup = m_domainGroup.findDomain(domain);

    if (domainGroup == null) {
      return new ArrayList<String>();
    } else {
      return new ArrayList<String>(domainGroup.getGroups().keySet());
    }
  }
View Full Code Here

Examples of com.dianping.cat.home.router.entity.Domain

    Date end = new Date(start.getTime() + TimeHelper.ONE_DAY);
    RouterConfig report = m_reportService.queryRouterConfigReport(Constants.CAT, start, end);

    switch (action) {
    case API:
      Domain domainConfig = m_configManager.getRouterConfig().findDomain(payload.getDomain());

      if (domainConfig == null) {
        if (report != null) {
          Domain domain = report.findDomain(payload.getDomain());
          String str = null;

          if (domain == null) {
            m_configManager.getRouterConfig().getDefaultServers();

            List<Server> servers = m_configManager.queryServersByDomain(payload.getDomain());

            str = buildServerStr(servers);
          } else {
            List<Server> servers = domain.getServers();

            str = buildServerStr(servers);
          }
          model.setContent(str);
        } else {
View Full Code Here

Examples of com.dianping.cat.home.utilization.entity.Domain

        for (TypeDetailInfo typeInfo : callInfos) {
          String project = typeInfo.getProjectName();

          if (!validataService(project)) {
            long failure = typeInfo.getFailureCount();
            Domain d = utilizationReport.findOrCreateDomain(project);
            ApplicationState service = d.findApplicationState("PigeonService");

            if (service != null) {
              service.setFailureCount(service.getFailureCount() + failure);

              long count = service.getCount();
View Full Code Here

Examples of com.facebook.presto.spi.Domain

                    case LESS_THAN_OR_EQUAL:
                    case NOT_EQUAL:
                        return new ExtractionResult(TupleDomain.none(), TRUE_LITERAL);

                    case IS_DISTINCT_FROM:
                        Domain domain = complementIfNecessary(Domain.notNull(columnType.getNativeType()), complement);
                        return new ExtractionResult(
                                TupleDomain.withColumnDomains(ImmutableMap.<ColumnHandle, Domain>of(columnHandle, domain)),
                                TRUE_LITERAL);

                    default:
                        throw new AssertionError("Unhandled type: " + comparisonType);
                }
            }

            Domain domain;
            switch (comparisonType) {
                case EQUAL:
                    domain = Domain.create(complementIfNecessary(SortedRangeSet.of(Range.equal(value)), complement), false);
                    break;
                case GREATER_THAN:
View Full Code Here

Examples of com.filenet.api.core.Domain

          Connection conn, String objectStoreName) throws RepositoryException {
    logger.info("Creating the subject for user: " + userName);
    Subject s = UserContext.createSubject(conn, userName, userPassword,
        "FileNetP8");
    UserContext.get().pushSubject(s);
    Domain domain = Factory.Domain.fetchInstance(conn, null, null);
    logger.log(Level.INFO, "Fetch domain: {0}", domain);
    logger.info("Creating the FileNet object store instance.");
    ObjectStore os = Factory.ObjectStore.fetchInstance(domain, objectStoreName,
        null);
    os.refresh();
View Full Code Here

Examples of com.heroku.api.Domain

        return builder.getPanel();
    }

    private JComponent domainLabel(App app) {
        final Domain domain = app.getDomain();
        if (domain==null) return new JLabel();
        return link(domain.getDomain());
    }
View Full Code Here

Examples of com.hp.hpl.jena.graph.query.Domain

            {
            @Override
            public void run( Domain current )
                { b.add( NodeCreateUtils.createTriple"S P O"  ) ); }
            };
        try { b.appnew Domain( 0 ), se, mob ); fail(" should throw CME" ); }
        catch (ConcurrentModificationException e) { pass(); }
        }
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.