class DatabusRequest implements Callable<DatabusRequest>, Future<DatabusRequest> {

  @Override
  public String toString()
  {
    StringBuilder res = new StringBuilder();
    res.append("{\"name\":\"");
    res.append(_name);
    res.append("\", \"method\":\"");
    res.append(_requestType);
    res.append("\" ");

    for (Object key:_params.keySet())
    {
      Object value = _params.get(key);
      res.append(", \"");
      res.append(key.toString());
      res.append("\":\"");
      res.append(null != value ? value.toString() : "null");
      res.append("\"");
    }
    res.append("}");

    return res.toString();
  }

  public  DatabusRequest(String name, HttpMethod requestType, SocketAddress remoteAddress,
                        Properties params, ServerContainer.RuntimeConfig config);
  public  DatabusRequest(String name, HttpMethod requestType, SocketAddress remoteAddress,
                        ServerContainer.RuntimeConfig config);

}