Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <ReaderPoolPlugin.h>
Inherits keyple::core::seproxy::ReaderPlugin.
Inherited by keyple::plugin::stub::StubPoolPlugin.
Public Member Functions | |
virtual std::set< std::string > | getReaderGroupReferences ()=0 |
virtual std::shared_ptr< SeReader > | allocateReader (const std::string &groupReference)=0 |
virtual void | releaseReader (std::shared_ptr< SeReader > seReader)=0 |
![]() | |
virtual | ~ReaderPlugin ()=default |
virtual const std::set< std::string > | getReaderNames () const =0 |
virtual ConcurrentMap< const std::string, std::shared_ptr< SeReader > > & | getReaders ()=0 |
virtual const std::shared_ptr< SeReader > | getReader (const std::string &name)=0 |
![]() | |
virtual | ~ProxyElement ()=default |
virtual const std::string & | getName () const =0 |
virtual const std::map< const std::string, const std::string > & | getParameters () const =0 |
virtual void | setParameter (const std::string &key, const std::string &value)=0 |
virtual void | setParameters (const std::map< const std::string, const std::string > ¶meters) |
The ReaderPoolPlugin interface provides methods to handle the access to an undefined number of SeReader resources.
It is typically used to define a ReaderPlugin built on top of an HSM interface that can allocate a large number of virtual reader slots.
A ReaderPoolPlugin can't be observable.
|
pure virtual |
Obtains an available SeReader resource and makes it exclusive to the caller until the releaseReader method is called.
The allocated reader belongs to the group targeted with provided reference.
groupReference | the reference of the group to which the reader belongs (may be null depending on the implementation made) |
KeypleAllocationReaderException | if the allocation failed |
Implemented in keyple::plugin::stub::StubPoolPluginImpl.
|
pure virtual |
Gets a list of group references that will be used as an argument to allocateReader.
A group reference can represent a family of SeReader with all the same characteristics (e.g. SAM with identical key sets).
Implemented in keyple::plugin::stub::StubPoolPluginImpl.
|
pure virtual |
Releases a SeReader previously allocated with allocateReader.
This method must be called as soon as the reader is no longer needed by the caller of allocateReader in order to free the resource.
seReader | the SeReader to be released. |
Implemented in keyple::plugin::stub::StubPoolPluginImpl.