|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.distributed.rmi.DistributedServerRMIGeneric
public class DistributedServerRMIGeneric
A distributed server to execute ptolemy actors in a distributed manner. It uses Jini as discovery protocol. It performs the following tasks:
| Red (cxh) |
| Red (kapokasa) |
| Field Summary | |
|---|---|
private java.lang.String |
codebase
Codebase. |
private net.jini.core.entry.Entry[] |
entries
Entries loaded from the config file. |
private net.jini.export.Exporter |
exporter
An abstraction for exporting a single remote object such that it can receive remote method invocations |
private java.lang.String[] |
groups
Groups loaded from the config file. |
private java.rmi.Remote |
proxy
Proxy that allows for RMI calls to the service. |
private static java.lang.String |
SERVER
Entry of the configuration file we want ot load. |
private java.rmi.Remote |
service
Service provided. |
private net.jini.core.lookup.ServiceID |
serviceID
ID of the service. |
private java.io.File |
serviceIdFile
File that stores the serviceID. |
private net.jini.core.discovery.LookupLocator[] |
unicastLocators
UnicastLocators loaded from the config file. |
| Constructor Summary | |
|---|---|
DistributedServerRMIGeneric(java.lang.String configFileName)
Construct a DistributedServerRMIGeneric with a configuration file. |
|
| Method Summary | |
|---|---|
void |
discarded(net.jini.discovery.DiscoveryEvent evt)
Called when one or more lookup service registrars has been discarded. |
void |
discovered(net.jini.discovery.DiscoveryEvent evt)
Called when one or more lookup service registrars has been discovered. |
private void |
getConfiguration(java.lang.String configFileName)
Loads various settings from a configuration file. |
static void |
main(java.lang.String[] args)
Create a new instance of this application, passing it the first command-line argument (configuration file). |
void |
serviceIDNotify(net.jini.core.lookup.ServiceID serviceID)
Required by the ServiceIDListener interface. |
void |
tryRetrieveServiceId(java.io.File serviceIdFile)
Try to load the service ID from file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String SERVER
private java.rmi.Remote proxy
private java.rmi.Remote service
private net.jini.export.Exporter exporter
private java.lang.String[] groups
private net.jini.core.entry.Entry[] entries
private net.jini.core.discovery.LookupLocator[] unicastLocators
private java.io.File serviceIdFile
private java.lang.String codebase
private net.jini.core.lookup.ServiceID serviceID
| Constructor Detail |
|---|
public DistributedServerRMIGeneric(java.lang.String configFileName)
configFileName - The configuration file.| Method Detail |
|---|
public void discarded(net.jini.discovery.DiscoveryEvent evt)
discarded in interface net.jini.discovery.DiscoveryListenerevt - The event that describes the discovered registrars.public void discovered(net.jini.discovery.DiscoveryEvent evt)
discovered in interface net.jini.discovery.DiscoveryListenerevt - The event that describes the discovered registrars.public static void main(java.lang.String[] args)
args - The command-line arguments.public void serviceIDNotify(net.jini.core.lookup.ServiceID serviceID)
serviceIDNotify in interface net.jini.lookup.ServiceIDListenerserviceID - the service ID assigned by the lookup service.public void tryRetrieveServiceId(java.io.File serviceIdFile)
serviceIdFile - name of the file where the serviceID is stored.private void getConfiguration(java.lang.String configFileName)
configFileName - The configuration file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||