org.apfloat.samples
Class OperationServer

java.lang.Object
  extended by org.apfloat.samples.OperationServer

public class OperationServer
extends Object

Server for executing Operations from remote calls. The client should simply send a class implementing the Operation interface serialized through a socket connection. Obviously, the class must exist also in the server's classpath. The server will then simply call Operation.execute() on the operation, and send the resulting object back in the socket, serialized. If an exception occurs during the operation execution, nothing is returned and the socket connection is closed.

Version:
1.4
Author:
Mikko Tommila

Method Summary
static void main(String[] args)
          Command-line entry point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws IOException
Command-line entry point.

Parameters:
args - Command-line parameters.
Throws:
IOException - In case of unexpected network error.