Examples of SimpleCallback


Examples of autotest.common.SimpleCallback

        updateData.put("locked", JSONBoolean.getInstance(lock));

        params.put("host_filter_data", hostFilterData);
        params.put("update_data", updateData);

        callModifyHosts(params, new SimpleCallback() {
            public void doCallback(Object source) {
                String message = messagePrefix + " ";
                if (!lock) {
                    message += "un";
                }
View Full Code Here

Examples of autotest.common.SimpleCallback

            ids.set(ids.size(), jsonObj.get("id"));
        }
       
        JSONObject params = new JSONObject();
        params.put("job__id__in", ids);
        AfeUtils.callAbort(params, new SimpleCallback() {
            public void doCallback(Object source) {
               refresh();
            }
        });
    }
View Full Code Here

Examples of autotest.common.SimpleCallback

        jobStateFilter = new JobStateFilter();
        for (int i = 0; i < LINK_COUNT; i++)
            jobStateFilter.addLink(linkLabels[i]);
        // all jobs is selected by default
        jobStateFilter.setSelectedLink(DEFAULT_LINK);
        jobStateFilter.addCallback(new SimpleCallback() {
            public void doCallback(Object source) {
                updateHistory();
            }
        });
        jobTable.addFilter(jobStateFilter);
View Full Code Here

Examples of autotest.common.SimpleCallback

    }

    private void abortJob() {
        JSONObject params = new JSONObject();
        params.put("job__id", new JSONNumber(jobId));
        AfeUtils.callAbort(params, new SimpleCallback() {
            public void doCallback(Object source) {
                refresh();
            }
        });
    }
View Full Code Here

Examples of autotest.common.SimpleCallback

            }
        });
    }

    private void abortSelectedHosts() {
        AfeUtils.abortHostQueueEntries(selectionManager.getSelectedObjects(), new SimpleCallback() {
            public void doCallback(Object source) {
                refresh();
            }
        });
    }
View Full Code Here

Examples of autotest.common.SimpleCallback

        if (hostIds == null) {
            return;
        }

        params.put("id__in", hostIds);
        AfeUtils.callReverify(params, new SimpleCallback() {
            public void doCallback(Object source) {
               refresh();
            }
        }, "Hosts");
    }
View Full Code Here

Examples of autotest.common.SimpleCallback

        JSONArray hostIds = getSelectedHostIds();
        if (hostIds == null) {
            return;
        }

        AfeUtils.changeHostLocks(hostIds, lock, "Hosts", new SimpleCallback() {
            public void doCallback(Object source) {
                refresh();
            }
        });
    }
View Full Code Here

Examples of autotest.common.SimpleCallback

        JSONArray hostIds = getSelectedHostIds();
        if (hostIds == null) {
            return;
        }

        AfeUtils.handleHostsReservations(hostIds, reserve, "DONE", new SimpleCallback() {
            public void doCallback(Object source) {
                refresh();
            }
        });
    }
View Full Code Here

Examples of com.linkedin.common.callback.SimpleCallback

        for (Map<String, TransportClient> clientsByScheme : _serviceClients.values())
        {
          transportClients.addAll(clientsByScheme.values());
        }

        Callback<None> trackerCallback = Callbacks.countDown(Callbacks.<None>adaptSimple(new SimpleCallback()
        {
          @Override
          public void onDone()
          {
            shutdown.done();
View Full Code Here

Examples of com.magnetica.shared.SimpleCallback

    // TODO on ignoreOldResult: cancel all running request
    assert callback != null;
    assert rootModule != null;
    final long start = System.currentTimeMillis();
    latestRequest = request;
    rootModule.run(request, result, new SimpleCallback() {

      @Override public void done(boolean success) {
        if (ignoreOldResult && request != latestRequest) {
          return;
        }
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.