com.ibm.itim.script
Class ScriptProfilingEvent

java.lang.Object
  extended by com.ibm.itim.script.ScriptProfilingEvent

public abstract class ScriptProfilingEvent
extends java.lang.Object

Central class that provides profiling for the script framework.

Since:
ITIM 5.0

Field Summary
static java.lang.String PROFILE_KEY
          Key in scriptframework.properties that determines if the profiling should be turned on.
 
Constructor Summary
ScriptProfilingEvent()
           
 
Method Summary
abstract  void end(boolean success)
          End the profiling and print the results to the trace log (if profiling is turned on).
static ScriptProfilingEvent get(java.lang.String name)
          Return a ScriptProfilingEvent.
static ScriptProfilingEvent getOn(java.lang.String name)
          Return a ScriptProfilingEvent as if profiling is turned on.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROFILE_KEY

public static final java.lang.String PROFILE_KEY
Key in scriptframework.properties that determines if the profiling should be turned on.

See Also:
Constant Field Values
Constructor Detail

ScriptProfilingEvent

public ScriptProfilingEvent()
Method Detail

get

public static ScriptProfilingEvent get(java.lang.String name)
Return a ScriptProfilingEvent. If profiling is turned on then an active event is returned. If profiling is turned off then a null event is returned that does nothing. The null event is a singleton, so no unnecessary memory or time allocating an object is wasted.

Parameters:
name - The name of the host component. To lookup up the language.
Returns:
ScriptProfilingEvent when profiling is on.

getOn

public static ScriptProfilingEvent getOn(java.lang.String name)
Return a ScriptProfilingEvent as if profiling is turned on. This method exists for testing.

Parameters:
name - The name of the host component. To lookup up the language.
Returns:
ScriptProfilingEvent

end

public abstract void end(boolean success)
End the profiling and print the results to the trace log (if profiling is turned on).

Parameters:
success - Did the script execute successfully?


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.