Examples of addApplication()


Examples of com.netflix.discovery.shared.Applications.addApplication()

                reader.moveDown();

                String nodeName = reader.getNodeName();

                if (NODE_APP.equals(nodeName)) {
                    apps.addApplication((Application) context.convertAnother(
                            apps, Application.class));
                } else if (VERSIONS_DELTA.equals(nodeName)) {
                    apps.setVersion(Long.valueOf(reader.getValue()));
                } else if (APPS_HASHCODE.equals(nodeName)) {
                    apps.setAppsHashCode(reader.getValue());
View Full Code Here

Examples of com.netflix.discovery.shared.Applications.addApplication()

            if (null != pathInfo && pathInfo.startsWith("")) {
                pathInfo = pathInfo.substring(EUREKA_API_BASE_PATH.length());
                if (pathInfo.startsWith("apps/delta")) {
                    Applications apps = new Applications();
                    for (Application application : applicationDeltaMap.values()) {
                        apps.addApplication(application);
                    }
                    apps.setAppsHashCode(apps.getReconcileHashCode());
                    sendOkResponseWithContent((Request) request, response, XmlXStream.getInstance().toXML(apps));
                    handled = true;
                    sentDelta = true;
View Full Code Here

Examples of com.netflix.discovery.shared.Applications.addApplication()

                    handled = true;
                    sentDelta = true;
                } else if (pathInfo.startsWith("apps")) {
                    Applications apps = new Applications();
                    for (Application application : applicationMap.values()) {
                        apps.addApplication(application);
                    }
                    apps.setAppsHashCode(apps.getReconcileHashCode());
                    sendOkResponseWithContent((Request) request, response, XmlXStream.getInstance().toXML(apps));
                    handled = true;
                }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.DiameterApplications.addApplication()

            Application diaApp = new Application();
            Authapp authApp = new Authapp();
            authApp.setId("16777221");
            diaApp.addAuthapp(authApp);
            diaApp.setVendorid("10415");
            diaApps.addApplication(diaApp);
            peerConfig.addDiameterApplications(diaApps);
        } catch (ConfigException e) {
            throw new MBeanException(e);
        }
        return peerConfig;
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.DiameterApplications.addApplication()

            if (authAppId != null) {
                Authapp authApp = new Authapp();
                authApp.setId(authAppId);
                diaApp.addAuthapp(authApp);
            }
            diaApps.addApplication(diaApp);
        } catch (ConfigException e) {
            throw new MBeanException(e);
        }
    }
View Full Code Here

Examples of lupos.engine.operators.singleinput.Result.addApplication()

  public BasicOperator deserialize(final JSONObject serializedOperator) throws JSONException {
    final Result result = new Result();
    if (this.application == null) {
      this.application = new CollectResult(false);
    }
    result.addApplication(this.application);
    return result;

  }
}
View Full Code Here

Examples of lupos.engine.operators.singleinput.Result.addApplication()

                  System.out.println("Evaluate query ...");

                  if (evaluator instanceof CommonCoreQueryEvaluator || evaluator instanceof BasicIndexRuleEvaluator) {
                    final CollectRIFResult crr = new CollectRIFResult(false);
                    final Result resultOperator = (evaluator instanceof CommonCoreQueryEvaluator)?((CommonCoreQueryEvaluator<Node>)evaluator).getResultOperator(): ((BasicIndexRuleEvaluator)evaluator).getResultOperator();
                    resultOperator.addApplication(crr);
                    evaluator.evaluateQuery();
                    this.resultQueryEvaluator = crr.getQueryResults();
                  } else {
                    this.resultQueryEvaluator = new QueryResult[1];
                    this.resultQueryEvaluator[0] = evaluator.getResult();
View Full Code Here

Examples of lupos.engine.operators.singleinput.Result.addApplication()

    final Map<Variable, Integer> oldBindingsFactory = evaluator_param.getBindingsFactory().getPosVariables();

    final Result result = setupEvaluator(evaluator_param, (Root) collection.deepClone());

    final CollectResult cr = new CollectResult(false);
    result.addApplication(cr);

    evaluator_param.logicalOptimization();
    evaluator_param.physicalOptimization();
    try {
      evaluator_param.evaluateQuery();
View Full Code Here

Examples of lupos.engine.operators.singleinput.Result.addApplication()

    final Result result = setupEvaluator(evaluator, collectionClone);

    result.clearApplications();
    final NonEmptyApplication application = new NonEmptyApplication();
    result.addApplication(application);

    evaluator.logicalOptimization();
    evaluator.physicalOptimization();
    try {
      evaluator.evaluateQuery();
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler.addApplication()

    RMNode node = MockNodes.newNodeInfo(1,
            Resources.createResource(1024, 4), 1, "127.0.0.1");
    scheduler.handle(new NodeAddedSchedulerEvent(node));

    ApplicationId appId = ApplicationId.newInstance(0, 1);
    scheduler.addApplication(appId, "queue1", "user1");

    NodeUpdateSchedulerEvent updateEvent = new NodeUpdateSchedulerEvent(node);
    try {
      scheduler.handle(updateEvent);
    } catch (NullPointerException e) {
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.