com.sun.sgs.impl.service.data.store
Class DataStoreStats

java.lang.Object
  extended by com.sun.sgs.impl.service.data.store.DataStoreStats
All Implemented Interfaces:
DataStoreStatsMXBean

 class DataStoreStats
extends Object
implements DataStoreStatsMXBean

Implementation of JMX MBean for the data store.


Field Summary
(package private)  ProfileOperation createObjectOp
           
(package private)  ProfileOperation getBindingOp
           
(package private)  ProfileOperation getClassIdOp
           
(package private)  ProfileOperation getClassInfoOp
           
(package private)  ProfileOperation getObjectForUpdateOp
           
(package private)  ProfileOperation getObjectOp
           
(package private)  ProfileOperation markForUpdateOp
           
(package private)  ProfileOperation nextBoundNameOp
           
(package private)  ProfileOperation nextObjectIdOp
           
(package private)  ProfileCounter readBytesCounter
          Records the number of bytes read by the getObject method.
(package private)  ProfileSample readBytesSample
          Records a list of the number of bytes read by calls to the getObject method.
(package private)  ProfileCounter readObjectsCounter
          Records the number of objects read by the getObject method.
(package private)  ProfileOperation removeBindingOp
           
(package private)  ProfileOperation removeObjectOp
           
(package private)  ProfileOperation setBindingOp
           
(package private)  ProfileOperation setObjectOp
           
(package private)  ProfileOperation setObjectsOp
           
(package private)  ProfileCounter writtenBytesCounter
          Records the number of bytes written by the setObject and setObjects methods.
(package private)  ProfileSample writtenBytesSample
          Records a list of the number of bytes written by calls to the setObject and setObjects methods.
(package private)  ProfileCounter writtenObjectsCounter
          Records the number of objects written by the setObject and setObjects methods.
 
Fields inherited from interface com.sun.sgs.management.DataStoreStatsMXBean
MXBEAN_NAME
 
Constructor Summary
DataStoreStats(ProfileCollector collector)
          Create a data store statistics object.
 
Method Summary
 double getAvgReadBytesSample()
          Returns the average read byte sample value, smoothed with the smoothing factor.
 double getAvgWrittenBytesSample()
          Returns the average written byte sample value, smoothed with the smoothing factor.
 long getCreateObjectCalls()
          Returns the number of times createObject has been called.
 long getGetBindingCalls()
          Returns the number of times getBinding has been called.
 long getGetClassIdCalls()
          Returns the number of times getClassId has been called.
 long getGetClassInfoCalls()
          Returns the number of times getClassInfo has been called.
 long getGetObjectCalls()
          Returns the number of times getObject has been called with a false argument.
 long getGetObjectForUpdateCalls()
          Returns the number of times getObject has been called with a true argument.
 long getMarkForUpdateCalls()
          Returns the number of times markForUpdate has been called.
 long getMaxReadBytesSample()
          Returns the maximum read byte sample value.
 long getMaxWrittenBytesSample()
          Returns the maximum written byte sample value.
 long getMinReadBytesSample()
          Returns the mimimum read byte sample value.
 long getMinWrittenBytesSample()
          Returns the mimimum written byte sample value.
 long getNextBoundNameCalls()
          Returns the number of times nextBoundName has been called.
 long getNextObjectIdCalls()
          Returns the number of times nextObjectId has been called.
 long getReadBytesCount()
          Returns the total number of bytes read from the data store.
 long getReadObjectsCount()
          Returns the total number of objects read from the data store.
 long getRemoveBindingCalls()
          Returns the number of times removeBinding has been called.
 long getRemoveObjectCalls()
          Returns the number of times removeObject has been called.
 long getSetBindingCalls()
          Returns the number of times setBinding has been called.
 long getSetObjectCalls()
          Returns the number of times setObject has been called.
 long getSetObjectsCalls()
          Returns the number of times setObjects has been called.
 double getSmoothingFactor()
          Returns the smoothing factor in effect for the data store aggregate statistics.
 long getWrittenBytesCount()
          Returns the total number of bytes read written to data store.
 long getWrittenObjectsCount()
          Returns the total number of objects read written to data store.
 void setSmoothingFactor(double smooth)
          Sets the smoothing factor in effect for the data store aggregate statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

