com.huawei.opengauss.jdbc.hostchooser.GlobalHostStatusTracker.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opengaussjdbc Show documentation
Show all versions of opengaussjdbc Show documentation
HuaweiCloud JDBC for GaussDB
The newest version!
???? 4 ? =com/huawei/opengauss/jdbc/hostchooser/GlobalHostStatusTracker java/lang/Object GlobalHostStatusTracker.java Lcom/huawei/opengauss/jdbc/hostchooser/GlobalHostStatusTracker$HostSpecStatus HostSpecStatus
hostStatusMap Ljava/util/Map; ?Ljava/util/Map; ()V
this ?Lcom/huawei/opengauss/jdbc/hostchooser/GlobalHostStatusTracker; reportHostStatus t(Lcom/huawei/opengauss/jdbc/util/HostSpec;Lcom/huawei/opengauss/jdbc/hostchooser/HostStatus;Ljava/util/Properties;)V java/lang/System currentTimeMillis ()J
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; ,(Lcom/huawei/opengauss/jdbc/util/HostSpec;)V "
# put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; % & ' 'com/huawei/opengauss/jdbc/util/HostSpec ) 0com/huawei/opengauss/jdbc/hostchooser/HostStatus + java/util/Properties - status 2Lcom/huawei/opengauss/jdbc/hostchooser/HostStatus; / 0 1 lastUpdated J 3 4 5 observationState ?(Ljava/util/Properties;Lcom/huawei/opengauss/jdbc/hostchooser/HostStatus;Lcom/huawei/opengauss/jdbc/hostchooser/HostStatus;Lcom/huawei/opengauss/jdbc/util/HostSpec;)V 7 8
9 java/lang/Throwable ; originalHostStatus hostSpecStatus NLcom/huawei/opengauss/jdbc/hostchooser/GlobalHostStatusTracker$HostSpecStatus; hostSpec )Lcom/huawei/opengauss/jdbc/util/HostSpec;
hostStatus prop Ljava/util/Properties; now Secondary F 0 , G Master I 0 , J toString ()Ljava/lang/String; L M
* N 1com/huawei/opengauss/jdbc/GlobalConnectionTracker P closeOldConnection +(Ljava/lang/String;Ljava/util/Properties;)V R S
Q T currentHostStatus getCandidateHosts t([Lcom/huawei/opengauss/jdbc/util/HostSpec;Lcom/huawei/opengauss/jdbc/hostchooser/HostRequirement;J)Ljava/util/List; java/util/ArrayList Y (I)V [
Z \ *[Lcom/huawei/opengauss/jdbc/util/HostSpec; ^ 5com/huawei/opengauss/jdbc/hostchooser/HostRequirement ` java/util/List b allowConnectingTo 5(Lcom/huawei/opengauss/jdbc/hostchooser/HostStatus;)Z d e
a f add (Ljava/lang/Object;)Z h i c j hostInfo hostSpecs targetServerType 7Lcom/huawei/opengauss/jdbc/hostchooser/HostRequirement; hostRecheckMillis
candidates ;Ljava/util/List; Ljava/util/List; latestAllowedUpdate java/util/HashMap v
w Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ?([Lcom/huawei/opengauss/jdbc/util/HostSpec;Lcom/huawei/opengauss/jdbc/hostchooser/HostRequirement;J)Ljava/util/List;
SourceFile InnerClasses !
y
z / *? ? { | z y c? 7? Y:² *? ! ? :? ? Y*? $:? *? ( W+N? ? 2N+? 2? 6,-+*? :ç :??? W Z Z _ Z { R 7 = 0 : > ? @ = 0 c @ A c B 0 c C D b = 0 ^ E 4 | 6
! " # $ ) % 5 &