org.encog.cloud
Class AsynchronousCloudRequest

java.lang.Object
  extended by org.encog.cloud.AsynchronousCloudRequest
All Implemented Interfaces:
Runnable

public class AsynchronousCloudRequest
extends Object
implements Runnable

An asynchronous cloud request is set to the cloud, but we do not require a reply. This allows status updates to be executed in a separate thread without the need to wait.


Constructor Summary
AsynchronousCloudRequest(URL url)
          Construct the cloud request.
AsynchronousCloudRequest(URL url, Map<String,String> params)
          Construct the cloud request.
 
Method Summary
 Map<String,String> getParams()
           
 URL getUrl()
           
 void run()
          Ran by the thread to perform the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousCloudRequest

public AsynchronousCloudRequest(URL url)
Construct the cloud request. Used for a simple GET request.

Parameters:
url - The URL this request is to go to.

AsynchronousCloudRequest

public AsynchronousCloudRequest(URL url,
                                Map<String,String> params)
Construct the cloud request. Used for a POST request.

Parameters:
url - The URL this request goes to.
params - The POST params.
Method Detail

getParams

public Map<String,String> getParams()
Returns:
The POST params.

getUrl

public URL getUrl()
Returns:
The URL this request is going to.

run

public void run()
Ran by the thread to perform the request.

Specified by:
run in interface Runnable


Copyright © 2011. All Rights Reserved.