com.sun.sgs.profile
Interface ProfileSample

All Known Subinterfaces:
AggregateProfileSample, TaskProfileSample

public interface ProfileSample

A profile sample is a list of long data points.

Profile samples are created with calls to ProfileConsumer.createSample. A sample's name includes both the name supplied to createSample and the value of ProfileConsumer.getName().


Method Summary
 void addSample(long value)
          Adds a new sample to the end of the current list of samples.
 String getName()
          Returns the name of this list of samples.
 

Method Detail

getName

String getName()
Returns the name of this list of samples.

Returns:
the sample's name

addSample

void addSample(long value)
Adds a new sample to the end of the current list of samples.

Parameters:
value - the data sample to be added

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