public class QuotaAgent extends BaseAgent implements IfsEventHandler
The predicted consumed storage for each directory user and the number of events received is stored in a private class, ContentQuotaTracker. The Quota agent re-calculates the consumedStorage either when the predicted consumed storage is over the allocated storage, or when a timer event occurs and there has been some activity for the user since the last timer event.
IfsServer.ServerRequest| Modifier and Type | Field and Description | 
|---|---|
static String | 
IFS_SERVER_TIMER_ActivationPeriod  | 
static String | 
IFS_SERVER_TIMER_InitialDelay  | 
static String | 
IFS_SERVER_TIMER_InitialTimeOfDay  | 
static String | 
LAST_QUOTA_ACTIVE_COUNT  | 
static String | 
LAST_QUOTA_EXCEEDED_COUNT  | 
protected int | 
m_LastQuotaActiveCount
The number of Quotas this agent recalculated due to activity
 in last timer period 
 | 
protected int | 
m_LastQuotaExceededCount
The number of Quotas this agent recalculated due to a "quota exceeded"
 detection in last timer period, 
 | 
protected Hashtable | 
m_QuotaTrackerTable
The hashtable that maps contentquota objects to the 
 corresponding QuotaTracker objects 
 | 
protected int | 
m_TotalQuotaActiveCount
The number of Quotas this agent recalculated due to activity
 since starting. 
 | 
protected int | 
m_TotalQuotaExceededCount
The number of Quotas this agent recalculated due to a "quota exceeded"
 detection since starting. 
 | 
static String | 
TOTAL_QUOTA_ACTIVE_COUNT  | 
static String | 
TOTAL_QUOTA_EXCEEDED_COUNT  | 
ERROR_COUNT_CUMULATIVE, ERROR_COUNT_LAST_ACTIVATIONLEVEL_HIGH, LEVEL_LOW, LEVEL_MEDIUM, LEVEL_OFFSERVERSTATUS_DISPOSED, SERVERSTATUS_RUNNING, SERVERSTATUS_STARTING, SERVERSTATUS_STOPPED, SERVERSTATUS_STOPPING, SERVERSTATUS_SUSPENDED, SERVERSTATUS_UNKNOWN| Constructor and Description | 
|---|
QuotaAgent()
Constructs the QuotaAgent. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
activate()
handle the timer expired request. 
 | 
void | 
disableEventListening()
Disable listening for ContentQuota object events. 
 | 
void | 
enableEventListening()
Enable listening for ContentQuota object events 
 | 
IfsLogger | 
getLogger()
Gets the appropriate logger for this server. 
 | 
void | 
handleEvent(IfsEvent event)
Handles events on ContentQuota objects. 
 | 
protected void | 
handleResumeRequest()
handle the resume request. 
 | 
protected void | 
handleSuspendRequest()
handle the suspend request. 
 | 
void | 
initialize()
Initialize prior to running 
 | 
protected void | 
initOnRun()
Initialize at start of run method 
 | 
static void | 
main(String[] args)
This is used to run the Quota Agent in the standalone mode. 
 | 
void | 
postRun()
Performs post-run tasks for this QuotaAgent. 
 | 
void | 
processEvent(IfsEvent event)
Process the next event 
 | 
protected void | 
publishProperties()  | 
addToProperty, handleStopRequest, handleTimerExpired, incrementProperty, isAgent, processWithinRun, publishProperty, run, standardPostRun, supportsSuspendResumecancelRegistration, checkRegistration, deriveAgentIdentifier, deriveRunningServerIdentifier, getAgentIdentifier, getAgentIdentifierPrefix, getRegistrationPeriod, getRunningNodeIdentifier, getRunningNodeName, getRunningServerIdentifier, initializeRegistration, isRegistered, isServerRunning, isTokenNonCompetingcheckSession, connectSession, constructSession, convertTimerInterval, convertTimerInterval, convertTimerInterval, dispose, getLastTimerActivation, getNextTimerActivation, getService, getTimerActivationPeriod, getTimerClassName, getTimerConfiguration, handlePriorityChangeRequest, handlePropertyChangeRequest, handlePropertyChangeRequest, handleRequest, handleRequests, handleServerStateControllerRequest, isNonCompeting, isPropertyReadonly, isServiceAvailable, isTimerActive, postCheckServerStateRequest, postRequest, preRun, processEvents, queueEvent, resetTimer, restart, resume, serviceAvailabilityCheckNeeded, setPriority, setProperty, setProperty, start, startTimer, stop, stopRequested, stopTimer, suspend, timerExpired, waitForServiceAvailability, waitServeracquireSession, constructLibrarySessionPool, createServerState, deregister, disconnectSession, getConfigurationOverridesTable, getConfigurationTable, getCredential, getDesiredStatus, getIfsHome, getInitialConfigurationTable, getLoggerForLegacyLogging, getName, getNode, getNodeName, getOracleHome, getParameterTable, getPriority, getProperties, getProperty, getServerConfigurationName, getServerState, getServerStateValue, getServerType, getServiceName, getSession, getStateTable, getStatus, getSystemUserCredential, handleServerConfigurationOverrideRequest, handleServerStateEvent, initialize, initialize, isDisposed, isInitialized, isLogged, log, log, log, releaseSession, releaseSession, setDesiredStatus, setDesiredStatus, setSessionTimeoutPrevented, setStateProperty, setStatus, startStandalone, startStandalone, supportsPriority, toStatusLabel, toStatusLabel, toStatusLabel, verifyNotDisposed, verifyNotDisposedpublic static final String IFS_SERVER_TIMER_ActivationPeriod
public static final String IFS_SERVER_TIMER_InitialTimeOfDay
public static final String IFS_SERVER_TIMER_InitialDelay
public static final String LAST_QUOTA_EXCEEDED_COUNT
public static final String TOTAL_QUOTA_EXCEEDED_COUNT
public static final String LAST_QUOTA_ACTIVE_COUNT
public static final String TOTAL_QUOTA_ACTIVE_COUNT
protected int m_LastQuotaExceededCount
protected int m_TotalQuotaExceededCount
protected int m_LastQuotaActiveCount
protected int m_TotalQuotaActiveCount
protected Hashtable m_QuotaTrackerTable
public QuotaAgent()
           throws IfsException
IfsException - (IFS-46000) if the operation failspublic static void main(String[] args) throws Exception
Exceptionpublic IfsLogger getLogger()
Typically overridden by subclasses to return the IfsLogger associatged with the specific server.
public void initialize()
                throws Exception
initialize in class BaseAgentException - if the operation failsprotected void initOnRun()
                  throws Exception
BaseAgentprotected void handleSuspendRequest()
                             throws Exception
handleSuspendRequest in class BaseAgentIfsException - if operation failsException - if the operation failsprotected void handleResumeRequest()
                            throws Exception
handleResumeRequest in class BaseAgentIfsException - if operation failsException - if the operation failsprotected void activate()
                 throws IfsException
activate in class BaseAgentIfsException - if operation failspublic void postRun()
public void enableEventListening()
                          throws IfsException
IfsExceptionpublic void disableEventListening()
                           throws IfsException
IfsExceptionpublic void handleEvent(IfsEvent event) throws IfsException
handleEvent in interface IfsEventHandlerevent - the eventIfsException - if the operation failspublic void processEvent(IfsEvent event) throws IfsException
processEvent in class IfsServerevent - The next event to process.IfsException - if the operation failsprotected void publishProperties()
                          throws IfsException
IfsExceptionCopyright © 2025. All rights reserved.