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 Type
    Method
    Description
    void
    Called by the SleProvider when the connection has been abruptly terminated.
    Returns the service state.
    void
    init(SleProvider provider)
    Called at the beginning.
    void
    processData(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 the SleProvider.
    void
     
    void
    Called by the SleProvider when the user sent an UNBIND request.
  • Method Details

    • 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 IOException
      Called each time a message is received from the peer (SLE user) which cannot be processed by the SleProvider.

      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.READY or State.ACTIVE

      Returns:
      the service state.
    • abort

      void abort()
      Called by the SleProvider when the connection has been abruptly terminated. The Service has to do necessary cleanup operation.
    • unbind

      void unbind()
      Called by the SleProvider when the user sent an UNBIND request. The provider will verify that the service is in the State.READY when calling this method.