com.flat502.rox.demo
Class RMISyncServerDemo

java.lang.Object
  extended by com.flat502.rox.demo.RMISyncServerDemo
All Implemented Interfaces:
RMIServerInterface

public class RMISyncServerDemo
extends java.lang.Object
implements RMIServerInterface

A demo server illustrating the ProxyingRequestHandler class.


Constructor Summary
RMISyncServerDemo()
           
 
Method Summary
 java.util.Date getDate()
          Get the current date and time.
 java.lang.String getVersionInfo(boolean verbose)
          Fetch a version string.
static void main(java.lang.String[] args)
          Start an instance of this demo server.
 int sum(int[] list)
          Sums an array of integers;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMISyncServerDemo

public RMISyncServerDemo()
Method Detail

sum

public int sum(int[] list)
Sums an array of integers;

Specified by:
sum in interface RMIServerInterface
Parameters:
list - The list of integers
Returns:
The sum of the input list of values.

getVersionInfo

public java.lang.String getVersionInfo(boolean verbose)
Fetch a version string.

Specified by:
getVersionInfo in interface RMIServerInterface
Parameters:
verbose - A flag indicating whether or not the returned version info is verbose.
Returns:
A version string

getDate

public java.util.Date getDate()
Get the current date and time.

Specified by:
getDate in interface RMIServerInterface
Returns:
A new Date instance set to the current date and time.

main

public static void main(java.lang.String[] args)
Start an instance of this demo server.

The following XML-RPC methods are supported by this server:

Parameters:
args - A list of parameters indicating the host/address and port to bind to. These default to localhost and 8080 if not specified.