test_class.declarator: groupKey = HystrixCommandGroupKey.Factory.asKey("GROUP")
test_class.modifier: private static final
test_class.original_string: private static final HystrixCommandGroupKey groupKey = HystrixCommandGroupKey.Factory.asKey("GROUP");
test_class.type: HystrixCommandGroupKey
test_class.var_name: groupKey
test_class.declarator: threadPoolKey = HystrixThreadPoolKey.Factory.asKey("ThreadPool")
test_class.modifier: private static final
test_class.original_string: private static final HystrixThreadPoolKey threadPoolKey = HystrixThreadPoolKey.Factory.asKey("ThreadPool");
test_class.type: HystrixThreadPoolKey
test_class.var_name: threadPoolKey
test_class.declarator: fooKey = HystrixCommandKey.Factory.asKey("Foo")
test_class.modifier: private static final
test_class.original_string: private static final HystrixCommandKey fooKey = HystrixCommandKey.Factory.asKey("Foo");
test_class.type: HystrixCommandKey
test_class.var_name: fooKey
test_class.declarator: barKey = HystrixCommandKey.Factory.asKey("Bar")
test_class.modifier: private static final
test_class.original_string: private static final HystrixCommandKey barKey = HystrixCommandKey.Factory.asKey("Bar");
test_class.type: HystrixCommandKey
test_class.var_name: barKey
test_class.declarator: collapserKey = HystrixCollapserKey.Factory.asKey("FooCollapser")
test_class.modifier: private static final
test_class.original_string: private static final HystrixCollapserKey collapserKey = HystrixCollapserKey.Factory.asKey("FooCollapser");
test_class.type: HystrixCollapserKey
test_class.var_name: collapserKey
test_class.file: hystrix-serialization/src/test/java/com/netflix/hystrix/serial/SerialHystrixRequestEventsTest.java
test_class.identifier: SerialHystrixRequestEventsTest
test_case.body: @Test
      public void testSingleFailureFallbackSuccess() throws IOException {
          List<HystrixInvokableInfo<?>> executions = new ArrayList<HystrixInvokableInfo<?>>();
          executions.add(new SimpleExecution(fooKey, 102, HystrixEventType.FAILURE, HystrixEventType.FALLBACK_SUCCESS));
          HystrixRequestEvents request = new HystrixRequestEvents(executions);
          String actual = SerialHystrixRequestEvents.toJsonString(request);
          assertEquals("[{\"name\":\"Foo\",\"events\":[\"FAILURE\",\"FALLBACK_SUCCESS\"],\"latencies\":[102]}]", actual);
      }
test_case.class_method_signature: SerialHystrixRequestEventsTest.testSingleFailureFallbackSuccess()
test_case.full_signature: @Test public void testSingleFailureFallbackSuccess()
test_case.identifier: testSingleFailureFallbackSuccess
test_case.invocations: add toJsonString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSingleFailureFallbackSuccess()
focal_class.file: hystrix-serialization/src/main/java/com/netflix/hystrix/serial/SerialHystrixRequestEvents.java
focal_class.identifier: SerialHystrixRequestEvents
focal_class.class_method_signature: SerialHystrixRequestEvents.toBytes(HystrixRequestEvents requestEvents)
focal_class.full_signature: @Deprecated public static byte[] toBytes(HystrixRequestEvents requestEvents)
focal_class.identifier: toBytes
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (HystrixRequestEvents requestEvents)
focal_class.return: byte[]
focal_class.signature: byte[] toBytes(HystrixRequestEvents requestEvents)
focal_class.class_method_signature: SerialHystrixRequestEvents.toJsonString(HystrixRequestEvents requestEvents)
focal_class.full_signature: public static String toJsonString(HystrixRequestEvents requestEvents)
focal_class.identifier: toJsonString
focal_class.modifiers: public static
focal_class.parameters: (HystrixRequestEvents requestEvents)
focal_class.return: String
focal_class.signature: String toJsonString(HystrixRequestEvents requestEvents)
focal_class.class_method_signature: SerialHystrixRequestEvents.serializeRequestEvents(HystrixRequestEvents requestEvents, JsonGenerator json)
focal_class.full_signature: private static void serializeRequestEvents(HystrixRequestEvents requestEvents, JsonGenerator json)
focal_class.identifier: serializeRequestEvents
focal_class.modifiers: private static
focal_class.parameters: (HystrixRequestEvents requestEvents, JsonGenerator json)
focal_class.return: void
focal_class.signature: void serializeRequestEvents(HystrixRequestEvents requestEvents, JsonGenerator json)
focal_class.class_method_signature: SerialHystrixRequestEvents.convertExecutionToJson(JsonGenerator json, HystrixRequestEvents.ExecutionSignature executionSignature, List<Integer> latencies)
focal_class.full_signature: private static void convertExecutionToJson(JsonGenerator json, HystrixRequestEvents.ExecutionSignature executionSignature, List<Integer> latencies)
focal_class.identifier: convertExecutionToJson
focal_class.modifiers: private static
focal_class.parameters: (JsonGenerator json, HystrixRequestEvents.ExecutionSignature executionSignature, List<Integer> latencies)
focal_class.return: void
focal_class.signature: void convertExecutionToJson(JsonGenerator json, HystrixRequestEvents.ExecutionSignature executionSignature, List<Integer> latencies)
focal_class.superclass: extends SerialHystrixMetric
focal_method.body: public static String toJsonString(HystrixRequestEvents requestEvents) {
          StringWriter jsonString = new StringWriter();
  
          try {
              JsonGenerator json = jsonFactory.createGenerator(jsonString);
  
              serializeRequestEvents(requestEvents, json);
          } catch (Exception e) {
              throw new RuntimeException(e);
          }
  
          return jsonString.getBuffer().toString();
      }
focal_method.class_method_signature: SerialHystrixRequestEvents.toJsonString(HystrixRequestEvents requestEvents)
focal_method.full_signature: public static String toJsonString(HystrixRequestEvents requestEvents)
focal_method.identifier: toJsonString
focal_method.invocations: createGenerator serializeRequestEvents toString getBuffer
focal_method.modifiers: public static
focal_method.parameters: (HystrixRequestEvents requestEvents)
focal_method.return: String
focal_method.signature: String toJsonString(HystrixRequestEvents requestEvents)