Class ThreadProfilerImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.linkedlistset.AbstractLinkedListSetEntry<FunctionState,Flow>
-
- net.officefloor.frame.impl.execute.profile.ThreadProfilerImpl
-
- All Implemented Interfaces:
ProfiledThreadState,FunctionState,LinkedListSetEntry<FunctionState,Flow>,ThreadProfiler
public class ThreadProfilerImpl extends AbstractLinkedListSetEntry<FunctionState,Flow> implements ThreadProfiler, ProfiledThreadState
ThreadProfilerimplementation.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionStateexecute(FunctionStateContext context)Executes theFunctionState.java.util.List<ProfiledManagedFunction>getProfiledManagedFunctions()Obtains theProfiledManagedFunctioninstances.longgetStartTimestampMilliseconds()Obtains the start time stamp.longgetStartTimestampNanoseconds()Obtains the start time stamp.ThreadStategetThreadState()Obtains theThreadStatefor thisFunctionState.voidprofileManagedFunction(ManagedFunctionLogicMetaData functionMetaData)Profiles execution of aManagedFunction.-
Methods inherited from class net.officefloor.frame.impl.execute.linkedlistset.AbstractLinkedListSetEntry
getNext, getPrev, setNext, setPrev
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.internal.structure.FunctionState
cancel, getLinkedListSetOwner, getResponsibleTeam, handleEscalation, isRequireThreadStateSafety
-
Methods inherited from interface net.officefloor.frame.internal.structure.LinkedListSetEntry
getNext, getPrev, setNext, setPrev
-
-
-
-
Method Detail
-
profileManagedFunction
public void profileManagedFunction(ManagedFunctionLogicMetaData functionMetaData)
Description copied from interface:ThreadProfilerProfiles execution of aManagedFunction.- Specified by:
profileManagedFunctionin interfaceThreadProfiler- Parameters:
functionMetaData-ManagedFunctionLogicMetaDataof theManagedFunctionbeing executed.
-
getThreadState
public ThreadState getThreadState()
Description copied from interface:FunctionStateObtains the
ThreadStatefor thisFunctionState.This provides access to the
ThreadStatethat thisFunctionStateresides within.- Specified by:
getThreadStatein interfaceFunctionState- Returns:
ThreadStatefor thisFunctionState.
-
execute
public FunctionState execute(FunctionStateContext context) throws java.lang.Throwable
Description copied from interface:FunctionStateExecutes theFunctionState.- Specified by:
executein interfaceFunctionState- Parameters:
context-FunctionStateContextfor executing theFunctionState.- Returns:
- Next
FunctionStateto be executed. May benullto indicate no furtherFunctionStateinstances to execute. - Throws:
java.lang.Throwable- Possible failure ofFunctionStatelogic.
-
getStartTimestampMilliseconds
public long getStartTimestampMilliseconds()
Description copied from interface:ProfiledThreadStateObtains the start time stamp.- Specified by:
getStartTimestampMillisecondsin interfaceProfiledThreadState- Returns:
- Start time stamp in milliseconds.
-
getStartTimestampNanoseconds
public long getStartTimestampNanoseconds()
Description copied from interface:ProfiledThreadStateObtains the start time stamp.- Specified by:
getStartTimestampNanosecondsin interfaceProfiledThreadState- Returns:
- Start time stamp in nanoseconds.
-
getProfiledManagedFunctions
public java.util.List<ProfiledManagedFunction> getProfiledManagedFunctions()
Description copied from interface:ProfiledThreadStateObtains theProfiledManagedFunctioninstances.- Specified by:
getProfiledManagedFunctionsin interfaceProfiledThreadState- Returns:
ProfiledManagedFunctioninstances.
-
-