test_class.declarator: mockAuth
test_class.modifier: private
test_class.original_string: private Authentication mockAuth;
test_class.type: Authentication
test_class.var_name: mockAuth
test_class.declarator: defaultSchemeRegistry
test_class.modifier: private
test_class.original_string: private SchemeRegistry defaultSchemeRegistry;
test_class.type: SchemeRegistry
test_class.var_name: defaultSchemeRegistry
test_class.declarator: mockParams
test_class.modifier: private
test_class.original_string: private HttpParams mockParams;
test_class.type: HttpParams
test_class.var_name: mockParams
test_class.declarator: request
test_class.modifier: private
test_class.original_string: private HttpUriRequest request;
test_class.type: HttpUriRequest
test_class.var_name: request
test_class.file: hbc-core/src/test/java/com/twitter/hbc/httpclient/RestartableHttpClientTest.java
test_class.identifier: RestartableHttpClientTest
test_case.body: @Test
    public void testRestart() throws Exception {
      RestartableHttpClient client = new RestartableHttpClient(mockAuth, true, mockParams, defaultSchemeRegistry);
      client.setup();
      client.restart();
      try {
        client.execute(request); // used to crash, https://github.com/twitter/hbc/issues/113
        fail("should not reach here");
      } catch (UnknownHostException e) {
        // expected
      }
    }
test_case.class_method_signature: RestartableHttpClientTest.testRestart()
test_case.full_signature: @Test public void testRestart()
test_case.identifier: testRestart
test_case.invocations: setup restart execute fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRestart()
focal_class.declarator: underlying
focal_class.modifier: private final
focal_class.original_string: private final AtomicReference<HttpClient> underlying;
focal_class.type: AtomicReference<HttpClient>
focal_class.var_name: underlying
focal_class.declarator: auth
focal_class.modifier: private final
focal_class.original_string: private final Authentication auth;
focal_class.type: Authentication
focal_class.var_name: auth
focal_class.declarator: params
focal_class.modifier: private final
focal_class.original_string: private final HttpParams params;
focal_class.type: HttpParams
focal_class.var_name: params
focal_class.declarator: enableGZip
focal_class.modifier: private final
focal_class.original_string: private final boolean enableGZip;
focal_class.type: boolean
focal_class.var_name: enableGZip
focal_class.declarator: schemeRegistry
focal_class.modifier: private final
focal_class.original_string: private final SchemeRegistry schemeRegistry;
focal_class.type: SchemeRegistry
focal_class.var_name: schemeRegistry
focal_class.file: hbc-core/src/main/java/com/twitter/hbc/httpclient/RestartableHttpClient.java
focal_class.identifier: RestartableHttpClient
focal_class.interfaces: implements HttpClient
focal_class.class_method_signature: RestartableHttpClient.RestartableHttpClient(Authentication auth, boolean enableGZip, HttpParams params, SchemeRegistry schemeRegistry)
focal_class.full_signature: public  RestartableHttpClient(Authentication auth, boolean enableGZip, HttpParams params, SchemeRegistry schemeRegistry)
focal_class.identifier: RestartableHttpClient
focal_class.modifiers: public
focal_class.parameters: (Authentication auth, boolean enableGZip, HttpParams params, SchemeRegistry schemeRegistry)
focal_class.signature:  RestartableHttpClient(Authentication auth, boolean enableGZip, HttpParams params, SchemeRegistry schemeRegistry)
focal_class.class_method_signature: RestartableHttpClient.setup()
focal_class.full_signature: public void setup()
focal_class.identifier: setup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setup()
focal_class.class_method_signature: RestartableHttpClient.restart()
focal_class.full_signature: public void restart()
focal_class.identifier: restart
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void restart()
focal_class.class_method_signature: RestartableHttpClient.getParams()
focal_class.full_signature: @Override public HttpParams getParams()
focal_class.identifier: getParams
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: HttpParams
focal_class.signature: HttpParams getParams()
focal_class.class_method_signature: RestartableHttpClient.getConnectionManager()
focal_class.full_signature: @Override public ClientConnectionManager getConnectionManager()
focal_class.identifier: getConnectionManager
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ClientConnectionManager
focal_class.signature: ClientConnectionManager getConnectionManager()
focal_class.class_method_signature: RestartableHttpClient.execute(HttpUriRequest request)
focal_class.full_signature: @Override public HttpResponse execute(HttpUriRequest request)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpUriRequest request)
focal_class.return: HttpResponse
focal_class.signature: HttpResponse execute(HttpUriRequest request)
focal_class.class_method_signature: RestartableHttpClient.execute(HttpUriRequest request, HttpContext context)
focal_class.full_signature: @Override public HttpResponse execute(HttpUriRequest request, HttpContext context)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpUriRequest request, HttpContext context)
focal_class.return: HttpResponse
focal_class.signature: HttpResponse execute(HttpUriRequest request, HttpContext context)
focal_class.class_method_signature: RestartableHttpClient.execute(HttpHost target, HttpRequest request)
focal_class.full_signature: @Override public HttpResponse execute(HttpHost target, HttpRequest request)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpHost target, HttpRequest request)
focal_class.return: HttpResponse
focal_class.signature: HttpResponse execute(HttpHost target, HttpRequest request)
focal_class.class_method_signature: RestartableHttpClient.execute(HttpHost target, HttpRequest request, HttpContext context)
focal_class.full_signature: @Override public HttpResponse execute(HttpHost target, HttpRequest request, HttpContext context)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpHost target, HttpRequest request, HttpContext context)
focal_class.return: HttpResponse
focal_class.signature: HttpResponse execute(HttpHost target, HttpRequest request, HttpContext context)
focal_class.class_method_signature: RestartableHttpClient.execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.full_signature: @Override public T execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpUriRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.return: T
focal_class.signature: T execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.class_method_signature: RestartableHttpClient.execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_class.full_signature: @Override public T execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_class.return: T
focal_class.signature: T execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_class.class_method_signature: RestartableHttpClient.execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.full_signature: @Override public T execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.return: T
focal_class.signature: T execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler)
focal_class.class_method_signature: RestartableHttpClient.execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_class.full_signature: @Override public T execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: (HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_class.return: T
focal_class.signature: T execute(HttpHost target, HttpRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context)
focal_method.body: public void restart() {
      HttpClient old = underlying.get();
      if (old != null) {
        // this will kill all of the connections and release the resources for our old client
        old.getConnectionManager().shutdown();
      }
      setup();
    }
focal_method.class_method_signature: RestartableHttpClient.restart()
focal_method.full_signature: public void restart()
focal_method.identifier: restart
focal_method.invocations: get shutdown getConnectionManager setup
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void restart()