@Override
    public void updateStatisticOnRequest(int dataId) {
    	if(si!=null){    		
    		SessionStats temp =SessionMonitor.getSessionStatsOB(si.getName());
    		if (dataId == ACTIVE_SESSIONS) {        	
                activeCount.set(temp.getActiveCount());
            }
            if (dataId == LIVE_SESSIONS) {
                liveCount.set(temp.getLiveCount());
            }
            if (dataId == CREATE_SESSIONS) {
                createCount.set(temp.getCreateCount(),0,temp.getCreateCount());
            }
            if (dataId == INVALIDATED_SESSIONS) {            	
                invalidatedCount.set(temp.getInvalidatedCount(),0,temp.getInvalidatedCount());
            }
            if (dataId == INVALIDATED_SESSIONS_BYTIMEOUT) {     
                invalidatedCountbyTimeout.set(temp.getInvalidatedCountbyTimeout(),0,temp.getInvalidatedCountbyTimeout());
            }
    }
    }
@ Override public void updateStatisticOnRequest ( int dataId ) { if ( si != null ) { SessionStats temp = SessionMonitor . getSessionStatsOB ( si . getName ( ) ) ; if ( dataId == ACTIVE_SESSIONS ) { activeCount . set ( temp . getActiveCount ( ) ) ; } if ( dataId == LIVE_SESSIONS ) { liveCount . set ( temp . getLiveCount ( ) ) ; } if ( dataId == CREATE_SESSIONS ) { createCount . set ( temp . getCreateCount ( ) , 0 , temp . getCreateCount ( ) ) ; } if ( dataId == INVALIDATED_SESSIONS ) { invalidatedCount . set ( temp . getInvalidatedCount ( ) , 0 , temp . getInvalidatedCount ( ) ) ; } if ( dataId == INVALIDATED_SESSIONS_BYTIMEOUT ) { invalidatedCountbyTimeout . set ( temp . getInvalidatedCountbyTimeout ( ) , 0 , temp . getInvalidatedCountbyTimeout ( ) ) ; } } }
{@inheritDoc}