jxl.enclosure.peer
Interface ModuleServerInterface

All Superinterfaces:
PeerRemote, java.rmi.Remote
All Known Implementing Classes:
ModuleServer

public interface ModuleServerInterface
extends PeerRemote

PeerRemote interface to the ModuleServer

Author:
Alex Lynch

Method Summary
 ObjectPair<byte[],Version> locate(java.lang.String[] classNames)
          Find a module containing a class whose name is className
 ObjectPair<byte[],Version> update(java.lang.String module, Version version)
          Search for a newer version than version of module
 
Methods inherited from interface jxl.peermi.PeerRemote
checkAlive
 

Method Detail

update

ObjectPair<byte[],Version> update(java.lang.String module,
                                  Version version)
                                  throws java.rmi.RemoteException
Search for a newer version than version of module

Parameters:
module - The name of the module to find
version - The current version
Returns:
If a module newer than 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;
Throws:
java.rmi.RemoteException

locate

ObjectPair<byte[],Version> locate(java.lang.String[] classNames)
                                  throws java.rmi.RemoteException
Find a module containing a class whose name is className

Parameters:
className -
Returns:
An ObjectPair containing the byte[] data of the module and its Version, or null if it could not be found
Throws:
java.rmi.RemoteException