
org.eclipse.keyple.calypso.transaction.sammanager.SamResourceManagerDefault.class Maven / Gradle / Ivy
???? 2?
l ? l ? l ?
n ? ?
? ? ?
? ? l ? l ? l ? ?
? l ? ? ? ? ? ? ? ? ?
? ? ? ?
? ? ? ? ? ? ? ? ? ? ?
? ?
? ? ? ? ? ? ? ? ? ? ?
( ' ?
?
.
3
3
?
? <
.
.
. ?! ?"#$%
G ?&
G'
()
G*
F ?
+,-
+.
+/0 ?12@?@
34 ?56
G78
9:; <=>?
l@ABCDE fF GH fIJK
LMNO InnerClasses ManagedSamResource ReaderObserver PluginObserver logger Lorg/slf4j/Logger; localManagedSamResources $Ljava/util/concurrent/ConcurrentMap; Signature ?Ljava/util/concurrent/ConcurrentMap; readerObserver \Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ReaderObserver; samReaderPlugin (Lorg/eclipse/keyple/core/service/Plugin; maxBlockingTime I sleepTime ?(Lorg/eclipse/keyple/core/service/Plugin;Ljava/lang/String;II)V Code LineNumberTable LocalVariableTable e ALorg/eclipse/keyple/core/service/exception/KeypleReaderException;
samReaderName Ljava/lang/String; pluginObserver \Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$PluginObserver; this MLorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault; plugin samReaderFilter p Ljava/util/regex/Pattern; samReadersNames Ljava/util/Set; LocalVariableTypeTable #Ljava/util/Set;
StackMapTableKP ?QRS ? removeResource +(Lorg/eclipse/keyple/core/service/Reader;)V samReader (Lorg/eclipse/keyple/core/service/Reader; managedSamResource `Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ManagedSamResource; allocateSamResourceT AllocationMode ?(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManager$AllocationMode;Lorg/eclipse/keyple/calypso/transaction/sammanager/SamIdentifier;)Lorg/eclipse/keyple/core/card/selection/CardResource; entry Entry Ljava/util/Map$Entry; Ljava/lang/InterruptedException; allocationMode ULorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManager$AllocationMode;
samIdentifier ALorg/eclipse/keyple/calypso/transaction/sammanager/SamIdentifier; maxBlockingDate J noSamResourceLogged Z ?Ljava/util/Map$Entry; ?U-(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManager$AllocationMode;Lorg/eclipse/keyple/calypso/transaction/sammanager/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; jLorg/eclipse/keyple/core/card/selection/CardResource; m(Lorg/eclipse/keyple/core/card/selection/CardResource;)V
initSamReader ?(Lorg/eclipse/keyple/core/service/Reader;Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ReaderObserver;)V ;Lorg/eclipse/keyple/core/service/exception/KeypleException;V ?B
access$000 ()Lorg/slf4j/Logger;
access$100 s(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault;)Ljava/util/concurrent/ConcurrentMap; x0
access$200 ?(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault;Lorg/eclipse/keyple/core/service/Reader;Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ReaderObserver;)V x1 x2 ()V
SourceFile SamResourceManagerDefault.java
Deprecated ? ? v w t u ? ? &java/util/concurrent/ConcurrentHashMap "java/lang/IllegalArgumentException !Sleep time must be greater than 0 ?W (Max Blocking Time must be greater than 0 ? ~ | } Zorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ReaderObserver ?X z { dPLUGINNAME = {} initialize the localManagedSamResources with the {} connected readers filtered by {} java/lang/ObjectPYZ[\]^_`abcdeQfghiRjkSlmno java/lang/Stringpqrsm Add reader: {}tuvw ?org/eclipse/keyple/core/service/exception/KeypleReaderException could not init samReader {}xy Reader not matching: {} 6org/eclipse/keyple/core/service/event/ObservablePlugin Zorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$PluginObserver ?z Add observer PLUGINNAME = {}{}V~? ^org/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ManagedSamResource???m JFreed SAM resource: READER = {}, SAM_REVISION = {}, SAM_SERIAL_NUMBER = {}?? 1org/eclipse/keyple/calypso/transaction/CalypsoSam???????te??? Allocating SAM reader channel...tW?i java/util/Map$Entry?o?m??????? +Allocation succeeded. SAM resource created.?W? ? )No SAM resources available at the moment. Korg/eclipse/keyple/calypso/exception/CalypsoNoSamResourceAvailableException java/lang/StringBuilder 6No Sam resource could be allocated for samIdentifier +????Z?Z??? java/lang/InterruptedException??? ? $Interrupt exception in Thread.sleep.xW 8The allocation process failed. Timeout {} sec exceeded .?a?xu 5No Sam resource could be allocated within timeout of ?? ms for samIdentifier ?v? Freeing local SAM resource.?? %SAM resource not found while freeing.?m Create SAM resource: {}???? 9org/eclipse/keyple/core/service/exception/KeypleException GParameters are not supported for this reader : protocol:TO, mode:shared 6org/eclipse/keyple/core/service/event/ObservableReader 0Add observer and start detection READERNAME = {}{?????? *Sam Reader is not an ObservableReader = {} Korg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault??? Dorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManager Morg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$1 &org/eclipse/keyple/core/service/Plugin java/util/regex/Pattern
java/util/Set java/util/Iterator Sorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManager$AllocationMode java/lang/Throwable &org/eclipse/keyple/core/service/Reader (Ljava/lang/String;)V P(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault;)V getName ()Ljava/lang/String;
getReaders ()Ljava/util/Map;
java/util/Map size ()I java/lang/Integer valueOf (I)Ljava/lang/Integer; org/slf4j/Logger info ((Ljava/lang/String;[Ljava/lang/Object;)V compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; keySet ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; java/util/regex/Matcher matches trace '(Ljava/lang/String;Ljava/lang/Object;)V getReader <(Ljava/lang/String;)Lorg/eclipse/keyple/core/service/Reader; error 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ?(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault;Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ReaderObserver;Ljava/lang/String;)V addObserver? J(Lorg/eclipse/keyple/core/service/event/ObservablePlugin$PluginObserver;)V "java/util/concurrent/ConcurrentMap get &(Ljava/lang/Object;)Ljava/lang/Object; remove
isInfoEnabled getSmartCard <()Lorg/eclipse/keyple/core/card/selection/AbstractSmartCard; getSamRevision 6()Lorg/eclipse/keyple/calypso/command/sam/SamRevision; getSerialNumber ()[B *org/eclipse/keyple/core/util/ByteArrayUtil toHex ([B)Ljava/lang/String; java/lang/System currentTimeMillis ()J entrySet getValue isSamResourceFree
isSamMatching D(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamIdentifier;)Z porg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ManagedSamResource$SamResourceStatus SamResourceStatus BUSY rLorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ManagedSamResource$SamResourceStatus; setSamResourceStatus u(Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ManagedSamResource$SamResourceStatus;)V debug NON_BLOCKING append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ?org/eclipse/keyple/calypso/transaction/sammanager/SamIdentifier getGroupReference toString java/lang/Thread sleep (J)V
currentThread ()Ljava/lang/Thread; interrupt java/lang/Double (D)Ljava/lang/Double; (I)Ljava/lang/StringBuilder; 3org/eclipse/keyple/core/card/selection/CardResource *()Lorg/eclipse/keyple/core/service/Reader; FREE
isCardPresent createSamResource ?(Lorg/eclipse/keyple/core/service/Reader;)Lorg/eclipse/keyple/calypso/transaction/sammanager/SamResourceManagerDefault$ManagedSamResource; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;? J(Lorg/eclipse/keyple/core/service/event/ObservableReader$ReaderObserver;)V Borg/eclipse/keyple/core/service/event/ObservableReader$PollingMode PollingMode REPEATING DLorg/eclipse/keyple/core/service/event/ObservableReader$PollingMode; startCardDetection G(Lorg/eclipse/keyple/core/service/event/ObservableReader$PollingMode;)V org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; Eorg/eclipse/keyple/core/service/event/ObservablePlugin$PluginObserver Eorg/eclipse/keyple/core/service/event/ObservableReader$ReaderObserver ! l n t u v w x y z { | } ~ ? ? ? ? ?
:*? *? Y? ? ?
? Y? ??
? Y
? ?*? *? *+?
*? Y*? ? ? ? Y*?
? SY*?
? ? ? SY,S? ,? :*?
? ? :? :? ? `? ? :? ? ? 8? ? ! **?
? " *? ? ? ": ? $ ? % ? ? &? ! ???+? '? 3? (Y**? ,? ):? **?
? ? ! *?
? '? + ? ? ? ? # ? ~ G / K L N $ O . Q 4 R 9 S > U J V Y X e Y w V | \ ? ] ? ^ ? _ ? ` ? b ? e ? c ? d ? e ? g ? i j n p+ q9 s ? f
? ? ? ? N ? ? ! ? ? : ? ? : ? } : ? ? : ~ : ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? J ? ? ? ? ? l ? ? ?? D ? ? ? ? ? ? ? ?? ? 6 ? ? ? ? g*? +? , ? - ? .M,? R*? +? , ? / W? ? 0 ? 7? 1? Y+? , SY,? 2? 3? 4SY,? 2? 3? 5? 6S? 7 ? ? *
{ | } ' ~ 2 > ? G ? T ? a f ? ? g ? ? g ? ? T ? ? ? ? f ? ? ? ? u 1? 8*? ?aB6? 9? : *? Y:?*? ? ; ? :? ? G? ? <:? = ? .: ? >? $ ,? ?? ? @? A? B? C ð???ç :
?
?+? D? +? E? : ? FY? GY? HI? J,? K? J? L? M?? ? E? : 6*? ?? N? :? P? Q? R? S ? 8!???)? T*? ? Uo? W? X ? FY? GY? HY? J*? ? Z[? J,? K? J? L? M? y ? z ? ? ? ? ? ? ? ? O ? ~ ?
?
? ? ? E ? Q ? Y ? b ? j ? t ? z ? } ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$ ? ? R Q ) ? ? E 5 ? ? ? ? ? 1 ? ? 1 ? ? 1 ? ?
' ? ?
$ ? ? ? E 5 ? ? ? $
? ? ? ?? J? E ?? .J ? x ? ? ? ? ? L*? YM?*? +? \? , ? - ? .N-? ? ]? : -? ^? A?
? _? S ,ç
:,??? A D D H D ? &