org.eclipse.keyple.calypso.transaction.SamResourceManagerPool.class Maven / Gradle / Ivy
???? 2 ?
6 q r s
t u 4 v 4 w 4 x 4 y z { | } ~
? ? } ? ?
? ? ?
4 ? ? K ? ? } ? ? ?
q ?
?
?
t
? ? ?
? ?
? ? ? } ? ?@?@
? ? } ? ?
? ? ? ?
- ? ? ?
? ? ? ?
? ? ? logger Lorg/slf4j/Logger; samReaderPlugin (Lorg/eclipse/keyple/core/service/Plugin; maxBlockingTime I sleepTime 7(Lorg/eclipse/keyple/core/service/ReaderPoolPlugin;II)V Code LineNumberTable LocalVariableTable this ?Lorg/eclipse/keyple/calypso/transaction/SamResourceManagerPool; samReaderPoolPlugin 2Lorg/eclipse/keyple/core/service/ReaderPoolPlugin;
StackMapTable ? ? allocateSamResource ? AllocationMode InnerClasses ?(Lorg/eclipse/keyple/calypso/transaction/SamResourceManager$AllocationMode;Lorg/eclipse/keyple/calypso/transaction/SamIdentifier;)Lorg/eclipse/keyple/core/card/selection/CardResource; managedSamResource ? ManagedSamResource ULorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource; e Ljava/lang/InterruptedException; samReader (Lorg/eclipse/keyple/core/service/Reader; KLorg/eclipse/keyple/core/service/exception/KeypleAllocationReaderException; allocationMode JLorg/eclipse/keyple/calypso/transaction/SamResourceManager$AllocationMode;
samIdentifier 6Lorg/eclipse/keyple/calypso/transaction/SamIdentifier; maxBlockingDate J noSamResourceLogged Z ? ? ? ? Signature ?(Lorg/eclipse/keyple/calypso/transaction/SamResourceManager$AllocationMode;Lorg/eclipse/keyple/calypso/transaction/SamIdentifier;)Lorg/eclipse/keyple/core/card/selection/CardResource; freeSamResource 8(Lorg/eclipse/keyple/core/card/selection/CardResource;)V samResource 5Lorg/eclipse/keyple/core/card/selection/CardResource; LocalVariableTypeTable jLorg/eclipse/keyple/core/card/selection/CardResource; m(Lorg/eclipse/keyple/core/card/selection/CardResource;)V ()V
SourceFile SamResourceManagerPool.java > n "java/lang/IllegalArgumentException !Sleep time must be greater than 0 > ? (Max Blocking Time must be greater than 0 = < ; < 9 : 7 8 7Create SAM resource manager from reader pool plugin: {} ? ? ? ? ? ? ? ? ? Allocating SAM reader channel... ? ? 0org/eclipse/keyple/core/service/ReaderPoolPlugin ? ? ? ? ? ? ? +Allocation succeeded. SAM resource created. ? Y )No SAM resources available at the moment. ? ? Korg/eclipse/keyple/calypso/exception/CalypsoNoSamResourceAvailableException java/lang/StringBuilder 6No Sam resource could be allocated for samIdentifier + ? ? ? ? ? ? ? java/lang/InterruptedException ? ? ? n $Interrupt exception in Thread.sleep. ? ? 8The allocation process failed. Timeout {} sec exceeded . ? ? ? ? ? 5No Sam resource could be allocated within timeout of ? ? ms for samIdentifier Iorg/eclipse/keyple/core/service/exception/KeypleAllocationReaderException 1Allocation failed due to a plugin technical error > ? Korg/eclipse/keyple/core/service/exception/KeypleAllocationNoReaderException Freeing HSM SAM resource. ? ? ? ? ? =org/eclipse/keyple/calypso/transaction/SamResourceManagerPool ? ? ? 9org/eclipse/keyple/calypso/transaction/SamResourceManager Horg/eclipse/keyple/calypso/transaction/SamResourceManager$AllocationMode ? Sorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource &org/eclipse/keyple/core/service/Reader (Ljava/lang/String;)V &org/eclipse/keyple/core/service/Plugin getName ()Ljava/lang/String; org/slf4j/Logger info '(Ljava/lang/String;Ljava/lang/Object;)V java/lang/System currentTimeMillis ()J debug 4org/eclipse/keyple/calypso/transaction/SamIdentifier getGroupReference allocateReader <(Ljava/lang/String;)Lorg/eclipse/keyple/core/service/Reader; createSamResource (Lorg/eclipse/keyple/core/service/Reader;)Lorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource; NON_BLOCKING trace append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString java/lang/Thread sleep (J)V
currentThread ()Ljava/lang/Thread; interrupt error java/lang/Double valueOf (D)Ljava/lang/Double; (I)Ljava/lang/StringBuilder; *(Ljava/lang/String;Ljava/lang/Throwable;)V 3org/eclipse/keyple/core/card/selection/CardResource getReader *()Lorg/eclipse/keyple/core/service/Reader;
releaseReader +(Lorg/eclipse/keyple/core/service/Reader;)V org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; @org/eclipse/keyple/calypso/transaction/SamResourceManagerDefault ! 4 6 7 8 9 : ; <