@Test public void testMultipleServiceStatusCallback() { ServiceStatus.MultipleCallbackServiceStatusCallback onlyGood = new ServiceStatus.MultipleCallbackServiceStatusCallback(ImmutableList.of(ALWAYS_GOOD)); assertEquals(onlyGood.getServiceStatus(), ServiceStatus.Status.GOOD); ServiceStatus.MultipleCallbackServiceStatusCallback onlyBad = new ServiceStatus.MultipleCallbackServiceStatusCallback(ImmutableList.of(ALWAYS_BAD)); assertEquals(onlyBad.getServiceStatus(), ServiceStatus.Status.BAD); ServiceStatus.MultipleCallbackServiceStatusCallback onlyStarting = new ServiceStatus.MultipleCallbackServiceStatusCallback(ImmutableList.of(ALWAYS_STARTING)); assertEquals(onlyStarting.getServiceStatus(), ServiceStatus.Status.STARTING); ServiceStatus.MultipleCallbackServiceStatusCallback goodAndStarting = new ServiceStatus.MultipleCallbackServiceStatusCallback(ImmutableList.of(ALWAYS_GOOD, ALWAYS_STARTING)); assertEquals(goodAndStarting.getServiceStatus(), ServiceStatus.Status.STARTING); ServiceStatus.MultipleCallbackServiceStatusCallback goodStartingAndBad = new ServiceStatus.MultipleCallbackServiceStatusCallback( ImmutableList.of(ALWAYS_GOOD, ALWAYS_STARTING, ALWAYS_BAD)); assertEquals(goodStartingAndBad.getServiceStatus(), ServiceStatus.Status.STARTING); }
public static Status getServiceStatus() { return getServiceStatus(serviceStatusCallback); }
ServiceStatus { public static Status getServiceStatus() { return getServiceStatus(serviceStatusCallback); } }
ServiceStatus { public static Status getServiceStatus() { return getServiceStatus(serviceStatusCallback); }  }
ServiceStatus { public static Status getServiceStatus() { return getServiceStatus(serviceStatusCallback); }  static void setServiceStatusCallback(String name, ServiceStatusCallback serviceStatusCallback); static void removeServiceStatusCallback(String name); static Status getServiceStatus(); static Status getServiceStatus(String name); static String getStatusDescription(); static String getStatusDescription(String name); static Map<String, Map<String, String>> getServiceStatusMap(); }
ServiceStatus { public static Status getServiceStatus() { return getServiceStatus(serviceStatusCallback); }  static void setServiceStatusCallback(String name, ServiceStatusCallback serviceStatusCallback); static void removeServiceStatusCallback(String name); static Status getServiceStatus(); static Status getServiceStatus(String name); static String getStatusDescription(); static String getStatusDescription(String name); static Map<String, Map<String, String>> getServiceStatusMap(); static final String STATUS_DESCRIPTION_NONE; static final String STATUS_DESCRIPTION_INIT; static final String STATUS_DESCRIPTION_STARTED; static final String STATUS_DESCRIPTION_SHUTTING_DOWN; static final String STATUS_DESCRIPTION_NO_HELIX_STATE; }