com.sun.jaw.impl.server.rmi
Interface NetClassServer

All Known Implementing Classes:
NetClassServerImpl

public abstract interface NetClassServer
extends java.rmi.Remote

The NetClassServer interface represents a class server based on the Java remote method invocation (RMI) system.


Method Summary
 ClassDefinition getClass(java.lang.String className)
          Returns a ClassDefinition from the class server for the requested Java class.
 java.util.Vector getClassPaths()
          Gets the class path currently used by the class server.
 java.util.Vector getLibPaths()
          Gets the library path currently used by the class server when it loads a native library.
 LibraryDefinition getLibrary(LibraryDefinition libdef)
          Returns a LibraryDefinition from the class server for the requested library.
 void setClassPaths(java.util.Vector paths)
          Sets the class path to be used by the class server.
 void setLibPaths(java.util.Vector paths)
          Sets the library path to be used by the class server when it loads a native library.
 

Method Detail

getClass

public ClassDefinition getClass(java.lang.String className)
                         throws java.rmi.RemoteException,
                                java.io.IOException,
                                java.lang.ClassNotFoundException
Returns a ClassDefinition from the class server for the requested Java class. The class definition contains the actual class bytes as one of its attributes.
Throws:
java.rmi.RemoteException - See java.rmi.RemoteException.
java.io.IOException - Signals that an I/O exception of some sort has occurred.
java.lang.ClassNotFoundException - The specified class could not be found.

getClassPaths

public java.util.Vector getClassPaths()
                               throws java.rmi.RemoteException
Gets the class path currently used by the class server.
Throws:
java.rmi.RemoteException - See java.rmi.RemoteException.

setClassPaths

public void setClassPaths(java.util.Vector paths)
                   throws java.rmi.RemoteException
Sets the class path to be used by the class server.
Throws:
java.rmi.RemoteException - See java.rmi.RemoteException.

getLibrary

public LibraryDefinition getLibrary(LibraryDefinition libdef)
                             throws java.rmi.RemoteException,
                                    java.io.IOException,
                                    NoSuchLibException
Returns a LibraryDefinition from the class server for the requested library. The library definition contains the actual library bytes as one of its attributes.
Throws:
java.rmi.RemoteException - See java.rmi.RemoteException.
java.io.IOException - Signals that an I/O exception of some sort has occurred.
NoSuchLibException - The specified native library could not be found.

getLibPaths

public java.util.Vector getLibPaths()
                             throws java.rmi.RemoteException
Gets the library path currently used by the class server when it loads a native library.
Throws:
java.rmi.RemoteException - See java.rmi.RemoteException.

setLibPaths

public void setLibPaths(java.util.Vector paths)
                 throws java.rmi.RemoteException
Sets the library path to be used by the class server when it loads a native library.
Throws:
java.rmi.RemoteException - See java.rmi.RemoteException.