edu.cmu.cs.able.gaugeInfrastructure.RMI
Class RMIGaugeConsumerHandleImp
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeConsumerHandleImp
- All Implemented Interfaces:
- java.rmi.Remote, RMIGaugeConsumerHandle, java.io.Serializable
- public class RMIGaugeConsumerHandleImp
- extends java.rmi.server.UnicastRemoteObject
- implements RMIGaugeConsumerHandle, java.io.Serializable
RMIGaugeConsumerHandleImp is a proxy gauge consumer that acts as if it is the actual
gauge consumer it refers to. It is used to hide the details of how to maintain
the peer-to-peer interaction between a local caller (or client) and a remote
callee (or server).
- Since:
- JDK1.3.1
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
RMIGaugeConsumerHandleImp
public RMIGaugeConsumerHandleImp(RMIGaugeConsumer gaugeConsumer)
throws java.rmi.RemoteException
- Constructor of RMIGaugeConsumerHandleImp
- Parameters:
gaugeConsumer
- The gauge consumer this handle refers to
configureGauge
public void configureGauge(GaugeID theGaugeID,
StringPairVector configParams)
- Configures a gauge.
- Parameters:
theGaugeID
- The GaugeID of the gauge being configuredconfigParams
- the configuration parameters
deleteGauge
public void deleteGauge(GaugeID theGaugeID)
- Deletes a gauge.
- Parameters:
theGaugeID
- The GaugeID of the gauge being deleted
addGauge
public void addGauge(GaugeID theGaugeID,
StringPairVector configParams,
StringPairVector setupParams)
throws java.rmi.RemoteException
- Specified by:
addGauge
in interface RMIGaugeConsumerHandle
addGauge
public void addGauge(GaugeID theGaugeID)
throws java.rmi.RemoteException
- Specified by:
addGauge
in interface RMIGaugeConsumerHandle
getGaugeConsumerUID
public java.lang.String getGaugeConsumerUID()
throws java.rmi.RemoteException
- Returns the UID of this gauge consumer.
- Specified by:
getGaugeConsumerUID
in interface RMIGaugeConsumerHandle
- Returns:
-
connectTo
public java.rmi.Remote connectTo(java.lang.String host,
java.lang.String service)
onReportValue
public void onReportValue(GaugeID gauge,
java.lang.String valueName,
java.lang.String propertyName,
java.lang.String value)
throws java.rmi.RemoteException
- Called when a value is reported
- Specified by:
onReportValue
in interface RMIGaugeConsumerHandle
- Parameters:
gauge
- The GaugeID of the gauge reporting the value
onReportMultipleValues
public void onReportMultipleValues(GaugeControl gauge,
GaugeValueVector values)
throws java.rmi.RemoteException
- Called when multiple values are reported
- Specified by:
onReportMultipleValues
in interface RMIGaugeConsumerHandle
- Parameters:
gauge
- The gauge reporting the valuesvalues
- The values
onReportConfigured
public void onReportConfigured(GaugeID gauge,
StringPairVector configParams)
throws java.rmi.RemoteException
- Called when a configured event is reported
- Specified by:
onReportConfigured
in interface RMIGaugeConsumerHandle
- Parameters:
theGaugeID
- The GaugeID of the gauge reporting the eventconfigParams
- The configuration parameters for this gauge.
onReportDeleted
public void onReportDeleted(GaugeID gauge)
throws java.rmi.RemoteException
- Called when a deleted event is reported
- Specified by:
onReportDeleted
in interface RMIGaugeConsumerHandle
- Parameters:
gauge
- The GaugeID of the gauge reporting the event
onReportCreated
public void onReportCreated(GaugeID gauge)
throws java.rmi.RemoteException
- Called when a created event is reported
- Specified by:
onReportCreated
in interface RMIGaugeConsumerHandle
- Parameters:
gauge
- The GaugeID of the gauge reporting the event