com.sun.sgs.profile
Interface TaskProfileCounter

All Superinterfaces:
ProfileCounter

public interface TaskProfileCounter
extends ProfileCounter

A counter which provides task-local information to ProfileReports.

If the counter is modified during a given task, the ProfileReport for that task will include the modification, and exclude changes made while running other tasks.


Method Summary
 void incrementCount()
          Increments the counter by 1.
 void incrementCount(long value)
          Increments the counter by the given non-negative value.
 
Methods inherited from interface com.sun.sgs.profile.ProfileCounter
getName
 

Method Detail

incrementCount

void incrementCount()
Increments the counter by 1.

Specified by:
incrementCount in interface ProfileCounter
Throws:
IllegalStateException - if this is called outside the scope of a task run through the scheduler

incrementCount

void incrementCount(long value)
Increments the counter by the given non-negative value.

Specified by:
incrementCount in interface ProfileCounter
Parameters:
value - the amount to increment the counter
Throws:
IllegalStateException - if this is called outside the scope of a task run through the scheduler

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved