public String getAdminStatus ( ) throws AtlasServiceException { String result = AtlasBaseClient . UNKNOWN_STATUS ; WebResource resource = getResource ( service , STATUS . getPath ( ) ) ; JSONObject response = callAPIWithResource ( STATUS , resource , null , JSONObject . class ) ; try { result = response . getString ( "Status" ) ; } catch ( JSONException e ) { LOG . error ( "Exception while parsing admin status response. Returned response {}" , response . toString ( ) , e ) ; } return result ; }
Return status of the service instance the client is pointing to .