jaugment2.battery
Class BatteryServiceProxy

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--jaugment2.battery.BatteryServiceProxy

public class BatteryServiceProxy
extends java.rmi.server.UnicastRemoteObject
implements net.jini.admin.Administrable, java.io.Serializable, java.rmi.Remote, BatteryServiceProxyIF

See Also:
Serialized Form

Field Summary
private  BatteryService service
           
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
log, logname, serialVersionUID
 
Fields inherited from class java.rmi.server.RemoteObject
ref, serialVersionUID
 
Constructor Summary
BatteryServiceProxy(BatteryService s)
           
 
Method Summary
 net.jini.core.lease.Lease addListener(net.jini.core.event.RemoteEventListener listener, java.rmi.MarshalledObject handback, int registerfor)
          Subscribe for event
 java.lang.Object getAdmin()
          Returns an object that implements our administration-interfaces.
 float getLevel()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
, clone, exportObject, exportObject, exportObject, exportObject, readObject, reexport, 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, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

service

private BatteryService service
Constructor Detail

BatteryServiceProxy

public BatteryServiceProxy(BatteryService s)
                    throws java.rmi.RemoteException
Method Detail

getAdmin

public java.lang.Object getAdmin()
                          throws java.rmi.RemoteException
Returns an object that implements our administration-interfaces.
Specified by:
getAdmin in interface net.jini.admin.Administrable
Throws:
java.rmi.RemoteException -  
See Also:
JoinAdmin

addListener

public net.jini.core.lease.Lease addListener(net.jini.core.event.RemoteEventListener listener,
                                             java.rmi.MarshalledObject handback,
                                             int registerfor)
                                      throws java.rmi.RemoteException,
                                             net.jini.core.lease.LeaseDeniedException,
                                             java.lang.IllegalStateException
Subscribe for event
Specified by:
addListener in interface BatteryServiceProxyIF

getLevel

public float getLevel()
               throws java.rmi.RemoteException
Specified by:
getLevel in interface BatteryServiceProxyIF