|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.profile.ProfileCollectorHandleImpl
public class ProfileCollectorHandleImpl
The portion of a profile collector that allows the kernel to modify the state of a particular collection record (initiates one, finishes one, that sort of thing). Only particular classes are given access to instances of this class by the kernel.
| Constructor Summary | |
|---|---|
ProfileCollectorHandleImpl(ProfileCollectorImpl profileCollector)
Instantiate a ProfileCollectorHandle. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProfileCollectorHandleImpl(ProfileCollectorImpl profileCollector)
profileCollector - the backing profile collector| Method Detail |
|---|
public void notifyThreadAdded()
notifyThreadAdded in interface ProfileCollectorHandlepublic void notifyThreadRemoved()
notifyThreadRemoved in interface ProfileCollectorHandlepublic void notifyNodeIdAssigned(long nodeId)
notifyNodeIdAssigned in interface ProfileCollectorHandlenodeId - the identifier for the node
public void startTask(KernelRunnable task,
Identity owner,
long scheduledStartTime,
int readyCount)
finishTask.
startTask in interface ProfileCollectorHandletask - 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 schedulerpublic void 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.
noteTransactional in interface ProfileCollectorHandletransactionId - the identifier for the transactionpublic void addParticipant(ProfileParticipantDetail participantDetail)
noteTransactional must first have been called in
the context of the current thread.
addParticipant in interface ProfileCollectorHandleparticipantDetail - the detail associated with the participantpublic void 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.
addListener in interface ProfileCollectorHandlelistenerDetail - the detail associated with the listenerpublic void setAccessedObjectsDetail(AccessedObjectsDetail detail)
AccessCoordinator.
setAccessedObjectsDetail in interface ProfileCollectorHandledetail - all detail of the accessed objectspublic void finishTask(int tryCount)
startTask) has now successfully finished.
finishTask in interface ProfileCollectorHandletryCount - the number of times that the task has tried to run
public void finishTask(int tryCount,
Throwable t)
startTask) is now
finished and that an exception occured during its execution.
finishTask in interface ProfileCollectorHandletryCount - the number of times that the task has tried to runt - the Throwable thrown during task executionpublic ProfileCollector getCollector()
getCollector in interface ProfileCollectorHandle
|
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 | |||||||||