Examples of invoke()


Examples of org.aavso.tools.vstar.plugin.GeneralToolPluginBase.invoke()

      public void actionPerformed(ActionEvent e) {
        String item = e.getActionCommand();
        GeneralToolPluginBase plugin = menuItemNameToGenToolPlugin
            .get(item);
        try {
          plugin.invoke();
        } catch (Throwable t) {
          MessageBox.showErrorDialog("Tool Error", t);
        }
      }
    };
View Full Code Here

Examples of org.activiti.spring.boot.actuate.endpoint.ProcessEngineEndpoint.invoke()

        Map map = mapResponseEntity.getBody();

        String[] criticalKeys = {"completedTaskCount", "openTaskCount", "cachedProcessDefinitionCount"};

        Map<?, ?> invokedResults = processEngineEndpoint.invoke();
        for (String k : criticalKeys) {
            org.junit.Assert.assertTrue(map.containsKey(k));
            org.junit.Assert.assertEquals(((Number) map.get(k)).longValue(), ((Number) invokedResults.get(k)).longValue());
        }
    }
View Full Code Here

Examples of org.aopalliance.intercept.MethodInterceptor.invoke()

  @Override
  public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
    MethodInterceptor methodInterceptor = advised.getMethodInterceptor();
    if (advised.getMethodMatcher() != null
        && advised.getMethodMatcher().matches(method, advised.getTargetSource().getTarget().getClass())) {
      return methodInterceptor.invoke(new ReflectiveMethodInvocation(advised.getTargetSource().getTarget(),
          method, args));
    } else {
      return method.invoke(advised.getTargetSource().getTarget(), args);
    }
  }
View Full Code Here

Examples of org.apache.abdera.server.RequestHandler.invoke()

    try {
      RequestHandlerFactory factory = RequestHandlerFactory.INSTANCE;            // TODO: improve this
      if (factory != null)
        handler = factory.newRequestHandler(requestContext);
      if (handler != null) {
        responseContext = handler.invoke(requestContext);
      } else {
        throw new MethodNotAllowedException(request.getMethod());
      }
    } catch (AbderaServerException exception) {
      responseContext = exception;
View Full Code Here

Examples of org.apache.airavata.gfac.core.handler.GFacHandler.invoke()

                throw new GFacException("Cannot instantiate handler class " + handlerClassName, e);
            } catch (IllegalAccessException e) {
                throw new GFacException("Cannot instantiate handler class " + handlerClassName, e);
            }
            try {
                handler.invoke(jobExecutionContext);
            } catch (GFacHandlerException e) {
                throw new GFacException("Error Executing a InFlow Handler", e.getCause());
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.handler.ThreadedHandler.invoke()

                }
            } else if ("org.apache.airavata.gfac.monitor.handlers.GridPushMonitorHandler".equals(threadedHandler.getClass().getName())) {
                pushMonitorHandler = threadedHandler;
                if ("".equals(monitorMode) || monitorMode == null || org.apache.airavata.common.utils.Constants.PUSH.equals(monitorMode)) {
                    log.info("Job is launched successfully now parsing it to monitoring in push mode, JobID Returned:  " + jobID);
                    pushMonitorHandler.invoke(jobExecutionContext);
                } else {
                    log.error("Currently we only support Pull and Push monitoring and monitorMode should be PUSH" +
                            " to handle by the GridPushMonitorHandler");
                }
            }
View Full Code Here

Examples of org.apache.airavata.gfac.handler.GFacHandler.invoke()

                throw new GFacException("Cannot instantiate handler class " + handlerClassName, e);
            } catch (IllegalAccessException e) {
                throw new GFacException("Cannot instantiate handler class " + handlerClassName, e);
            }
            try {
                handler.invoke(jobExecutionContext);
            } catch (GFacHandlerException e) {
                throw new GFacException("Error Executing a InFlow Handler", e.getCause());
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.local.handler.LocalDirectorySetupHandler.invoke()

    }

    @Test
    public void testLocalDirectorySetupHandler() throws GFacException {
        LocalDirectorySetupHandler localDirectorySetupHandler = new LocalDirectorySetupHandler();
        localDirectorySetupHandler.invoke(jobExecutionContext);

        ApplicationDescription applicationDeploymentDescription = jobExecutionContext.getApplicationContext().getApplicationDeploymentDescription();
        ApplicationDeploymentDescriptionType app = applicationDeploymentDescription.getType();
        junit.framework.Assert.assertTrue(new File(app.getStaticWorkingDirectory()).exists());
        junit.framework.Assert.assertTrue(new File(app.getScratchWorkingDirectory()).exists());
View Full Code Here

Examples of org.apache.airavata.xbaya.component.dynamic.DynamicInvoker.invoke()

    DynamicInvoker dynamicInvoker = new DynamicInvoker(className,
        implJarLocation, operationName, inputs.toArray());
    this.invokerMap.put(node, dynamicInvoker);
    dynamicInvoker.setup();
    dynamicInvoker.invoke();
    node.getGUI().setBodyColor(NodeState.FINISHED.color);
  }

  private void handleForEach(Node node) throws XBayaException {
    final ForEachNode forEachNode = (ForEachNode) node;
View Full Code Here

Examples of org.apache.airavata.xbaya.invoker.DynamicInvoker.invoke()

    }

    DynamicInvoker dynamicInvoker = new DynamicInvoker(className, implJarLocation, operationName, inputs.toArray());
    this.invokerMap.put(node, dynamicInvoker);
    dynamicInvoker.setup();
    dynamicInvoker.invoke();
    node.setState(NodeExecutionState.FINISHED);
  }

  private void handleForEach(Node node) throws WorkflowException {
    final ForEachNode forEachNode = (ForEachNode) node;
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.