Interface LocalServiceServer

All Superinterfaces:
org.eclipse.keyple.core.common.KeypleDistributedLocalServiceExtension

public interface LocalServiceServer extends org.eclipse.keyple.core.common.KeypleDistributedLocalServiceExtension
API of the Local Service Server associated to a Remote Plugin Client to be used in the Reader Server Side configuration mode.

This service must be started by the application installed on a Server having local access to the smart card reader but wishes to delegate all or part of the ticketing processing to a remote application :

  • To start the service, use the class LocalServiceServerFactoryBuilder to build an instance of the factory LocalServiceServerFactory and register it to the Keyple service.
  • To access the service, use the available accessors in the Keyple service, but it is not necessary because this service is only used internally by Keyple.
  • To stop the service, unregister it from the Keyple service.
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.keyple.distributed.AsyncNodeServer
    Gets the associated AsyncNodeServer if the service is configured with an asynchronous network protocol.
    org.eclipse.keyple.distributed.SyncNodeServer
    Gets the associated SyncNodeServer if the service is configured with a synchronous network protocol.
  • Method Details

    • getSyncNode

      org.eclipse.keyple.distributed.SyncNodeServer getSyncNode()
      Gets the associated SyncNodeServer if the service is configured with a synchronous network protocol.
      Returns:
      A not null reference.
      Throws:
      IllegalStateException - If the service is not configured with a synchronous network protocol.
      Since:
      2.0.0
    • getAsyncNode

      org.eclipse.keyple.distributed.AsyncNodeServer getAsyncNode()
      Gets the associated AsyncNodeServer if the service is configured with an asynchronous network protocol.
      Returns:
      A not null reference.
      Throws:
      IllegalStateException - If the service is not configured with an asynchronous network protocol.
      Since:
      2.0.0