|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.mobilityrpc.quickstart.QuickTask
public class QuickTask
A simplified API for sending and executing one-off tasks (Runnable or Callable objects) on
remote machines.
| Method Summary | ||
|---|---|---|
static
|
execute(ConnectionId connectionId,
Callable<T> callable)
Transfers the given Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine. |
|
static
|
execute(ConnectionId connectionId,
long executionResponseTimeoutMs,
Callable<T> callable)
Transfers the given Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine. |
|
static void |
execute(ConnectionId connectionId,
long executionResponseTimeoutMs,
Runnable runnable)
Transfers the given Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine. |
|
static void |
execute(ConnectionId connectionId,
Runnable runnable)
Transfers the given Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine. |
|
static
|
execute(String address,
Callable<T> callable)
Transfers the given Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine. |
|
static
|
execute(String address,
long executionResponseTimeoutMs,
Callable<T> callable)
Transfers the given Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine. |
|
static void |
execute(String address,
long executionResponseTimeoutMs,
Runnable runnable)
Transfers the given Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine. |
|
static void |
execute(String address,
Runnable runnable)
Transfers the given Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void execute(String address,
Runnable runnable)
Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine.
Connects to the remote machine on the default port 5739.
address - The address (ip or name) of the remote machinerunnable - The object to send and execute on the remote machine
public static void execute(String address,
long executionResponseTimeoutMs,
Runnable runnable)
Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine.
Connects to the remote machine on the default port 5739.
address - The address (ip or name) of the remote machineexecutionResponseTimeoutMs - The timeout in milliseconds to wait for a responserunnable - The object to send and execute on the remote machine
public static void execute(ConnectionId connectionId,
Runnable runnable)
Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine.
connectionId - The address/port of the remote machinerunnable - The object to send and execute on the remote machine
public static void execute(ConnectionId connectionId,
long executionResponseTimeoutMs,
Runnable runnable)
Runnable object, and any objects it references, to the given remote machine,
and executes it (calls the Runnable.run() method) on the remote machine.
connectionId - The address/port of the remote machineexecutionResponseTimeoutMs - The timeout in milliseconds to wait for a responserunnable - The object to send and execute on the remote machine
public static <T> T execute(String address,
Callable<T> callable)
Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine.
Transfers the object returned by the call method on the remote machine, and any objects it
references, back to the local application.
Connects to the remote machine on the default port 5739.
address - The address (ip or name) of the remote machinecallable - The object to send to the remote machine
Callable.call() method on the remote machine (transferred back to
this machine)
public static <T> T execute(String address,
long executionResponseTimeoutMs,
Callable<T> callable)
Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine.
Transfers the object returned by the call method on the remote machine, and any objects it
references, back to the local application.
Connects to the remote machine on the default port 5739.
address - The address (ip or name) of the remote machineexecutionResponseTimeoutMs - The timeout in milliseconds to wait for a responsecallable - The object to send to the remote machine
Callable.call() method on the remote machine (transferred back to
this machine)
public static <T> T execute(ConnectionId connectionId,
Callable<T> callable)
Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine.
Transfers the object returned by the call method on the remote machine, and any objects it
references, back to the local application.
connectionId - The address/port of the remote machinecallable - The object to send to the remote machine
Callable.call() method on the remote machine (transferred back to
this machine)
public static <T> T execute(ConnectionId connectionId,
long executionResponseTimeoutMs,
Callable<T> callable)
Callable object, and any objects it references, to the given remote machine,
and executes it (calls the Callable.call() method) on the remote machine.
Transfers the object returned by the call method on the remote machine, and any objects it
references, back to the local application.
connectionId - The address/port of the remote machineexecutionResponseTimeoutMs - The timeout in milliseconds to wait for a responsecallable - The object to send to the remote machine
Callable.call() method on the remote machine (transferred back to
this machine)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||