Class PolicyTimingEntry
- java.lang.Object
-
- org.forgerock.openam.entitlement.monitoring.PolicyTimingEntry
-
- All Implemented Interfaces:
TimingEntry
public class PolicyTimingEntry extends Object implements TimingEntry
Used to store details on how long a policy evaluation took. If a specific policy evaluation is being recorded then the policy name value will be set. If not, and this timing information pertains instead to the length of time to perform all policy evaluations for a specific resource, the policy name value will be left null.
-
-
Constructor Summary
Constructors Constructor Description PolicyTimingEntry(long duration, String realm, String applicationName, String resourceName, Subject subject)Constructor for non-policy-specific timing events.PolicyTimingEntry(String policyName, long duration, String realm, String applicationName, String resourceName, Subject subject)Constructor for a policy-specific timing event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()Gets the duration of this TimingEntry.StringtoString()String representation of thisPolicyTimingEntry.
-
-
-
Constructor Detail
-
PolicyTimingEntry
public PolicyTimingEntry(long duration, String realm, String applicationName, String resourceName, Subject subject)Constructor for non-policy-specific timing events.- Parameters:
duration- Length of time the evaluation tookrealm- Realm under which the evaluation took placeapplicationName- Application under which the evaluation took placeresourceName- Resource name against which the evaluation took placesubject- Subject against which the evaluation took place
-
PolicyTimingEntry
public PolicyTimingEntry(String policyName, long duration, String realm, String applicationName, String resourceName, Subject subject)
Constructor for a policy-specific timing event.- Parameters:
policyName- Name of the policy evaluatedduration- Length of time the evaluation tookrealm- Realm under which the evaluation took placeapplicationName- Application under which the evaluation took placeresourceName- Resource name against which the evaluation took placesubject- Subject against which the evaluation took place
-
-
Method Detail
-
toString
public String toString()
String representation of thisPolicyTimingEntry. Used to report out the information via the monitoring system.
-
getDuration
public long getDuration()
Gets the duration of this TimingEntry.- Specified by:
getDurationin interfaceTimingEntry- Returns:
- the duration in ms.
-
-