Package eu.admire.clienttoolkit.core

Examples of eu.admire.clienttoolkit.core.Gateway.submit()


                Gateway gateway = null;
                GatewayProcess process = null;
                try
                {
                    gateway = GatewayFactory.get(location.getAddress());
                    process = gateway.submit(dispel);
                }
                catch (URISyntaxException e)
                {
                    LOG.error("Remote gateway address is invalid: " +
                            location.getAddress());
View Full Code Here


       
        // if ip:port forwarding needs to be done to work around firewall problems
        // on the GATEWAY use the following method
        // mGateway.setForwardAddress(new InetSocketAddress("193.122.18.162", 8310));
       
        GatewayProcess mGatewayProcess = mGateway.submit(dispelFile);
       
        // if ip:port forwarding needs to be done to work around firewall problems
        // on the OGSADAI-USMT use the following method
        // mGatewayProcess.setForwardAddress(new InetSocketAddress("193.122.18.162", 8300));
       
View Full Code Here

    public void run()
    {
        try {
            Gateway gw = GatewayFactory.get(mGatewayURL);

            GatewayProcess gatewayProcess = gw.submit(
                    Util.getFileContentAsString(
                            mDispel.getLocation().toString()));
            GatewayProcessManager.getInstance().register(gatewayProcess,
                    mDispel.getName());
View Full Code Here

  @Test
  public void testSubmittingDISPEL() throws Exception
  {
      Gateway g = GatewayFactory.get(GATEWAY_ADDRESS);
      GatewayProcess p = g.submit(DISPEL_REQUEST);
      try
      {
          p.waitForResults();
         
          Map<String, Result> results = p.getResults();
View Full Code Here

            "Echo echo = new Echo;\n" +
            "|- \"Hello World2!\" -| => echo.input;\n" +
            "DeliverToNull deliver = new DeliverToNull;\n" +
            "echo.output => deliver.input;\n" +
            "submit echo;";
        GatewayProcess p = g.submit(dispelRequest);
        try
        {
            p.waitForResults();
           
            Map<String, Result> results = p.getResults();
View Full Code Here

    public void testUnknownHost() throws Exception
    {
        Gateway g = GatewayFactory.get("http://unknown");
        try
        {
            g.submit(DISPEL_REQUEST);
            TestCase.fail("ServerException expected.");
        }
        catch (ServerException e)
        {
            // expected
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.