|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--com.sun.jaw.impl.server.rmi.NetClassServerImpl
The NetClassServerImpl
class is a basic implementation of a
network class and library server based on the Java remote method invocation
(RMI) system. This class can be used as a standalone server or included as
an m-bean in a Java Dynamic Management agent.
To start the server, type this command:
prompt% java com.sun.jaw.impl.server.rmi.NetClassServerImpl
When starting the server, you have to specify the search paths for locating:
rmi://localhost:1099/NetClassServer
.
If an RMI registry is not running, the server starts one and then registers with it.
The network class and library server works in conjunction with the RMI loader.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
NetClassServerImpl()
Required when using the class server as an m-bean in a Java Dynamic Management agent. |
|
NetClassServerImpl(java.lang.String service,
java.lang.String paths,
java.lang.String lib,
int port,
java.lang.String dirfile)
Required when using the class server as a standalone Java program. |
Method Summary | |
ClassDefinition |
getClass(java.lang.String className)
Searches for the requested Java class on the management server. |
java.util.Vector |
getClassPaths()
Returns the class path currently used by the network class and library server. |
java.lang.String |
getClassVersion()
Returns the version of this class. |
java.util.Vector |
getLibPaths()
Returns the library path currently used by the network class and library server. |
LibraryDefinition |
getLibrary(LibraryDefinition libdef)
Returns a LibraryDefinition from the management server for
the requested library. |
ObjectName |
getName()
|
java.lang.String |
getServiceName()
|
void |
initCmf(Framework cmf,
ObjectName name,
boolean db,
ModificationList list)
For JDMK internal use only. |
boolean |
isActive()
Tests if the NetClassServerImpl is active. |
static void |
main(java.lang.String[] args)
|
void |
performStart()
Activates the NetClassServerImpl . |
void |
performStop()
Deactivates the NetClassServerImpl . |
void |
setClassPaths(java.util.Vector newValue)
Sets the class path to be used by the network class and library server. |
void |
setLibPaths(java.util.Vector newValue)
Sets the library path to be used by the network class and library server. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NetClassServerImpl() throws java.rmi.RemoteException
public NetClassServerImpl(java.lang.String service, java.lang.String paths, java.lang.String lib, int port, java.lang.String dirfile) throws java.rmi.RemoteException
Method Detail |
public static void main(java.lang.String[] args)
public void initCmf(Framework cmf, ObjectName name, boolean db, ModificationList list) throws InstanceAlreadyExistException, java.lang.IllegalArgumentException
Initializes the NetClassServer
service.
This method declares the object specified to an instance of the core
management framework. The name of the object must contain:
agent
- The core management framework to register the service with.name
- Object name.db
- Indicates if persistent storage is required.list
- The modification list to use for setting up parameters.public ClassDefinition getClass(java.lang.String className) throws java.rmi.RemoteException, java.io.IOException, java.lang.ClassNotFoundException
como
and
each path is searched in turn for the requested class.public LibraryDefinition getLibrary(LibraryDefinition libdef) throws java.rmi.RemoteException, java.io.IOException, NoSuchLibException
LibraryDefinition
from the management server for
the requested library. The library definition contains the actual
library bytes as one of its attributes.public void performStart()
NetClassServerImpl
.public void performStop()
NetClassServerImpl
.public boolean isActive()
NetClassServerImpl
is active.public java.lang.String getClassVersion()
public java.util.Vector getClassPaths() throws java.rmi.RemoteException
public void setClassPaths(java.util.Vector newValue) throws java.rmi.RemoteException
public java.util.Vector getLibPaths() throws java.rmi.RemoteException
public void setLibPaths(java.util.Vector newValue) throws java.rmi.RemoteException
public ObjectName getName()
public java.lang.String getServiceName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |