|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileCollectorHandle
The object which manages how ProfileCollectors keep track
of which tasks are generating which data.
| Method Summary | |
|---|---|
void |
addListener(TransactionListenerDetail listenerDetail)
Tells the collector about a listener of a transaction when that listener is finished with its work (i.e., after its afterCompletion} method has been called). |
void |
addParticipant(ProfileParticipantDetail participantDetail)
Tells the collector about a participant of a transaction when that participant has finished participating (i.e., has committed, has prepared read-only, or has aborted). |
void |
finishTask(int tryCount)
Tells the collector that the current task associated with the calling thread (as associated by a call to startTask) has now successfully finished. |
void |
finishTask(int tryCount,
Throwable t)
Tells the collector that the current task associated with the calling thread (as associated by a call to startTask) is now
finished and that an exception occured during its execution. |
ProfileCollector |
getCollector()
Returns the underlying profile collector that this interface controls. |
void |
noteTransactional(byte[] transactionId)
Tells the collector that the current task associated with the calling thread (as associated by a call to startTask) is
transactional. |
void |
notifyNodeIdAssigned(long nodeId)
Notifies the collector that the node has been assigned its identifier. |
void |
notifyThreadAdded()
Notifies the collector that a thread has been added to the scheduler. |
void |
notifyThreadRemoved()
Notifies the collector that a thread has been removed from the scheduler. |
void |
setAccessedObjectsDetail(AccessedObjectsDetail detail)
Sets the detail for all objects accessed during the task as reported to the AccessCoordinator. |
void |
startTask(KernelRunnable task,
Identity owner,
long scheduledStartTime,
int readyCount)
Tells the collector that a new task is starting in the context of the calling thread. |
| Method Detail |
|---|
void notifyThreadAdded()
void notifyThreadRemoved()
void notifyNodeIdAssigned(long nodeId)
nodeId - the identifier for the node
void startTask(KernelRunnable task,
Identity owner,
long scheduledStartTime,
int readyCount)
finishTask.
task - the KernelRunnable that is startingowner - the Identity of the task ownerscheduledStartTime - the requested starting time for the taskreadyCount - the number of ready tasks at the schedulervoid noteTransactional(byte[] transactionId)
startTask) is
transactional. This does not mean that all operations of the task
are transactional, but that at least some of the task is run in a
transactional context.
transactionId - the identifier for the transaction
IllegalStateException - if no task is bound to this threadvoid addParticipant(ProfileParticipantDetail participantDetail)
noteTransactional must first have been called in
the context of the current thread.
participantDetail - the detail associated with the participant
IllegalStateException - if no transactional task is bound to
this threadvoid addListener(TransactionListenerDetail listenerDetail)
afterCompletion} method has been called). The
transaction must be the current transaction for the current task,
and therefore noteTransactional must first have been
called in the context of the current thread.
listenerDetail - the detail associated with the listener
IllegalStateException - if no transactional task is bound to
this threadvoid setAccessedObjectsDetail(AccessedObjectsDetail detail)
AccessCoordinator.
detail - all detail of the accessed objects
IllegalStateException - if no transactional task is bound to
this threadvoid finishTask(int tryCount)
startTask) has now successfully finished.
tryCount - the number of times that the task has tried to run
IllegalStateException - if no task is bound to this thread
void finishTask(int tryCount,
Throwable t)
startTask) is now
finished and that an exception occured during its execution.
tryCount - the number of times that the task has tried to runt - the Throwable thrown during task execution
IllegalStateException - if no task is bound to this threadProfileCollector getCollector()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||