createObjectOp

final ProfileOperation createObjectOp

markForUpdateOp

final ProfileOperation markForUpdateOp

getObjectOp

final ProfileOperation getObjectOp

getObjectForUpdateOp

final ProfileOperation getObjectForUpdateOp

setObjectOp

final ProfileOperation setObjectOp

setObjectsOp

final ProfileOperation setObjectsOp

removeObjectOp

final ProfileOperation removeObjectOp

getBindingOp

final ProfileOperation getBindingOp

setBindingOp

final ProfileOperation setBindingOp

removeBindingOp

final ProfileOperation removeBindingOp

nextBoundNameOp

final ProfileOperation nextBoundNameOp

getClassIdOp

final ProfileOperation getClassIdOp

getClassInfoOp

final ProfileOperation getClassInfoOp

nextObjectIdOp

final ProfileOperation nextObjectIdOp

readBytesCounter

final ProfileCounter readBytesCounter
Records the number of bytes read by the getObject method.


readObjectsCounter

final ProfileCounter readObjectsCounter
Records the number of objects read by the getObject method.


writtenBytesCounter

final ProfileCounter writtenBytesCounter
Records the number of bytes written by the setObject and setObjects methods.


writtenObjectsCounter

final ProfileCounter writtenObjectsCounter
Records the number of objects written by the setObject and setObjects methods.


readBytesSample

final ProfileSample readBytesSample
Records a list of the number of bytes read by calls to the getObject method.


writtenBytesSample

final ProfileSample writtenBytesSample
Records a list of the number of bytes written by calls to the setObject and setObjects methods.

Constructor Detail

DataStoreStats

DataStoreStats(ProfileCollector collector)
Create a data store statistics object.

Parameters:
collector - the profile collector used to create profiling objects and register the MBean with JMX
Method Detail

getGetBindingCalls

public long getGetBindingCalls()
Returns the number of times getBinding has been called.

Specified by:
getGetBindingCalls in interface DataStoreStatsMXBean
Returns:
the number of times getBinding has been called

getGetClassIdCalls

public long getGetClassIdCalls()
Returns the number of times getClassId has been called.

Specified by:
getGetClassIdCalls in interface DataStoreStatsMXBean
Returns:
the number of times getClassId has been called

getGetClassInfoCalls

public long getGetClassInfoCalls()
Returns the number of times getClassInfo has been called.

Specified by:
getGetClassInfoCalls in interface DataStoreStatsMXBean
Returns:
the number of times getClassInfo has been called

getCreateObjectCalls

public long getCreateObjectCalls()
Returns the number of times createObject has been called.

Specified by:
getCreateObjectCalls in interface DataStoreStatsMXBean
Returns:
the number of times createObject has been called

getMarkForUpdateCalls

public long getMarkForUpdateCalls()
Returns the number of times markForUpdate has been called.

Specified by:
getMarkForUpdateCalls in interface DataStoreStatsMXBean
Returns:
the number of times markForUpdate has been called

getNextObjectIdCalls

public long getNextObjectIdCalls()
Returns the number of times nextObjectId has been called.

Specified by:
getNextObjectIdCalls in interface DataStoreStatsMXBean
Returns:
the number of times nextObjectId has been called

getGetObjectCalls

public long getGetObjectCalls()
Returns the number of times getObject has been called with a false argument.

Specified by:
getGetObjectCalls in interface DataStoreStatsMXBean
Returns:
the number of times getObject has been called

getGetObjectForUpdateCalls

public long getGetObjectForUpdateCalls()
Returns the number of times getObject has been called with a true argument.

Specified by:
getGetObjectForUpdateCalls in interface DataStoreStatsMXBean
Returns:
the number of times getObject has been called

getReadBytesCount

public long getReadBytesCount()
Returns the total number of bytes read from the data store.

Specified by:
getReadBytesCount in interface DataStoreStatsMXBean
Returns:
the total number of bytes read from the data store

