com.unboundid.scim.wink
Class ResourceStats

java.lang.Object
  extended by com.unboundid.scim.wink.ResourceStats

public class ResourceStats
extends Object

This class holds various statistics of each SCIM resource being served.


Field Summary
static String DELETE_BAD_REQUEST
          Number of delete requests that failed with code 400 Bad Request.
static String DELETE_CONFLICT
          Number of delete requests that failed with code 409 Conflict.
static String DELETE_FORBIDDEN
          Number of delete requests that failed with code 403 Forbidden.
static String DELETE_INTERNAL_SERVER_ERROR
          Number of delete requests that failed with code 500 Internal Server Error.
static String DELETE_NOT_FOUND
          Number of delete requests that failed with code 404 Not Found.
static String DELETE_NOT_IMPLEMENTED
          Number of delete requests that failed with code 505 Not Implemented.
static String DELETE_OK
          Number of delete requests that were successful.
static String DELETE_UNAUTHORIZED
          Number of delete requests that failed with code 401 Unauthorized.
static String GET_BAD_REQUEST
          Number of get requests that failed with code 400 Bad Request.
static String GET_FORBIDDEN
          Number of get requests that failed with code 403 Forbidden.
static String GET_INTERNAL_SERVER_ERROR
          Number of get requests that failed with code 500 Internal Server Error.
static String GET_NOT_FOUND
          Number of get requests that failed with code 404 Not Found.
static String GET_NOT_IMPLEMENTED
          Number of get requests that failed with code 505 Not Implemented.
static String GET_OK
          Number of get requests that were successful.
static String GET_RESPONSE_JSON
          Number of get requests that responded in JSON format.
static String GET_RESPONSE_XML
          Number of get requests that responded in XML format.
static String GET_UNAUTHORIZED
           
static String PATCH_ACCEPT_JSON
          Number of patch requests that responded in JSON format.
static String PATCH_ACCEPT_XML
          Number of patch requests that responded in XML format.
static String PATCH_BAD_REQUEST
          Number of patch requests that failed with code 400 Bad Request.
static String PATCH_CONFLICT
          Number of patch requests that failed with code 409 Conflict.
static String PATCH_CONTENT_JSON
          Number of patch requests with content in JSON format.
static String PATCH_CONTENT_XML
          Number of patch requests with content in XML format.
static String PATCH_FORBIDDEN
          Number of patch requests that failed with code 403 Forbidden.
static String PATCH_INTERNAL_SERVER_ERROR
          Number of patch requests that failed with code 500 Internal Server Error.
static String PATCH_NOT_FOUND
          Number of patch requests that failed with code 404 Not Found.
static String PATCH_NOT_IMPLEMENTED
          Number of patch requests that failed with code 505 Not Implemented.
static String PATCH_OK
          Number of patch requests that were successful.
static String PATCH_PRECONDITION_FAILED
          Number of patch requests that failed with code 412 Precondition Failed.
static String PATCH_UNAUTHORIZED
          Number of patch requests that failed with code 401 Unauthorized.
static String POST_BAD_REQUEST
          Number of post requests that failed with code 400 Bad Request.
static String POST_CONFLICT
          Number of post requests that failed with code 409 Conflict.
static String POST_CONTENT_JSON
          Number of post requests with content in JSON format.
static String POST_CONTENT_XML
          Number of post requests with content in XML format.
static String POST_FORBIDDEN
          Number of post requests that failed with code 403 Forbidden.
static String POST_INTERNAL_SERVER_ERROR
          Number of post requests that failed with code 500 Internal Server Error.
static String POST_NOT_IMPLEMENTED
          Number of post requests that failed with code 505 Not Implemented.
static String POST_OK
          Number of post requests that were successful.
static String POST_REQUEST_ENTITY_TOO_LARGE
          Number of post requests that failed with code 413 Entity Too Large.
static String POST_RESPONSE_JSON
          Number of post requests that responded in JSON format.
static String POST_RESPONSE_XML
          Number of post requests that responded in XML format.
static String POST_UNAUTHORIZED
          Number of post requests that failed with code 401 Unauthorized.
static String PUT_BAD_REQUEST
          Number of put requests that failed with code 400 Bad Request.
static String PUT_CONFLICT
          Number of put requests that failed with code 409 Conflict.
static String PUT_CONTENT_JSON
          Number of put requests with content in JSON format.
static String PUT_CONTENT_XML
          Number of put requests with content in XML format.
