test
Class FeedbackServer

java.lang.Object
  extended by sds.DistributedObject
      extended by sds.DistributedServerObject
          extended by test.FeedbackServer

public final class FeedbackServer
extends DistributedServerObject


Constructor Summary
FeedbackServer()
           
 
Method Summary
 void execute()
           Defines this server's default behaviour (i.e. while not receiving messages from other distributed objects)
 void processError(SdsException error)
           Automatically called when DistributedServerObject.receive(Message) returns false or when an SdsException while processing an incoming request
 boolean receive(Message msg)
           Defines the server behavior when a message is received
 void terminateServer()
           Automatically called by DistributedServerObject.terminate()
 
Methods inherited from class sds.DistributedServerObject
isSignatureRequired, run, runsAsServer, terminate
 
Methods inherited from class sds.DistributedObject
createReference, deliver, deliver, getExpectedResponseInfo, getManager, getReference, run, setDefaultReference, setManager, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedbackServer

public FeedbackServer()
Method Detail

execute

public void execute()
Description copied from class: DistributedServerObject

Defines this server's default behaviour (i.e. while not receiving messages from other distributed objects)

Specified by:
execute in class DistributedServerObject

processError

public void processError(SdsException error)
Description copied from class: DistributedServerObject

Automatically called when DistributedServerObject.receive(Message) returns false or when an SdsException while processing an incoming request

Specified by:
processError in class DistributedServerObject

receive

public boolean receive(Message msg)
                throws SdsException
Description copied from class: DistributedServerObject

Defines the server behavior when a message is received

Specified by:
receive in class DistributedServerObject
Parameters:
msg - received message. Must not be null (no checking is necessary when implementing this operation)
Returns:
true if request message content is successfully handled
Throws:
SdsException - an error occurred when retrieving information from the message (or cast)

terminateServer

public void terminateServer()
Description copied from class: DistributedServerObject

Automatically called by DistributedServerObject.terminate()

Specified by:
terminateServer in class DistributedServerObject