Package org.yamcs.sle.provider
Interface SleService
- All Known Implementing Classes:
CltuServiceProvider,RacfServiceProvider,RafServiceProvider,RcfServiceProvider
public interface SleService
This interface has to be implemented by specific service providers.
It is used by the SleProvider to delegate the execution of operation in ACTIVE and READY (i.e. after bind
took place) SLE states.
- Author:
- nm
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Called by theSleProviderwhen the connection has been abruptly terminated.getState()Returns the service state.voidinit(SleProvider provider) Called at the beginning.voidprocessData(com.beanit.jasn1.ber.BerTag berTag, InputStream is) Called each time a message is received from the peer (SLE user) which cannot be processed by theSleProvider.voidvoidunbind()Called by theSleProviderwhen the user sent an UNBIND request.
-
Method Details
-
init
Called at the beginning. to initialize the service.- Parameters:
provider-
-
processData
Called each time a message is received from the peer (SLE user) which cannot be processed by theSleProvider.The messages are not necessary valid. The service can always call the
SleProvider.peerAbort()operation on the provider if it thinks the SLE user went awry.- Throws:
IOException
-
sendStatusReport
void sendStatusReport() -
getState
State getState()Returns the service state.Should be one of
State.READYorState.ACTIVE- Returns:
- the service state.
-
abort
void abort()Called by theSleProviderwhen the connection has been abruptly terminated. The Service has to do necessary cleanup operation. -
unbind
void unbind()Called by theSleProviderwhen the user sent an UNBIND request. The provider will verify that the service is in theState.READYwhen calling this method.
-