getReadObjectsCount

public long getReadObjectsCount()
Returns the total number of objects read from the data store.

Specified by:
getReadObjectsCount in interface DataStoreStatsMXBean
Returns:
the total number of objects read from the data store

getWrittenBytesCount

public long getWrittenBytesCount()
Returns the total number of bytes read written to data store.

Specified by:
getWrittenBytesCount in interface DataStoreStatsMXBean
Returns:
the total number of bytes read written to data store

getWrittenObjectsCount

public long getWrittenObjectsCount()
Returns the total number of objects read written to data store.

Specified by:
getWrittenObjectsCount in interface DataStoreStatsMXBean
Returns:
the total number of objects read written to data store

getRemoveBindingCalls

public long getRemoveBindingCalls()
Returns the number of times removeBinding has been called.

Specified by:
getRemoveBindingCalls in interface DataStoreStatsMXBean
Returns:
the number of times removeBinding has been called

getNextBoundNameCalls

public long getNextBoundNameCalls()
Returns the number of times nextBoundName has been called.

Specified by:
getNextBoundNameCalls in interface DataStoreStatsMXBean
Returns:
the number of times nextBoundName has been called

getRemoveObjectCalls

public long getRemoveObjectCalls()
Returns the number of times removeObject has been called.

Specified by:
getRemoveObjectCalls in interface DataStoreStatsMXBean
Returns:
the number of times removeObject has been called

getSetBindingCalls

public long getSetBindingCalls()
Returns the number of times setBinding has been called.

Specified by:
getSetBindingCalls in interface DataStoreStatsMXBean
Returns:
the number of times setBinding has been called

getSetObjectCalls

public long getSetObjectCalls()
Returns the number of times setObject has been called.

Specified by:
getSetObjectCalls in interface DataStoreStatsMXBean
Returns:
the number of times setObject has been called

getSetObjectsCalls

public long getSetObjectsCalls()
Returns the number of times setObjects has been called.

Specified by:
getSetObjectsCalls in interface DataStoreStatsMXBean
Returns:
the number of times setObjects has been called

getAvgReadBytesSample

public double getAvgReadBytesSample()
Returns the average read byte sample value, smoothed with the smoothing factor.

Specified by:
getAvgReadBytesSample in interface DataStoreStatsMXBean
Returns:
the average read byte sample value.

getAvgWrittenBytesSample

public double getAvgWrittenBytesSample()
Returns the average written byte sample value, smoothed with the smoothing factor.

Specified by:
getAvgWrittenBytesSample in interface DataStoreStatsMXBean
Returns:
the average written byte sample value.

getMaxReadBytesSample

public long getMaxReadBytesSample()
Returns the maximum read byte sample value.

Specified by:
getMaxReadBytesSample in interface DataStoreStatsMXBean
Returns:
the maximum read byte sample value

getMaxWrittenBytesSample

public long getMaxWrittenBytesSample()
Returns the maximum written byte sample value.

Specified by:
getMaxWrittenBytesSample in interface DataStoreStatsMXBean
Returns:
the maximum written byte sample value

getMinReadBytesSample

public long getMinReadBytesSample()
Returns the mimimum read byte sample value.

Specified by:
getMinReadBytesSample in interface DataStoreStatsMXBean
Returns:
the mimimum read byte sample value

getMinWrittenBytesSample

public long getMinWrittenBytesSample()
Returns the mimimum written byte sample value.

Specified by:
getMinWrittenBytesSample in interface DataStoreStatsMXBean
Returns:
the mimimum written byte sample value

getSmoothingFactor

public double getSmoothingFactor()
Returns the smoothing factor in effect for the data store aggregate statistics.

Specified by:
getSmoothingFactor in interface DataStoreStatsMXBean
Returns:
the smoothing factor

setSmoothingFactor

public void setSmoothingFactor(double smooth)
Sets the smoothing factor in effect for the data store aggregate statistics.

Specified by:
setSmoothingFactor in interface DataStoreStatsMXBean
Parameters:
smooth - the smoothing factor
See Also:
AggregateProfileSample.setSmoothingFactor(double)

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