com.webify.wsf.engine.policy
Class PolicyComputation

java.lang.Object
  extended by com.webify.wsf.engine.policy.PolicyComputation
All Implemented Interfaces:
java.io.Serializable

public final class PolicyComputation
extends java.lang.Object
implements java.io.Serializable

Holds information about how a policy was constructed. Includes data that is useful for debugging and performance testing/debugging.

Version:
$Revision: $
Author:
msanchez
See Also:
Serialized Form

Constructor Summary
PolicyComputation()
           
 
Method Summary
 void addPolicyId(java.lang.String policyId)
           
 long getPolicyBuildTime()
          Gets the total amount of time (ms) that it took to build the policy.
 Context getPolicyContext()
          Gets the context that was used to produce the policy.
 java.util.Set getPolicyIds()
          Gets the set of IDs for the policy rules that were evaluated to create the policy.
 void setPolicyBuildTime(long policyBuildTime)
           
 void setPolicyContext(Context policyContext)
           
 java.lang.String toString()
           
 PolicyComputationDocument toXmlObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyComputation

public PolicyComputation()
Method Detail

getPolicyBuildTime

public long getPolicyBuildTime()
Gets the total amount of time (ms) that it took to build the policy.

Returns:
the total amount of time (ms) that it took to build the policy; -1 indicates an unreported build time

setPolicyBuildTime

public void setPolicyBuildTime(long policyBuildTime)

getPolicyContext

public Context getPolicyContext()
Gets the context that was used to produce the policy.

Returns:
the context used to build the policy

setPolicyContext

public void setPolicyContext(Context policyContext)

addPolicyId

public void addPolicyId(java.lang.String policyId)

getPolicyIds

public java.util.Set getPolicyIds()
Gets the set of IDs for the policy rules that were evaluated to create the policy.

Returns:
the set of IDs for the policy rules that were evaluated; never null

toXmlObject

public PolicyComputationDocument toXmlObject()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2002-2009 IBM. All Rights Reserved.