static String PUT_FORBIDDEN
          Number of put requests that failed with code 403 Forbidden.
static String PUT_INTERNAL_SERVER_ERROR
          Number of put requests that failed with code 500 Internal Server Error.
static String PUT_NOT_FOUND
          Number of put requests that failed with code 404 Not Found.
static String PUT_NOT_IMPLEMENTED
          Number of put requests that failed with code 505 Not Implemented.
static String PUT_OK
          Number of put requests that were successful.
static String PUT_PRECONDITION_FAILED
          Number of put requests that failed with code 412 Precondition Failed.
static String PUT_RESPONSE_JSON
          Number of put requests that responded in JSON format.
static String PUT_RESPONSE_XML
          Number of put requests that responded in XML format.
static String PUT_UNAUTHORIZED
          Number of put requests that failed with code 401 Unauthorized.
static String QUERY_BAD_REQUEST
          Number of query requests that failed with code 400 Bad Request.
static String QUERY_FORBIDDEN
          Number of query requests that failed with code 403 Forbidden.
static String QUERY_INTERNAL_SERVER_ERROR
          Number of query requests that failed with code 500 Internal Server Error.
static String QUERY_NOT_FOUND
          Number of query requests that failed with code 404 Not Found.
static String QUERY_NOT_IMPLEMENTED
          Number of query requests that failed with code 505 Not Implemented.
static String QUERY_OK
          Number of query requests that were successful.
static String QUERY_RESPONSE_JSON
          Number of query requests that responded in JSON format.
static String QUERY_RESPONSE_XML
          Number of query requests that responded in XML format.
static String QUERY_UNAUTHORIZED
          Number of query requests that failed with code 401 Unauthorized.
 
Constructor Summary
ResourceStats(String name)
          Create a new ResourceStats instance with the provided name.
 
Method Summary
 String getName()
          Retrieves the name of this ResourceStats instance, usually the name of the SCIM resource being served.
 long getStat(String stat)
          Retrieves a single statistical value.
 Map<String,Long> getStats()
          Retrieves all statistical values that are present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_OK

public static final String QUERY_OK
Number of query requests that were successful.

See Also:
Constant Field Values

QUERY_BAD_REQUEST

public static final String QUERY_BAD_REQUEST
Number of query requests that failed with code 400 Bad Request.

See Also:
Constant Field Values

QUERY_UNAUTHORIZED

public static final String QUERY_UNAUTHORIZED
Number of query requests that failed with code 401 Unauthorized.

See Also:
Constant Field Values

QUERY_FORBIDDEN

public static final String QUERY_FORBIDDEN
Number of query requests that failed with code 403 Forbidden.

See Also:
Constant Field Values

QUERY_NOT_FOUND

public static final String QUERY_NOT_FOUND
Number of query requests that failed with code 404 Not Found.

See Also:
Constant Field Values

QUERY_INTERNAL_SERVER_ERROR

public static final String QUERY_INTERNAL_SERVER_ERROR
Number of query requests that failed with code 500 Internal Server Error.

See Also:
Constant Field Values

QUERY_NOT_IMPLEMENTED

public static final String QUERY_NOT_IMPLEMENTED
Number of query requests that failed with code 505 Not Implemented.

See Also:
Constant Field Values

QUERY_RESPONSE_XML

public static final String QUERY_RESPONSE_XML
Number of query requests that responded in XML format.

See Also:
Constant Field Values

QUERY_RESPONSE_JSON

public static final String QUERY_RESPONSE_JSON
Number of query requests that responded in JSON format.

See Also:
Constant Field Values

GET_OK

public static final String GET_OK
Number of get requests that were successful.

See Also:
Constant Field Values

GET_BAD_REQUEST

public static final String GET_BAD_REQUEST
Number of get requests that failed with code 400 Bad Request.

See Also:
Constant Field Values

GET_UNAUTHORIZED

public static final String GET_UNAUTHORIZED
See Also:
Constant Field Values

GET_FORBIDDEN

public static final String GET_FORBIDDEN
Number of get requests that failed with code 403 Forbidden.

See Also:
Constant Field Values

GET_NOT_FOUND

public static final String GET_NOT_FOUND
Number of get requests that failed with code 404 Not Found.

See Also:
Constant Field Values

GET_INTERNAL_SERVER_ERROR

public static final String GET_INTERNAL_SERVER_ERROR
Number of get requests that failed with code 500 Internal Server Error.

See Also:
Constant Field Values

