Package com.sun.identity.shared.stats
Class StatsRunner
- java.lang.Object
-
- com.sun.identity.common.GeneralTaskRunnable
-
- com.sun.identity.common.InstantRunnable
-
- com.sun.identity.common.InstantGroupRunnable
-
- com.sun.identity.shared.stats.StatsRunner
-
- All Implemented Interfaces:
ScheduleableGroupAction,TaskRunnable,Runnable
public class StatsRunner extends InstantGroupRunnable
-
-
Field Summary
-
Fields inherited from class com.sun.identity.common.InstantGroupRunnable
target
-
Fields inherited from class com.sun.identity.common.InstantRunnable
actions, allowToChange, removeElementAfterAction
-
Fields inherited from class com.sun.identity.common.GeneralTaskRunnable
headTask, nextTask, previousTask
-
-
Constructor Summary
Constructors Constructor Description StatsRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddElement(Object obj)Adds an element to this InstantRunnable.voiddoGroupAction(Object obj)The function to be run on the objects when there is time.longgetRunPeriod()Returns the run period of this InstantRunnable.-
Methods inherited from class com.sun.identity.common.InstantGroupRunnable
run
-
Methods inherited from class com.sun.identity.common.InstantRunnable
isEmpty, removeElement, reset
-
Methods inherited from class com.sun.identity.common.GeneralTaskRunnable
cancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPrevious
-
-
-
-
Method Detail
-
addElement
public boolean addElement(Object obj)
Description copied from class:InstantRunnableAdds an element to this InstantRunnable.- Specified by:
addElementin interfaceTaskRunnable- Overrides:
addElementin classInstantRunnable- Parameters:
obj- Element to be added to this InstantRunnable- Returns:
- a boolean to indicate whether the add success
-
getRunPeriod
public long getRunPeriod()
Description copied from class:InstantRunnableReturns the run period of this InstantRunnable.- Specified by:
getRunPeriodin interfaceTaskRunnable- Overrides:
getRunPeriodin classInstantRunnable- Returns:
- -1 means this task doesn't have a run period
-
doGroupAction
public void doGroupAction(Object obj)
Description copied from class:InstantGroupRunnableThe function to be run on the objects when there is time.- Specified by:
doGroupActionin interfaceScheduleableGroupAction- Overrides:
doGroupActionin classInstantGroupRunnable- Parameters:
obj- The object the function act on
-
-