@Override public Messages.ApplicationLivenessInformationProto getLivenessInformation( Messages.GetApplicationLivenessRequestProto request) throws IOException { ApplicationLivenessInformation info = state.getApplicationLivenessInformation(); return marshall(info); }
@Override public Messages.ApplicationLivenessInformationProto getLivenessInformation( Messages.GetApplicationLivenessRequestProto request) throws IOException { ApplicationLivenessInformation info = state.getApplicationLivenessInformation(); return marshall(info); }
/** * Liveness information for the application as a whole * @return snapshot of liveness */ @GET @Path(LIVE_LIVENESS) @Produces({APPLICATION_JSON}) public ApplicationLivenessInformation getLivenessInformation() { markGet(SLIDER_SUBPATH_APPLICATION, LIVE_LIVENESS); try { return state.getApplicationLivenessInformation(); } catch (Exception e) { throw buildException(LIVE_CONTAINERS, e); } }
/** * Liveness information for the application as a whole * @return snapshot of liveness */ @GET @Path(LIVE_LIVENESS) @Produces({APPLICATION_JSON}) public ApplicationLivenessInformation getLivenessInformation() { markGet(SLIDER_SUBPATH_APPLICATION, LIVE_LIVENESS); try { return state.getApplicationLivenessInformation(); } catch (Exception e) { throw buildException(LIVE_CONTAINERS, e); } }
appState.getApplicationLivenessInformation(); String livestatus = liveness.allRequestsSatisfied ? ALL_CONTAINERS_ALLOCATED
appState.getApplicationLivenessInformation(); String livestatus = liveness.allRequestsSatisfied ? ALL_CONTAINERS_ALLOCATED