FileDocCategorySizeDatePackage
StatefulSessionStoreMonitor.javaAPI DocGlassfish v2 API5671Fri May 04 22:32:56 BST 2007com.sun.ejb.base.stats

StatefulSessionStoreMonitor

public class StatefulSessionStoreMonitor extends Object
An instance of this class is used by the StatefulContainer to update monitoring data. There is once instance of this class per StatefulEJBContainer
author
Mahesh Kannan

Fields Summary
private StatefulSessionStoreStatsImpl
statsImpl
Constructors Summary
Methods Summary
final voidappendStats(java.lang.StringBuffer sbuf)

	if (statsImpl != null) {
	    statsImpl.appendStats(sbuf);
	}
    
public intgetNumExpiredSessionsRemoved()

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	return (delegate != null)
	    ? delegate.getNumExpiredSessionCount()
	    : 0;
    
public intgetNumPassivationErrors()

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	return (delegate != null)
	    ? delegate.getNumPassivationErrorCount()
	    : 0;
    
public intgetNumPassivationSuccess()

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	return (delegate != null)
	    ? delegate.getNumPassivationSuccessCount()
	    : 0;
    
public intgetNumPassivations()

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	return (delegate != null)
	    ? delegate.getNumPassivationCount()
	    : 0;
    
public final voidincrementActivationCount(boolean success)

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	if (delegate != null) {
	    delegate.incrementActivationCount(success);
	}
    
public voidincrementCheckpointCount(boolean success)

	throw new RuntimeException("Checkpoint operation not allowed on non-HA store");
    
public final voidincrementExpiredSessionsRemoved(long val)

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	if (delegate != null) {
	    delegate.incrementExpiredSessionCountVal(val);
	}
    
public final voidincrementPassivationCount(boolean success)

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	if (delegate != null) {
	    delegate.incrementPassivationCount(success);
	}
    
public final booleanisMonitoringOn()

	return (statsImpl != null);
    
public final voidsetActivationSize(long val)

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	if (delegate != null) {
	    delegate.setActivationSize(val);
	}
    
public final voidsetActivationTime(long val)

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	if (delegate != null) {
	    delegate.setActivationTime(val);
	}
    
public voidsetCheckpointSize(long val)

	throw new RuntimeException("Checkpoint operation not allowed on non-HA store");
    
public voidsetCheckpointTime(long val)

	throw new RuntimeException("Checkpoint operation not allowed on non-HA store");
    
voidsetDelegate(StatefulSessionStoreStatsImpl delegate)

	this.statsImpl = delegate;
    
public final voidsetPassivationSize(long val)

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	if (delegate != null) {
	    delegate.setPassivationSize(val);
	}
    
public final voidsetPassivationTime(long val)

	StatefulSessionStoreStatsImpl delegate = statsImpl;
	if (delegate != null) {
	    delegate.setPassivationTime(val);
	}