Package org.apfloat.samples
Class OperationServer
java.lang.Object
org.apfloat.samples.OperationServer
Server for executing
Operation
s 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.9.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static int
private static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
-
ERROR
private static final int ERROR- See Also:
-
WARNING
private static final int WARNING- See Also:
-
INFO
private static final int INFO- See Also:
-
DEBUG
private static final int DEBUG- See Also:
-
messageLevel
private static int messageLevel
-
-
Constructor Details
-
OperationServer
private OperationServer()
-
-
Method Details
-
main
Command-line entry point.- Parameters:
args
- Command-line parameters.- Throws:
IOException
- In case of unexpected network error.
-
warning
-
info
-
debug
-