|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.rmi.ClassServer | +--org.objectweb.proactive.core.rmi.ClassFileServer
The ClassFileServer implements a ClassServer that reads class files from the file system. See the doc for the "Main" method for how to run this server.
Field Summary |
Fields inherited from class org.objectweb.proactive.core.rmi.ClassServer |
DEFAULT_SERVER_BASE_PORT, DEFAULT_SERVER_PORT_INCREMENT, hostname, logger, MAX_RETRY, port |
Constructor Summary | |
ClassFileServer()
Constructs a ClassFileServer. |
|
ClassFileServer(int port)
Constructs a ClassFileServer. |
|
ClassFileServer(int port,
java.lang.String paths)
Constructs a ClassFileServer. |
|
ClassFileServer(java.lang.String paths)
Constructs a ClassFileServer. |
Method Summary | |
protected byte[] |
getBytes(java.lang.String path)
Returns an array of bytes containing the bytecodes for the class represented by the argument path. |
static boolean |
isPortAlreadyBound(int port)
|
static void |
main(java.lang.String[] args)
Main method to create the class server that reads class files. |
Methods inherited from class org.objectweb.proactive.core.rmi.ClassServer |
getHostname, getServerSocketPort, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassFileServer() throws java.io.IOException
public ClassFileServer(int port) throws java.io.IOException
public ClassFileServer(java.lang.String paths) throws java.io.IOException
public ClassFileServer(int port, java.lang.String paths) throws java.io.IOException
port
- the port to bound the server toMethod Detail |
public static boolean isPortAlreadyBound(int port)
public static void main(java.lang.String[] args)
java ClassFileServer [<classpath>] [<port>]
java -Djava.rmi.server.codebase=http://zaphod:2001/ RMIServer
new ClassFileServer(port, classpath);
protected byte[] getBytes(java.lang.String path) throws java.io.IOException, java.lang.ClassNotFoundException
getBytes
in class ClassServer
java.lang.ClassNotFoundException
- if the class corresponding
to path could not be loaded.
java.io.IOException
- if error occurs reading the class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |