|
|||||||||
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 | +--edu.cmu.cs.able.AcmeStudioBridge.Bridge
Unicast remote object implementing java.rmi.Remote interface.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
Bridge()
Constructs Bridge object and exports it on default port. |
|
Bridge(int port)
Constructs Bridge object and exports it on specified port. |
Method Summary | |
void |
beginChanges()
|
void |
createGauge(GaugeID gaugeID,
StringPairVector setupParams,
StringPairVector mappings)
Tells the bridge to create a gauge and start listening to it. |
void |
deleteGauge(GaugeID gauge)
Tells the bridge to remove a gauge (delete it and stop listening to it). |
void |
endChanges()
|
void |
loadAcmeFile(java.lang.String filename)
Loads a particular Acme description into the bridge. |
void |
loadIntoAcmeStudio(boolean load)
|
static void |
main(java.lang.String[] args)
Main method. |
void |
onReportConfigured(GaugeControl gauge,
StringPairVector configParams)
The callback invoked when a gauge has been configured. |
void |
onReportCreated(GaugeControl gauge)
The callback invoked when a gauge is created. |
void |
onReportDeleted(GaugeControl gauge)
The callback invoked when a gauge is deleted by (another) consumer. |
void |
onReportMultipleValues(GaugeControl gauge,
GaugeValueVector values)
The callback invoked when a gauge reports multiple values in a single reporting action. |
void |
onReportValue(GaugeControl gauge,
java.lang.String valueName,
java.lang.String propertyName,
java.lang.String value)
The callback invoked when a gauge reports a single value. |
static void |
registerToRegistry(java.lang.String name,
java.rmi.Remote obj,
boolean create)
Register Bridge object with the RMI registry. |
void |
run()
|
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 Bridge() throws java.rmi.RemoteException
public Bridge(int port) throws java.rmi.RemoteException
port
- The port for exportingMethod Detail |
public static void registerToRegistry(java.lang.String name, java.rmi.Remote obj, boolean create) throws java.rmi.RemoteException, java.net.MalformedURLException
name
- - name identifying the service in the RMI registrycreate
- - create local registry if necessarypublic void onReportConfigured(GaugeControl gauge, StringPairVector configParams)
onReportConfigured
in interface GaugeConsumer
gauge
- The gauge that was configured.configParams
- The new configuration parameters for the gauge.public void onReportMultipleValues(GaugeControl gauge, GaugeValueVector values)
onReportMultipleValues
in interface GaugeConsumer
gauge
- Theg gauge reporting the valuevalues
- The values reported. Each element of the vector is a
(valueName, propertyName, value) tuple.public void onReportDeleted(GaugeControl gauge)
onReportDeleted
in interface GaugeConsumer
gauge
- The gauge that was deleted.public void onReportCreated(GaugeControl gauge)
onReportCreated
in interface GaugeConsumer
gauge
- The gauge that was created.public void deleteGauge(GaugeID gauge)
deleteGauge
in interface BridgeControl
gauge
- The ID of the gauge to delete.public void loadAcmeFile(java.lang.String filename)
loadAcmeFile
in interface BridgeControl
filename
- The full path of the file containing the Acme description.public void onReportValue(GaugeControl gauge, java.lang.String valueName, java.lang.String propertyName, java.lang.String value)
onReportValue
in interface GaugeConsumer
gauge
- The Gauge that reported the value.valueName
- The name of the value (according to the gauge)propertyName
- The property name that the value is associated with.
The property is the interpretation of the value
according to a high level model. This association is
established when the gauge is created.value
- The value reported by the gauge.public void createGauge(GaugeID gaugeID, StringPairVector setupParams, StringPairVector mappings)
createGauge
in interface BridgeControl
gaugeID
- The ID of the gauge to create.setupParams
- The parameters to set up the gauge.mappings
- The mappings to connect the gauge to the model.public static void main(java.lang.String[] args)
public void loadIntoAcmeStudio(boolean load) throws java.rmi.RemoteException
loadIntoAcmeStudio
in interface BridgeControl
public void beginChanges() throws java.rmi.RemoteException
beginChanges
in interface BridgeControl
public void endChanges() throws java.rmi.RemoteException
endChanges
in interface BridgeControl
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |