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
ThreadProfiler implementation.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionexecute(FunctionStateContext context) Executes theFunctionState.Obtains theProfiledManagedFunctioninstances.longObtains the start time stamp.longObtains the start time stamp.Obtains theThreadStatefor thisFunctionState.voidprofileManagedFunction(ManagedFunctionLogicMetaData functionMetaData) Profiles execution of aManagedFunction.Methods inherited from class net.officefloor.frame.impl.execute.linkedlistset.AbstractLinkedListSetEntry
getNext, getPrev, setNext, setPrevMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.frame.internal.structure.FunctionState
cancel, getLinkedListSetOwner, getResponsibleTeam, handleEscalation, isRequireThreadStateSafetyMethods inherited from interface net.officefloor.frame.internal.structure.LinkedListSetEntry
getNext, getPrev, setNext, setPrev
-
Method Details
-
profileManagedFunction
Description copied from interface:ThreadProfilerProfiles execution of aManagedFunction.- Specified by:
profileManagedFunctionin interfaceThreadProfiler- Parameters:
functionMetaData-ManagedFunctionLogicMetaDataof theManagedFunctionbeing executed.
-
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
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:
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
Description copied from interface:ProfiledThreadStateObtains theProfiledManagedFunctioninstances.- Specified by:
getProfiledManagedFunctionsin interfaceProfiledThreadState- Returns:
ProfiledManagedFunctioninstances.
-