org.multiverse.utils.monitoring
Class ProfilePublisher

java.lang.Object
  extended by org.multiverse.utils.monitoring.ProfilePublisher
All Implemented Interfaces:
ProfilePublisherMBean

public class ProfilePublisher
extends java.lang.Object
implements ProfilePublisherMBean


Nested Class Summary
static class ProfilePublisher.KeyedProfilePage<K>
          A profile page that will display as follows:
 
Constructor Summary
ProfilePublisher(ProfileCollator collator)
           
 
Method Summary
 java.lang.String[] getProfileNames()
           
 java.lang.String getStatistics(java.lang.String profileName)
           
 void writeStatisticsToStream(java.io.OutputStream stream)
          Writes statistics for all transaction families to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilePublisher

public ProfilePublisher(ProfileCollator collator)
Method Detail

getProfileNames

public java.lang.String[] getProfileNames()
Specified by:
getProfileNames in interface ProfilePublisherMBean
Returns:
an array of the names of all the available profiles

getStatistics

public java.lang.String getStatistics(java.lang.String profileName)
Specified by:
getStatistics in interface ProfilePublisherMBean
Parameters:
profileName - the name of the desired profile
Returns:
a printable representation of the named profile

writeStatisticsToStream

public void writeStatisticsToStream(java.io.OutputStream stream)
Writes statistics for all transaction families to a stream.

Parameters:
stream - the stream to write to


Copyright © 2008-2010 Multiverse. All Rights Reserved.