@Test public void assertCreateServerStatisticsAPI() { assertThat(JobAPIFactory.createServerStatisticsAPI(ZK_CONNECTION_STRING, "namespace", Optional.<String>absent()), instanceOf(ServerStatisticsAPI.class)); }
public static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest) { return new ServerStatisticsAPIImpl(RegistryCenterFactory.createCoordinatorRegistryCenter(connectString, namespace, digest)); }
JobAPIFactory { public static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest) { return new ServerStatisticsAPIImpl(RegistryCenterFactory.createCoordinatorRegistryCenter(connectString, namespace, digest)); } }
JobAPIFactory { public static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest) { return new ServerStatisticsAPIImpl(RegistryCenterFactory.createCoordinatorRegistryCenter(connectString, namespace, digest)); }  }
JobAPIFactory { public static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest) { return new ServerStatisticsAPIImpl(RegistryCenterFactory.createCoordinatorRegistryCenter(connectString, namespace, digest)); }  static JobSettingsAPI createJobSettingsAPI(final String connectString, final String namespace, final Optional<String> digest); static JobOperateAPI createJobOperateAPI(final String connectString, final String namespace, final Optional<String> digest); static JobStatisticsAPI createJobStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest); static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest); static GlobalSettingsAPI createGlobalSettingsAPI(final String connectString, final String namespace, final Optional<String> digest); }
JobAPIFactory { public static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest) { return new ServerStatisticsAPIImpl(RegistryCenterFactory.createCoordinatorRegistryCenter(connectString, namespace, digest)); }  static JobSettingsAPI createJobSettingsAPI(final String connectString, final String namespace, final Optional<String> digest); static JobOperateAPI createJobOperateAPI(final String connectString, final String namespace, final Optional<String> digest); static JobStatisticsAPI createJobStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest); static ServerStatisticsAPI createServerStatisticsAPI(final String connectString, final String namespace, final Optional<String> digest); static GlobalSettingsAPI createGlobalSettingsAPI(final String connectString, final String namespace, final Optional<String> digest);  }