Public Instance Methods : IuSstInvocationHandler
invoke: request at: endpoint
"ACTION
Send @request to @endpoint for processing and return the
result if one is required. It is assumed that @endpoint represents
some remote location. Return an error if one should occur.
PARAMETERS
request : <IuSstRequest>
endpoint : <IuSstRemoteEndpoint>
RETURN VALUE
<Object> | <IuSstError>"
isPassive
"ACTION
Answer true if the receiver is in passive mode. That is, it does
not actively receive and process new requests.
RETURN VALUE
<Boolean>"
isRunning
"ACTION
Answer true if the receiver is currently running. The receiver
is running if it will *actually* autonomously receive and process
requests. Note that this is not just the negation of #isPassive.
RETURN VALUE
<Boolean>"
makeActive
"ACTION
Set the receiver in active mode where it actively seeks out
new work. If we detect that the transport cannot receive
messages then ensure that the receiver is not running a
server process."
makePassive
"ACTION
Set the receiver in passive mode where it does not actively
seek out new work."
reset
"ACTION
Reset the receiver to its initial state (i.e., that when it was
instantiated). Related processes, state and resources will be
released or emptied as required.
If the receiver was running when this method was called then
leave it running afterwards. Clear any pending requests with
an error and reset everything.
NOTES
This method assumes that the receiver has been #shutDown."
resume
"ACTION
Resume the processing of requests if possible. If the receiver
is in passive mode then do nothing. If its endpoint cannot
receive messages then put the receiver in passive mode.
If the receiver is already running then do nothing."
shutDown: result
"ACTION
Shut down the receiver and resume, terminate or basic
terminate any waiting processes depending on the value of
@result. @result can either be an object or a special termination
marker. If it is SstConstants::SstTerminationMarker, then any
waiting processes are terminated using Process>>#terminate.
If it is SstConstants::SstBasicTerminationMarker, waiting
processes are terminated using Process>>#basicTerminate.
Otherwise pending processes are normally resumed with
@result as the returned value.
Callers should be aware that using #terminate causes the
ensure: and ifCurtailed: blocks in the terminated process to
be evaluated. These may do arbitary processing including
remote message sends.
PARAMETERS
result : <Object> | {SstTerminationMarker, SstBasicTerminationMarker}"
suspend
"ACTION
Stop the active processing of incoming messages. Answer
true if the receiver was running at the time and false otherwise.
RETURN VALUES
<Boolean>"
[FIRST] [PREV] [NEXT] [LAST]