GET_NOT_IMPLEMENTED

public static final String GET_NOT_IMPLEMENTED
Number of get requests that failed with code 505 Not Implemented.

See Also:
Constant Field Values

GET_RESPONSE_XML

public static final String GET_RESPONSE_XML
Number of get requests that responded in XML format.

See Also:
Constant Field Values

GET_RESPONSE_JSON

public static final String GET_RESPONSE_JSON
Number of get requests that responded in JSON format.

See Also:
Constant Field Values

PUT_OK

public static final String PUT_OK
Number of put requests that were successful.

See Also:
Constant Field Values

PUT_BAD_REQUEST

public static final String PUT_BAD_REQUEST
Number of put requests that failed with code 400 Bad Request.

See Also:
Constant Field Values

PUT_UNAUTHORIZED

public static final String PUT_UNAUTHORIZED
Number of put requests that failed with code 401 Unauthorized.

See Also:
Constant Field Values

PUT_FORBIDDEN

public static final String PUT_FORBIDDEN
Number of put requests that failed with code 403 Forbidden.

See Also:
Constant Field Values

PUT_NOT_FOUND

public static final String PUT_NOT_FOUND
Number of put requests that failed with code 404 Not Found.

See Also:
Constant Field Values

PUT_CONFLICT

public static final String PUT_CONFLICT
Number of put requests that failed with code 409 Conflict.

See Also:
Constant Field Values

PUT_PRECONDITION_FAILED

public static final String PUT_PRECONDITION_FAILED
Number of put requests that failed with code 412 Precondition Failed.

See Also:
Constant Field Values

PUT_INTERNAL_SERVER_ERROR

public static final String PUT_INTERNAL_SERVER_ERROR
Number of put requests that failed with code 500 Internal Server Error.

See Also:
Constant Field Values

PUT_NOT_IMPLEMENTED

public static final String PUT_NOT_IMPLEMENTED
Number of put requests that failed with code 505 Not Implemented.

See Also:
Constant Field Values

PUT_RESPONSE_XML

public static final String PUT_RESPONSE_XML
Number of put requests that responded in XML format.

See Also:
Constant Field Values

PUT_RESPONSE_JSON

public static final String PUT_RESPONSE_JSON
Number of put requests that responded in JSON format.

See Also:
Constant Field Values

PUT_CONTENT_XML

public static final String PUT_CONTENT_XML
Number of put requests with content in XML format.

See Also:
Constant Field Values

PUT_CONTENT_JSON

public static final String PUT_CONTENT_JSON
Number of put requests with content in JSON format.

See Also:
Constant Field Values

POST_OK

public static final String POST_OK
Number of post requests that were successful.

See Also:
Constant Field Values

POST_BAD_REQUEST

public static final String POST_BAD_REQUEST
Number of post requests that failed with code 400 Bad Request.

See Also:
Constant Field Values

POST_UNAUTHORIZED

public static final String POST_UNAUTHORIZED
Number of post requests that failed with code 401 Unauthorized.

See Also:
Constant Field Values

POST_FORBIDDEN

public static final String POST_FORBIDDEN
Number of post requests that failed with code 403 Forbidden.

See Also:
Constant Field Values

POST_CONFLICT

public static final String POST_CONFLICT
Number of post requests that failed with code 409 Conflict.

See Also:
Constant Field Values

POST_REQUEST_ENTITY_TOO_LARGE

public static final String POST_REQUEST_ENTITY_TOO_LARGE
Number of post requests that failed with code 413 Entity Too Large.

See Also:
Constant Field Values

POST_INTERNAL_SERVER_ERROR

public static final String POST_INTERNAL_SERVER_ERROR
Number of post requests that failed with code 500 Internal Server Error.

See Also:
Constant Field Values

POST_NOT_IMPLEMENTED

public static final String POST_NOT_IMPLEMENTED
Number of post requests that failed with code 505 Not Implemented.

See Also:
Constant Field Values

POST_RESPONSE_XML

public static final String POST_RESPONSE_XML
Number of post requests that responded in XML format.

See Also:
Constant Field Values

POST_RESPONSE_JSON

public static final String POST_RESPONSE_JSON
Number of post requests that responded in JSON format.

See Also:
Constant Field Values

POST_CONTENT_XML

public static final String POST_CONTENT_XML
Number of post requests with content in XML format.

See Also:
Constant Field Values

POST_CONTENT_JSON

public static final String POST_CONTENT_JSON
Number of post requests with content in JSON format.

