io.fabric8.runtime.itests.support.ContainerBuilder.class Maven / Gradle / Ivy
???? 2?
Q ? ?
? P ? P ?
? ? P ?
? ? P ? P ?
P ?
P ? ? ~
? ? ? ?
? ?
? ?
? ?
P ? ?
? ?
? ?
?
P ?
0 ?
0 ?
0 ? 9 ? P ? P ?
? ? ? ? ?
? ?
? ? ?
' ? ?
) ?
?
0
0 $
0
P 9
?
!
P" 9# E$ $% E& ?'
>( E) '? ??*+ CREATE_TIMEOUT Ljava/lang/Long; PROVISION_TIMEOUT CONTAINER_TYPE_PROPERTY Ljava/lang/String;
ConstantValue CONTAINER_NUMBER_PROPERTY optionsBuilder Builder InnerClasses 4Lio/fabric8/api/CreateContainerBasicOptions$Builder; Signature TB; profileNames Ljava/util/Set; #Ljava/util/Set; waitForProvisioning Z assertProvisioningResult provisionTimeOut J executorService &Ljava/util/concurrent/ExecutorService; 7(Lio/fabric8/api/CreateContainerBasicOptions$Builder;)V Code LineNumberTable LocalVariableTable this 4Lio/fabric8/runtime/itests/support/ContainerBuilder; LocalVariableTypeTable ; (TB;)V create 6()Lio/fabric8/runtime/itests/support/ContainerBuilder; 7(I)Lio/fabric8/runtime/itests/support/ContainerBuilder;
minimumNumber I 8(II)Lio/fabric8/runtime/itests/support/ContainerBuilder;
maximumNumber
containerType numberOfContainers
StackMapTable, child ;()Lio/fabric8/runtime/itests/support/ChildContainerBuilder; <(I)Lio/fabric8/runtime/itests/support/ChildContainerBuilder; withName H(Ljava/lang/String;)Lio/fabric8/runtime/itests/support/ContainerBuilder; name P(Ljava/lang/String;)Lio/fabric8/runtime/itests/support/ContainerBuilder; withJvmOpts jvmOpts withResolver resolver withProfiles profile >()Lio/fabric8/runtime/itests/support/ContainerBuilder; getOptionsBuilder 6()Lio/fabric8/api/CreateContainerBasicOptions$Builder; ()TB; getExecutorService (()Ljava/util/concurrent/ExecutorService; prepareAsync S(Lio/fabric8/api/CreateContainerBasicOptions$Builder;)Ljava/util/concurrent/Future;
fabricService Lio/fabric8/api/FabricService; completionService (Ljava/util/concurrent/CompletionService; builder
moduleContext (Lorg/jboss/gravia/runtime/ModuleContext; fabricProxy 0Lio/fabric8/runtime/itests/support/ServiceProxy; ULjava/util/concurrent/CompletionService;>; PLio/fabric8/runtime/itests/support/ServiceProxy;* -./ O(TB;)Ljava/util/concurrent/Future;>; build '(Ljava/util/Collection;)Ljava/util/Set; options i$ Ljava/util/Iterator; futureContainerSet Ljava/util/concurrent/Future; containerSet i e Ljava/lang/Exception; tasks buildersList Ljava/util/Collection;
containers JLjava/util/concurrent/Future;>; +Ljava/util/Set; Ljava/util/Collection;0 ?12 H(Ljava/util/Collection;)Ljava/util/Set; ()Ljava/util/Set; -()Ljava/util/Set; destroy (Ljava/util/Set;)V container Lio/fabric8/api/Container; ex aux# .(Ljava/util/Set;)V stop updated ()V ?Ljava/lang/Object;
SourceFile ContainerBuilder.java i ? java/util/HashSet _ ` T S345 e f67 ? g h Y \ s u s x FABRIC_ITEST_CONTAINER_TYPE89: FABRIC_ITEST_CONTAINER_NUMBER 1;<=>?@,AB ~ ? 7io/fabric8/runtime/itests/support/ChildContainerBuilderC ?DEF 2io/fabric8/api/CreateChildContainerOptions$Builder iG ? ? ?H ?H ?JKB b c d cLMNOPQ io/fabric8/api/FabricService.RSTU .java/util/concurrent/ExecutorCompletionService iV 5io/fabric8/runtime/itests/support/CreateContainerTask iW1XYZ ?0[\2]^_U` 2io/fabric8/api/CreateContainerBasicOptions$Builderabc^defH R SghijklmU
java/util/Setnopqrstut java/lang/Exceptionvwx $io/fabric8/api/ContainerRegistrationyz{|}~ ? ? io/fabric8/api/Containere?? ?????? ?? 2io/fabric8/runtime/itests/support/ContainerBuilder java/lang/Object java/lang/String &org/jboss/gravia/runtime/ModuleContext .io/fabric8/runtime/itests/support/ServiceProxy java/lang/Throwable java/util/Collection &java/util/concurrent/CompletionService java/util/Iterator java/lang/Long longValue ()J java/util/concurrent/Executors newCachedThreadPool java/lang/System getProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; java/lang/Integer parseInt (Ljava/lang/String;)I java/lang/Math max (II)I equals (Ljava/lang/Object;)Z *io/fabric8/api/CreateChildContainerOptions 6()Lio/fabric8/api/CreateChildContainerOptions$Builder; number 7(I)Lio/fabric8/api/CreateContainerBasicOptions$Builder; 7(Lio/fabric8/api/CreateChildContainerOptions$Builder;)V H(Ljava/lang/String;)Lio/fabric8/api/CreateContainerBasicOptions$Builder;? =(Ljava/lang/String;)Lio/fabric8/api/ContainerOptions$Builder; add 'org/jboss/gravia/runtime/RuntimeLocator getRequiredRuntime $()Lorg/jboss/gravia/runtime/Runtime; org/jboss/gravia/runtime/Runtime getModuleContext *()Lorg/jboss/gravia/runtime/ModuleContext; createServiceProxy k(Lorg/jboss/gravia/runtime/ModuleContext;Ljava/lang/Class;)Lio/fabric8/runtime/itests/support/ServiceProxy;
getService ()Ljava/lang/Object; "(Ljava/util/concurrent/Executor;)V U(Lio/fabric8/api/FabricService;Lio/fabric8/api/CreateContainerBasicOptions$Builder;)V submit >(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future; close iterator ()Ljava/util/Iterator; hasNext ()Z next *io/fabric8/api/CreateContainerBasicOptions profiles :(Ljava/util/Set;)Lio/fabric8/api/ContainerOptions$Builder; isEnsembleServer getZookeeperUrl ()Ljava/lang/String; zookeeperUrl java/util/concurrent/TimeUnit MILLISECONDS Ljava/util/concurrent/TimeUnit; poll ?(JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future; java/util/concurrent/Future get addAll (Ljava/util/Collection;)Z valueOf (J)Ljava/lang/Long; +io/fabric8/runtime/itests/support/Provision containerStatus )(Ljava/util/Collection;Ljava/lang/Long;)V provisioningSuccess io/fabric8/api/FabricException launderThrowable 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; 0io/fabric8/runtime/itests/support/ServiceLocator awaitService M(Lorg/jboss/gravia/runtime/ModuleContext;Ljava/lang/Class;)Ljava/lang/Object; java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; getId getContainer .(Ljava/lang/String;)Lio/fabric8/api/Container; (Z)V err Ljava/io/PrintStream; printStackTrace (Ljava/io/PrintStream;)V? 'io/fabric8/api/ContainerOptions$Builder io/fabric8/api/ContainerOptions! P Q
R S T S U V W
X V W Y \ ] ^ _ ` ] a b c d c e f g h i j k ? &*? *? Y? ? *? ? ? *? ? *+?
? l 6 / 3 4 7 % 8 m &