Package chapters.mdc
Class NumberCruncherServer
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
chapters.mdc.NumberCruncherServer
- All Implemented Interfaces:
NumberCruncher
,Serializable
,Remote
A simple NumberCruncher implementation that logs its progress when
factoring numbers. The purpose of the whole exercise is to show the
use of mapped diagnostic contexts in order to distinguish the log
output from different client requests.
- See Also:
-
Field Summary
Fields inherited from class java.rmi.server.RemoteObject
ref
-
Constructor Summary
-
Method Summary
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Constructor Details
-
NumberCruncherServer
- Throws:
RemoteException
-
-
Method Details
-
factor
Description copied from interface:NumberCruncher
Factor a positive integernumber
and return its distinct factor's as an integer array.- Specified by:
factor
in interfaceNumberCruncher
- Throws:
RemoteException
-
delay
-
main
-