See Also:
Constant Field Values

PATCH_OK

public static final String PATCH_OK
Number of patch requests that were successful.

See Also:
Constant Field Values

PATCH_BAD_REQUEST

public static final String PATCH_BAD_REQUEST
Number of patch requests that failed with code 400 Bad Request.

See Also:
Constant Field Values

PATCH_UNAUTHORIZED

public static final String PATCH_UNAUTHORIZED
Number of patch requests that failed with code 401 Unauthorized.

See Also:
Constant Field Values

PATCH_FORBIDDEN

public static final String PATCH_FORBIDDEN
Number of patch requests that failed with code 403 Forbidden.

See Also:
Constant Field Values

PATCH_NOT_FOUND

public static final String PATCH_NOT_FOUND
Number of patch requests that failed with code 404 Not Found.

See Also:
Constant Field Values

PATCH_CONFLICT

public static final String PATCH_CONFLICT
Number of patch requests that failed with code 409 Conflict.

See Also:
Constant Field Values

PATCH_PRECONDITION_FAILED

public static final String PATCH_PRECONDITION_FAILED
Number of patch requests that failed with code 412 Precondition Failed.

See Also:
Constant Field Values

PATCH_INTERNAL_SERVER_ERROR

public static final String PATCH_INTERNAL_SERVER_ERROR
Number of patch requests that failed with code 500 Internal Server Error.

See Also:
Constant Field Values

PATCH_NOT_IMPLEMENTED

public static final String PATCH_NOT_IMPLEMENTED
Number of patch requests that failed with code 505 Not Implemented.

See Also:
Constant Field Values

PATCH_ACCEPT_XML

public static final String PATCH_ACCEPT_XML
Number of patch requests that responded in XML format.

See Also:
Constant Field Values

PATCH_ACCEPT_JSON

public static final String PATCH_ACCEPT_JSON
Number of patch requests that responded in JSON format.

See Also:
Constant Field Values

PATCH_CONTENT_XML

public static final String PATCH_CONTENT_XML
Number of patch requests with content in XML format.

See Also:
Constant Field Values

PATCH_CONTENT_JSON

public static final String PATCH_CONTENT_JSON
Number of patch requests with content in JSON format.

See Also:
Constant Field Values

DELETE_OK

public static final String DELETE_OK
Number of delete requests that were successful.

See Also:
Constant Field Values

DELETE_BAD_REQUEST

public static final String DELETE_BAD_REQUEST
Number of delete requests that failed with code 400 Bad Request.

See Also:
Constant Field Values

DELETE_UNAUTHORIZED

public static final String DELETE_UNAUTHORIZED
Number of delete requests that failed with code 401 Unauthorized.

See Also:
Constant Field Values

DELETE_FORBIDDEN

public static final String DELETE_FORBIDDEN
Number of delete requests that failed with code 403 Forbidden.

See Also:
Constant Field Values

DELETE_NOT_FOUND

public static final String DELETE_NOT_FOUND
Number of delete requests that failed with code 404 Not Found.

See Also:
Constant Field Values

DELETE_CONFLICT

public static final String DELETE_CONFLICT
Number of delete requests that failed with code 409 Conflict.

See Also:
Constant Field Values

DELETE_INTERNAL_SERVER_ERROR

public static final String DELETE_INTERNAL_SERVER_ERROR
Number of delete requests that failed with code 500 Internal Server Error.

See Also:
Constant Field Values

DELETE_NOT_IMPLEMENTED

public static final String DELETE_NOT_IMPLEMENTED
Number of delete requests that failed with code 505 Not Implemented.

See Also:
Constant Field Values
Constructor Detail

ResourceStats

public ResourceStats(String name)
Create a new ResourceStats instance with the provided name.

Parameters:
name - The name of this ResourceStats instance, usually it should be the name of the SCIM resource being served.
Method Detail

getStat

public long getStat(String stat)
Retrieves a single statistical value.

Parameters:
stat - The name of the statistical value to retrieve.
Returns:
The statistical value or 0 if it is not present.

getStats

public Map<String,Long> getStats()
Retrieves all statistical values that are present.

Returns:
All statistical values that are present.

getName

public String getName()
Retrieves the name of this ResourceStats instance, usually the name of the SCIM resource being served.

Returns:
The name of this ResourceStats instance, usually the name of the SCIM resource being served.


Copyright © 2011-2012 UnboundID. All Rights Reserved.