|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
jxl.peermi.PeerRemoteObject
jxl.enclosure.peer.ModuleServer
public class ModuleServer
The implementation of the module server.
| Field Summary | |
|---|---|
static java.lang.String |
MODULE_SERVER_BINDING
Name used to bind to PeerRegistry |
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Method Summary | |
|---|---|
byte[] |
findModuleOf(java.lang.String[] classNames)
Find a module containg a class whose name is className |
byte[] |
findUpdate(java.lang.String module,
Version version)
Find the newest version of module |
static ModuleServer |
getInstance()
Return a singleton instance of ModuleServer |
ObjectPair<byte[],Version> |
locate(java.lang.String[] classNames)
Remote method, should not be called by a client |
ObjectPair<byte[],Version> |
update(java.lang.String module,
Version version)
Remote method, should not be called by a client |
| Methods inherited from class jxl.peermi.PeerRemoteObject |
|---|
checkAlive, isAlive, toStub |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jxl.peermi.PeerRemote |
|---|
checkAlive |
| Field Detail |
|---|
public static final java.lang.String MODULE_SERVER_BINDING
PeerRegistry
| Method Detail |
|---|
public static ModuleServer getInstance()
throws java.rmi.RemoteException
java.rmi.RemoteException
public byte[] findUpdate(java.lang.String module,
Version version)
throws java.lang.Exception
module
module - the name of the moduleversion - The current version
module or null if no
version newer than version could be found.
java.lang.Exception
public byte[] findModuleOf(java.lang.String[] classNames)
throws java.lang.Exception
className
className - The name of the class to find.
java.lang.Exception
public final ObjectPair<byte[],Version> locate(java.lang.String[] classNames)
throws java.rmi.RemoteException
locate in interface ModuleServerInterfacejava.rmi.RemoteException
public final ObjectPair<byte[],Version> update(java.lang.String module,
Version version)
throws java.rmi.RemoteException
update in interface ModuleServerInterfacemodule - The name of the module to findversion - The current version
version was found, return a ObjectPair
containing byte[] data of the module, and the Version of that module.
If no such module was found, return null;
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||