Example usage for org.apache.hadoop.service Service getFailureState

List of usage examples for org.apache.hadoop.service Service getFailureState

Introduction

In this page you can find the example usage for org.apache.hadoop.service Service getFailureState.

Prototype

STATE getFailureState();

Source Link

Document

Get the state in which the failure in #getFailureCause() occurred.

Usage

From source file:org.apache.slider.server.services.workflow.WorkflowServiceTestBase.java

License:Apache License

protected void logService(Service s) {
    log.info(s.toString());/* w  ww .ja va 2  s  . c o  m*/
    Throwable failureCause = s.getFailureCause();
    if (failureCause != null) {
        log.info("Failed in state {} with {}", s.getFailureState(), failureCause);
    }
}