|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsds.DistributedObject
sds.DistributedServerObject
test.FeedbackServer
public final class FeedbackServer
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 |
---|
public FeedbackServer()
Method Detail |
---|
public void execute()
DistributedServerObject
Defines this server's default behaviour (i.e. while not receiving messages from other distributed objects)
execute
in class DistributedServerObject
public void processError(SdsException error)
DistributedServerObject
Automatically called when DistributedServerObject.receive(Message)
returns
false or when an SdsException
while
processing an incoming request
processError
in class DistributedServerObject
public boolean receive(Message msg) throws SdsException
DistributedServerObject
Defines the server behavior when a message is received
receive
in class DistributedServerObject
msg
- received message. Must not be null (no checking is
necessary when implementing this operation)
SdsException
- an error occurred when retrieving information from
the message (or cast)public void terminateServer()
DistributedServerObject
Automatically called by DistributedServerObject.terminate()
terminateServer
in class DistributedServerObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |