sds
Class DistributedClientObject

java.lang.Object
  extended by sds.DistributedObject
      extended by sds.DistributedClientObject

public abstract class DistributedClientObject
extends DistributedObject

Defines client-oriented distributed objects. These objects are only able to deliver messages (and cannot receive messages)

Author:
ncottin
See Also:
DistributedServerObject

Constructor Summary
DistributedClientObject()
           Creates a client-oriented distributed object able to deliver messages to server-oriented distributed objects
 
Method Summary
 void run(int port, boolean daemon)
           This operation must not be used as it raises a ProcessException
 boolean runsAsServer()
           Checks if this distributed object can receive message
 
Methods inherited from class sds.DistributedObject
createReference, deliver, deliver, getExpectedResponseInfo, getManager, getReference, run, setDefaultReference, setManager, setReference, terminate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedClientObject

public DistributedClientObject()

Creates a client-oriented distributed object able to deliver messages to server-oriented distributed objects

Method Detail

runsAsServer

public final boolean runsAsServer()

Checks if this distributed object can receive message

Specified by:
runsAsServer in class DistributedObject
Returns:
false as this distributed object cannot be used as a server

run

public final void run(int port,
                      boolean daemon)
               throws SdsException

This operation must not be used as it raises a ProcessException

Specified by:
run in class DistributedObject
Parameters:
port - any value
daemon - any boolean value
Throws:
SdsException - always raised as this object is not a server