示例#1
0
      @Override
      protected CommandResult innerExecute(ArgoClientContext context) {

        ArrayList<ClientTransport> gens = context.getClientTransports();

        for (ClientTransport t : gens) {
          Console.info(t.getDescription());
        }

        return CommandResult.OK;
      }
示例#2
0
      @Override
      protected CommandResult innerExecute(ArgoClientContext context) {

        ClientTransport transport = context.getClientTransportNamed(_transportName);
        if (transport != null) {
          Console.info(transport.showConfiguration());
        } else {
          Console.error("No transport named [" + _transportName + "]");
        }
        return CommandResult.OK;
      }
示例#3
0
      @Override
      protected CommandResult innerExecute(ArgoClientContext context) {

        ClientTransport transport = context.getClientTransportNamed(_transportName);

        if (transport != null) {
          transport.setEnabled(false);
        } else {
          Console.error("No transport named [" + _transportName + "]");
        }
        return CommandResult.OK;
      }
示例#4
0
    @Override
    protected CommandResult innerExecute(ArgoClientContext context) {

      Console.info("\n------------------ Client URL Information --------------------");
      Console.info("  Client Listener URL ...... " + context.getListenerURL());
      Console.info("    (use 'config -url' to change.  Setting this will restart the listener)");
      Console.info("  Client RespondTo URL ..... " + context.getRespondToURL());
      Console.info("    (use 'config -rurl' to change. All subsequest probes will use that URL)");
      Console.info("  Default CID ... " + context.getDefaultCID());
      Console.info("    (use 'config -defaultCID' to change)");

      Console.info("\n------------------ Configured Transports --------------------");

      List<ClientTransport> transports = context.getClientTransports();

      for (ClientTransport t : transports) {
        Console.info(t.showConfiguration());
      }

      return CommandResult.OK;
    }