Examples of execute()


Examples of com.alibaba.jstorm.callback.ClusterStateCallback.execute()

          if (!type.equals(EventType.None)) {
            for (Entry<UUID, ClusterStateCallback> e : callbacks
                .entrySet()) {
              ClusterStateCallback fn = e.getValue();
              fn.execute(type, path);
            }
          }
        }
      }
    };
View Full Code Here

Examples of com.alipay.bluewhale.core.callback.Callback.execute()

        if(transition_map.containsKey(transition_status)){
          //��ȡת���¶���ִ�з�����ִ�С�
          Callback callback=transition_map.get(transition_status);
          //�����µ�״̬����StormStatus
          if(callback!=null){
            Object obj=callback.execute(args);
            if (obj != null && obj instanceof StormStatus) {
              StormStatus newStatus=(StormStatus)obj;
              //����״̬
                data.getStormClusterState().update_storm(topologyid, newStatus);
              LOG.info("Updated " + topologyid + " with status " + newStatus);
View Full Code Here

Examples of com.almworks.sqlite4java.SQLiteQueue.execute()

  public static void initializeChampions() {
    if (champions == null) {
      SQLiteQueue queue = GameStatsDBWrapper.getQueue();
      champions = new LinkedList<Champion>();
      queue.execute(new SQLiteJob<Object>() {
        protected Object job(SQLiteConnection connection) throws Throwable {
          SQLiteStatement st = connection
              .prepare("SELECT * FROM champions");
          while (st.step()) {
            Champion newChamp = new Champion();
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.generic.ActivityImplementation.execute()

            ActivityExecutionContext context = new ActivityExecutionContextImpl(service, domain, task);
            ActivityImplementation activityImplementation = activityImplementationFactory.getActivityImplementation(activityType);
            if (activityImplementation == null) {
                throw new ActivityFailureException("Unknown activity type: " + activityType);
            }
            output = activityImplementation.execute(context);
            if (!activityImplementation.getExecutionOptions().isManualActivityCompletion()) {
                respondActivityTaskCompletedWithRetry(task.getTaskToken(), output);
            }
        }
        catch (CancellationException e) {
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.interceptors.AsyncExecutor.execute()

        }
        else {
            result = new Settable<Object>();
        }
        DecoratorInvocationHandler handler = new DecoratorInvocationHandler(pjp, result);
        executor.execute(handler);
        return result;
    }

    private boolean isVoidReturnType(final ProceedingJoinPoint pjp) {
        boolean isVoidReturnType = false;
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.interceptors.AsyncRetryingExecutor.execute()

        }
        else {
            result = new Settable<Object>();
        }
        DecoratorInvocationHandler handler = new DecoratorInvocationHandler(pjp, result);
        executor.execute(handler);
        return result;
    }

    private boolean isVoidReturnType(final ProceedingJoinPoint pjp) {
        boolean isVoidReturnType = false;
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.interceptors.AsyncScheduledExecutor.execute()

        CronInvocationSchedule cronSchedule = new CronInvocationSchedule(options.getCronExpression(), expiration, tz);
        AsyncScheduledExecutor scheduledExecutor = new AsyncScheduledExecutor(cronSchedule, clock);
        ExponentialRetryPolicy retryPolicy = createRetryPolicyFromOptions(options);
        final AsyncRetryingExecutor retryExecutor = new AsyncRetryingExecutor(retryPolicy, clock);

        scheduledExecutor.execute(new AsyncRunnable() {

            @Override
            public void run() throws Throwable {
                retryExecutor.execute(new AsyncRunnable() {
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.flow.interceptors.RetryInterceptor.execute()

            interceptor = new RetryInterceptorVoid(retryCallable, retryPolicy);
        } else {
            interceptor = new RetryInterceptorWithResult(retryCallable, retryPolicy);
        }
       
        return interceptor.execute();
    }
   
    private ExponentialRetryPolicy createExponentialRetryPolicy(ExponentialRetry retryAnnotation) {
       
        ExponentialRetryPolicy retryPolicy = new ExponentialRetryPolicy(retryAnnotation.initialRetryIntervalSeconds())
View Full Code Here

Examples of com.aneeshpu.dpdeppop.query.Query.execute()

        deleteParents(connection);
    }

    private void deleteSelf(final Connection connection) throws SQLException {
        final Query deleteQueryQuery = queryFactory.generateDeleteQuery(getPrimaryKeyColumn(), this.preassignedValues, this, connection);
        deleteQueryQuery.execute();
    }

    private void deleteParents(final Connection connection) throws SQLException {
        final ListIterator<Map.Entry<String, Record>> entryListIterator = new ArrayList<Map.Entry<String, Record>>(parentTables.entrySet()).listIterator(parentTables.size());
View Full Code Here

Examples of com.aptana.interactive_console.console.IXmlRpcClient.execute()

        try {
            IXmlRpcClient client = new ScriptXmlRpcClient(process, err, out);
            client.setPort(port);

            printArr(client.execute("addExec", new Object[] { "abc = 10" }));
            printArr(client.execute("addExec", new Object[] { "abc" }));
            printArr(client.execute("addExec", new Object[] { "import sys" }));
            printArr(client.execute("addExec", new Object[] { "class Foo:" }));
            printArr(client.execute("addExec", new Object[] { "    print 20" }));
            printArr(client.execute("addExec", new Object[] { "    print >> sys.stderr, 30" }));
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.