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(expected=java.lang.ClassNotFoundException.class)
  	public void throwsClassNotFoundException() throws Exception {
  		configuration.setCheckerType("uk.co.flax.NoSuchDiskSpaceChecker");
  		builder.build();
  	}
test_case.class_method_signature: DiskSpaceCheckerBuilderTest.throwsClassNotFoundException()
test_case.full_signature: @Test(expected=java.lang.ClassNotFoundException.class) public void throwsClassNotFoundException()
test_case.identifier: throwsClassNotFoundException
test_case.invocations: setCheckerType build
test_case.modifiers: @Test(expected=java.lang.ClassNotFoundException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void throwsClassNotFoundException()
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: @SuppressWarnings("unchecked")
  	public DiskSpaceChecker build() throws ClassNotFoundException, DiskSpaceCheckerException {
  		final DiskSpaceChecker checker;
  
  		switch (configuration.getCheckerType()) {
  			case DiskSpaceConfiguration.ELASTICSEARCH_CHECKER:
  				checker = buildElasticsearchChecker(environment);
  				break;
  			case DiskSpaceConfiguration.SOLR_LOCAL_CHECKER:
  				checker = new SolrDiskSpaceChecker();
  				break;
  			case DiskSpaceConfiguration.CLUSTER_CHECKER:
  				checker = buildClusterChecker(environment,
  						(List<String>) configuration.getConfiguration().get(ClusterDiskSpaceChecker.CLUSTER_SERVERS_CONFIG_OPTION));
  				break;
  			default:
  				checker = buildCustomChecker(configuration.getCheckerType());
  		}
  
  		if (checker != null) {
  			checker.configure(configuration.getConfiguration());
  			checker.setThreshold(DiskSpaceThreshold.parse(configuration.getThreshold()));
  			if (checker.requiresHttpClient()) {
  				checker.setHttpClient(client);
  			}
  		}
  
  		return checker;
  	}
focal_method.class_method_signature: DiskSpaceCheckerBuilder.build()
focal_method.full_signature: @SuppressWarnings("unchecked") public DiskSpaceChecker build()
focal_method.identifier: build
focal_method.invocations: getCheckerType buildElasticsearchChecker buildClusterChecker get getConfiguration buildCustomChecker getCheckerType configure getConfiguration setThreshold parse getThreshold requiresHttpClient setHttpClient
focal_method.modifiers: @SuppressWarnings("unchecked") public
focal_method.parameters: ()
focal_method.return: DiskSpaceChecker
focal_method.signature: DiskSpaceChecker build()