org.eclipse.keyple.calypso.transaction.SamResourceManagerDefault.class Maven / Gradle / Ivy
???? 2?
l ? l ? l ?
n ? ?
? ? ?
? ? l ? l ? l ? ?
? l ? ? ? ? ? ? ? ? ?
? ? ? ?
? ? ? ? ? ? ? ? ? ? ?
? ?
? ? ? ? ? ? ? ? ? ? ? ?
( ' ? ?
.
3
3
?
? <
.
.
. ? ?!"#$
G ?%
G&
'(
G)
F ?
*+,
*-
*./ ?01@?@
23 ?45
G67
89: ;<=>
l?@ABCD fE FG fHIJ
KLMN InnerClasses ManagedSamResource ReaderObserver PluginObserver logger Lorg/slf4j/Logger; localManagedSamResources $Ljava/util/concurrent/ConcurrentMap; Signature ?Ljava/util/concurrent/ConcurrentMap; readerObserver QLorg/eclipse/keyple/calypso/transaction/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 QLorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$PluginObserver; this BLorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault; plugin samReaderFilter p Ljava/util/regex/Pattern; samReadersNames Ljava/util/Set; LocalVariableTypeTable #Ljava/util/Set;
StackMapTableJO ?PQR ? removeResource +(Lorg/eclipse/keyple/core/service/Reader;)V samReader (Lorg/eclipse/keyple/core/service/Reader; managedSamResource ULorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource; allocateSamResourceS AllocationMode ?(Lorg/eclipse/keyple/calypso/transaction/SamResourceManager$AllocationMode;Lorg/eclipse/keyple/calypso/transaction/SamIdentifier;)Lorg/eclipse/keyple/core/card/selection/CardResource; entry Entry Ljava/util/Map$Entry; Ljava/lang/InterruptedException; allocationMode JLorg/eclipse/keyple/calypso/transaction/SamResourceManager$AllocationMode;
samIdentifier 6Lorg/eclipse/keyple/calypso/transaction/SamIdentifier; maxBlockingDate J noSamResourceLogged Z ~Ljava/util/Map$Entry; ?T, ?(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; 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/SamResourceManagerDefault$ReaderObserver;)V ;Lorg/eclipse/keyple/core/service/exception/KeypleException;U ?A
access$000 ()Lorg/slf4j/Logger;
access$100 h(Lorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault;)Ljava/util/concurrent/ConcurrentMap; x0
access$200 ?(Lorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault;Lorg/eclipse/keyple/core/service/Reader;Lorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ReaderObserver;)V x1 x2 ()V
SourceFile SamResourceManagerDefault.java ? ? v w t u ? ? &java/util/concurrent/ConcurrentHashMap "java/lang/IllegalArgumentException !Sleep time must be greater than 0 ?V (Max Blocking Time must be greater than 0 ? ~ | } Oorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ReaderObserver ?W z { dPLUGINNAME = {} initialize the localManagedSamResources with the {} connected readers filtered by {} java/lang/ObjectOXYZ[\]^_`abcdPefghQijRklmn java/lang/Stringopqrl Add reader: {}stuv ?org/eclipse/keyple/core/service/exception/KeypleReaderException could not init samReader {}wx Reader not matching: {} 6org/eclipse/keyple/core/service/event/ObservablePlugin Oorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$PluginObserver ?y Add observer PLUGINNAME = {}z|U}~ Sorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource??l JFreed SAM resource: READER = {}, SAM_REVISION = {}, SAM_SERIAL_NUMBER = {}?? 1org/eclipse/keyple/calypso/transaction/CalypsoSam???????sd??? Allocating SAM reader channel...sV?h java/util/Map$Entry?n?l??????? +Allocation succeeded. SAM resource created.?V? ? )No SAM resources available at the moment. Korg/eclipse/keyple/calypso/exception/CalypsoNoSamResourceAvailableException java/lang/StringBuilder 6No Sam resource could be allocated for samIdentifier +????Y?Y??? java/lang/InterruptedException??? ? $Interrupt exception in Thread.sleep.wV 8The allocation process failed. Timeout {} sec exceeded .?`?wt 5No Sam resource could be allocated within timeout of ?? ms for samIdentifier ?u? Freeing local SAM resource.?? %SAM resource not found while freeing.?l 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 = {}z?????? *Sam Reader is not an ObservableReader = {} @org/eclipse/keyple/calypso/transaction/SamResourceManagerDefault??? 9org/eclipse/keyple/calypso/transaction/SamResourceManager Borg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$1 &org/eclipse/keyple/core/service/Plugin java/util/regex/Pattern
java/util/Set java/util/Iterator Horg/eclipse/keyple/calypso/transaction/SamResourceManager$AllocationMode java/lang/Throwable &org/eclipse/keyple/core/service/Reader (Ljava/lang/String;)V E(Lorg/eclipse/keyple/calypso/transaction/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/SamResourceManagerDefault;Lorg/eclipse/keyple/calypso/transaction/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 9(Lorg/eclipse/keyple/calypso/transaction/SamIdentifier;)Z eorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource$SamResourceStatus SamResourceStatus BUSY gLorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource$SamResourceStatus; setSamResourceStatus j(Lorg/eclipse/keyple/calypso/transaction/SamResourceManagerDefault$ManagedSamResource$SamResourceStatus;)V debug NON_BLOCKING append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 4org/eclipse/keyple/calypso/transaction/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/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**? ,? ):? **?
? ? ! *?
? '? + ? ? ? ? # ? ~ D , H I K $ L . N 4 O 9 P > R J S Y U e V w S | Y ? Z ? [ ? \ ? ] ? _ ? b ? ` ? a ? b ? d ? f g k m+ n9 p ? f
? ? ? ? N ? ? ! ? ? : ? ? : ? } : ? ? : ~ : ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? J ? ? ? ? ? l ? ? ?? D ? ? ? ? ? ? ? ?? ? 6 ? ? ? ? g*? +? , ? - ? .M,? R*? +? , ? / W? ? 0 ? 7? 1? Y+? , SY,? 2? 3? 4SY,? 2? 3? 5? 6S? 7 ? ? *
x y z ' { 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 ? &