Package org.yamcs.sle.provider
Interface SleService
-
- All Known Implementing Classes:
CltuServiceProvider,RacfServiceProvider,RafServiceProvider,RcfServiceProvider
public interface SleServiceThis interface has to be implemented by specific service providers.It is used by the
SleProviderto delegate the execution of operation in ACTIVE and READY (i.e. after bind took place) SLE states.- Author:
- nm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabort()Called by theSleProviderwhen the connection has been abruptly terminated.StategetState()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.voidsendStatusReport()voidunbind()Called by theSleProviderwhen the user sent an UNBIND request.
-
-
-
Method Detail
-
init
void init(SleProvider provider)
Called at the beginning. to initialize the service.- Parameters:
provider-
-
processData
void processData(com.beanit.jasn1.ber.BerTag berTag, InputStream is) throws IOExceptionCalled 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.
-
-