class FieldAgent implements IOFogModule {

    private boolean ping() {
    	logDebug("Started Ping");
        if (notProvisioned()) {
        	logInfo("Finished Ping : " + false);
            return false;
        }

        try {
            if (orchestrator.ping()) {
                StatusReporter.setFieldAgentStatus().setControllerStatus(OK);
                StatusReporter.setFieldAgentStatus().setControllerVerified(true);
                logDebug("Finished Ping : " + true);
                return true;
            }
        } catch (CertificateException | SSLHandshakeException e) {
            verificationFailed(e);
            logError("Error pinging controller due to broken certificate",
            		new AgentSystemException(e.getMessage(), e));
        } catch (Exception e) {
            verificationFailed(e);
            logError("Error pinging controller", new AgentUserException(e.getMessage(), e));
        }
        logDebug("Finished Ping : " + false);
        return false;
    }

    private  FieldAgent();

}