test_class.declarator: jersey = mock(JerseyEnvironment.class)
test_class.modifier: private final
test_class.original_string: private final JerseyEnvironment jersey = mock(JerseyEnvironment.class);
test_class.type: JerseyEnvironment
test_class.var_name: jersey
test_class.declarator: healthChecks = mock(HealthCheckRegistry.class)
test_class.modifier: private final
test_class.original_string: private final HealthCheckRegistry healthChecks = mock(HealthCheckRegistry.class);
test_class.type: HealthCheckRegistry
test_class.var_name: healthChecks
test_class.declarator: environment = mock(Environment.class)
test_class.modifier: private final
test_class.original_string: private final Environment environment = mock(Environment.class);
test_class.type: Environment
test_class.var_name: environment
test_class.declarator: httpClient = mock(Client.class)
test_class.modifier: private final
test_class.original_string: private final Client httpClient = mock(Client.class);
test_class.type: Client
test_class.var_name: httpClient
test_class.declarator: configuration = new DiskSpaceConfiguration()
test_class.modifier: private final
test_class.original_string: private final DiskSpaceConfiguration configuration = new DiskSpaceConfiguration();
test_class.type: DiskSpaceConfiguration
test_class.var_name: configuration
test_class.declarator: builder = new DiskSpaceCheckerBuilder(environment, httpClient, configuration)
test_class.modifier: private final
test_class.original_string: private final DiskSpaceCheckerBuilder builder = new DiskSpaceCheckerBuilder(environment, httpClient, configuration);
test_class.type: DiskSpaceCheckerBuilder
test_class.var_name: builder
test_class.file: harahachibu/src/test/java/uk/co/flax/harahachibu/services/DiskSpaceCheckerBuilderTest.java
test_class.identifier: DiskSpaceCheckerBuilderTest
test_case.body: @Test
  	public void buildClusterChecker() throws Exception {
  		configuration.setCheckerType(DiskSpaceConfiguration.CLUSTER_CHECKER);
  		configuration.getConfiguration().put(ClusterDiskSpaceChecker.CLUSTER_SERVERS_CONFIG_OPTION, Arrays.asList("localhost", "192.168.0.100"));
  
  		DiskSpaceChecker checker = builder.build();
  
  		assertThat(checker).isNotNull();
  		assertThat(checker).isInstanceOf(ClusterDiskSpaceChecker.class);
  
  		verify(jersey).register(isA(SetSpaceResource.class));
  		verify(healthChecks).register(isA(String.class), isA(ClusterDiskSpaceManagerHealthCheck.class));
  	}
test_case.class_method_signature: DiskSpaceCheckerBuilderTest.buildClusterChecker()
test_case.full_signature: @Test public void buildClusterChecker()
test_case.identifier: buildClusterChecker
test_case.invocations: setCheckerType put getConfiguration asList build isNotNull assertThat isInstanceOf assertThat register verify isA register verify isA isA
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void buildClusterChecker()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(DiskSpaceCheckerBuilder.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger LOGGER = LoggerFactory.getLogger(DiskSpaceCheckerBuilder.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: environment
focal_class.modifier: private final
focal_class.original_string: private final Environment environment;
focal_class.type: Environment
focal_class.var_name: environment
focal_class.declarator: client
focal_class.modifier: private final
focal_class.original_string: private final Client client;
focal_class.type: Client
focal_class.var_name: client
focal_class.declarator: configuration
focal_class.modifier: private final
focal_class.original_string: private final DiskSpaceConfiguration configuration;
focal_class.type: DiskSpaceConfiguration
focal_class.var_name: configuration
focal_class.file: harahachibu/src/main/java/uk/co/flax/harahachibu/services/DiskSpaceCheckerBuilder.java
focal_class.identifier: DiskSpaceCheckerBuilder
focal_class.class_method_signature: DiskSpaceCheckerBuilder.DiskSpaceCheckerBuilder(Environment environment, Client client, DiskSpaceConfiguration configuration)
focal_class.full_signature: public  DiskSpaceCheckerBuilder(Environment environment, Client client, DiskSpaceConfiguration configuration)
focal_class.identifier: DiskSpaceCheckerBuilder
focal_class.modifiers: public
focal_class.parameters: (Environment environment, Client client, DiskSpaceConfiguration configuration)
focal_class.signature:  DiskSpaceCheckerBuilder(Environment environment, Client client, DiskSpaceConfiguration configuration)
focal_class.class_method_signature: DiskSpaceCheckerBuilder.build()
focal_class.full_signature: @SuppressWarnings("unchecked") public DiskSpaceChecker build()
focal_class.identifier: build
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: DiskSpaceChecker
focal_class.signature: DiskSpaceChecker build()
focal_class.class_method_signature: DiskSpaceCheckerBuilder.buildElasticsearchChecker(Environment environment)
focal_class.full_signature: private DiskSpaceChecker buildElasticsearchChecker(Environment environment)
focal_class.identifier: buildElasticsearchChecker
focal_class.modifiers: private
focal_class.parameters: (Environment environment)
focal_class.return: DiskSpaceChecker
focal_class.signature: DiskSpaceChecker buildElasticsearchChecker(Environment environment)
focal_class.class_method_signature: DiskSpaceCheckerBuilder.buildClusterChecker(Environment environment, List<String> servers)
focal_class.full_signature: private DiskSpaceChecker buildClusterChecker(Environment environment, List<String> servers)
focal_class.identifier: buildClusterChecker
focal_class.modifiers: private
focal_class.parameters: (Environment environment, List<String> servers)
focal_class.return: DiskSpaceChecker
focal_class.signature: DiskSpaceChecker buildClusterChecker(Environment environment, List<String> servers)
focal_class.class_method_signature: DiskSpaceCheckerBuilder.buildCustomChecker(String clazz)
focal_class.full_signature: private DiskSpaceChecker buildCustomChecker(String clazz)
focal_class.identifier: buildCustomChecker
focal_class.modifiers: private
focal_class.parameters: (String clazz)
focal_class.return: DiskSpaceChecker
focal_class.signature: DiskSpaceChecker buildCustomChecker(String clazz)
focal_method.body: private DiskSpaceChecker buildClusterChecker(Environment environment, List<String> servers) {
  		final ClusterDiskSpaceManager clusterManager = new ClusterDiskSpaceManager(new LinkedHashSet<>(servers));
  
  		// Register the /setSpace endpoint
  		environment.jersey().register(new SetSpaceResource(clusterManager));
  
  		// Add the cluster disk manager health check
  		environment.healthChecks().register("Cluster disk manager", new ClusterDiskSpaceManagerHealthCheck(clusterManager));
  
  		// And build the cluster disk space checker
  		return new ClusterDiskSpaceChecker(clusterManager);
  	}
focal_method.class_method_signature: DiskSpaceCheckerBuilder.buildClusterChecker(Environment environment, List<String> servers)
focal_method.full_signature: private DiskSpaceChecker buildClusterChecker(Environment environment, List<String> servers)
focal_method.identifier: buildClusterChecker
focal_method.invocations: register jersey register healthChecks
focal_method.modifiers: private
focal_method.parameters: (Environment environment, List<String> servers)
focal_method.return: DiskSpaceChecker
focal_method.signature: DiskSpaceChecker buildClusterChecker(Environment environment, List<String> servers)