com.adventnet.snmp.snmp2.agent
Class AclThreadStarter

java.lang.Object
  extended by com.adventnet.snmp.snmp2.agent.AclThreadStarter
All Implemented Interfaces:
java.lang.Runnable

 class AclThreadStarter
extends java.lang.Object
implements java.lang.Runnable

This class is to start the thread which dynamically updates the values to the AclTable from the persisted file. This class will be invoked on using the AutoRefresh Methods.

See Also:
#AclTableRequestHandler

Field Summary
(package private)  java.io.File aclFile
           
(package private)  AclTableRequestHandler aclTableReqHdlr
           
(package private)  int autoRefreshTimeInt
           
(package private)  int count
           
(package private)  long lastModified
           
 
Constructor Summary
AclThreadStarter(AclTableRequestHandler aclTableReqHdlr)
          Primary constructor of AclThreadStarter with default auto refresh time.
AclThreadStarter(AclTableRequestHandler aclTableReqHdlr, int autoRefreshTimeInt)
          Constructor which specifies the custom auto refresh time.
 
Method Summary
 void run()
          This method starts the auto refresh thread for dynamically updating values to the AclTable from the storage file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aclTableReqHdlr

AclTableRequestHandler aclTableReqHdlr

count

int count

aclFile

java.io.File aclFile

lastModified

long lastModified

autoRefreshTimeInt

int autoRefreshTimeInt
Constructor Detail

AclThreadStarter

public AclThreadStarter(AclTableRequestHandler aclTableReqHdlr)
Primary constructor of AclThreadStarter with default auto refresh time.

Parameters:
aclTableReqHdlr - The AclTableRequestHandler Instance.

AclThreadStarter

public AclThreadStarter(AclTableRequestHandler aclTableReqHdlr,
                        int autoRefreshTimeInt)
Constructor which specifies the custom auto refresh time.

Parameters:
aclTableReqHdlr - The AclTableRequestHandler Instance.
autoRefreshTimeInt - The time between two consecutive readings of the file in seconds eg., 2 for 2 seconds.
Method Detail

run

public void run()
This method starts the auto refresh thread for dynamically updating values to the AclTable from the storage file.

Specified by:
run in interface java.lang.Runnable