|
PS/SL Middleware Project Remote Device Access API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cmw.rda.server.DeviceServerBase
The common superclass for all device servers.
Field Summary | |
static boolean |
DEBUG
This field is used internally and applications should not change it. |
Constructor Summary | |
DeviceServerBase(java.lang.String serverName)
Constructs a device server with the specified name. |
Method Summary | |
abstract Data |
get(IOPoint iop,
Data context)
Returns a value at the specified I/O point. |
abstract void |
monitorOff(IOPoint iop,
ValueChangeListener listener)
Cancels a subscription identified by the I/O point and listener. |
abstract void |
monitorOn(IOPoint iop,
ValueChangeListener listener)
Starts a subscription to value at the specified I/O point. |
void |
runServer()
Makes the server available for clients. |
abstract void |
set(IOPoint iop,
Data value,
Data context)
Changes a value at the specified I/O point. |
void |
shutDown()
Deactivates the server. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static boolean DEBUG
Constructor Detail |
public DeviceServerBase(java.lang.String serverName)
runServer
method of the class.
serverName
- the name under which the new server will be registered
with the naming service when activated by the
runServer
call.Method Detail |
public abstract Data get(IOPoint iop, Data context) throws BadParameter, IOError
This method is invoked when a client executes a get
operation
on a device that resides at this server
(see client API
).
IOPoint
public abstract void set(IOPoint iop, Data value, Data context) throws BadParameter, IOError
This method is invoked when a client executes a set
operation
on a device that resides at this server
(see client API
).
IOPoint
public abstract void monitorOn(IOPoint iop, ValueChangeListener listener) throws BadParameter
This method is invoked when a client executes a monitorOn
operation on a device that resides at this server
(see client API
).
iop
- the I/O point identifierlistener
- the "callback" object where to deliver subscription results.public abstract void monitorOff(IOPoint iop, ValueChangeListener listener)
public void runServer() throws InternalException
Each device server must call this method when it is ready to accept client
requests. The method registers the server with the naming service and
enters event loop to receive incoming requests. The method only returns if
shutDown
is called on the server.
public void shutDown()
runServer()
to return.
|
Version 1.0 August 2000 N.Trofimov |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |