|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.shutdown.RecycleManager
public class RecycleManager
This class is responsible for managing the auto recycle process To participate ( control, get notification, etc) in the recycle process participants should implement the RecylceIfc and register with this class.
| Constructor Summary | |
|---|---|
RecycleManager()
|
|
| Method Summary | |
|---|---|
int |
getMaxTaskCount()
|
long |
getRecycleInterval()
|
int |
getRecycleWindowBeginHour()
|
int |
getRecycleWindowEndHour()
|
void |
initiateRecycle(boolean doWindowCheck)
Checks to see if a auto-recycle can done. |
long |
intervalToNextRecycleCheck(long minInterval)
Calculates the time interval to next recycle check. |
void |
registerRecycleAgent(RecycleIfc agent)
|
void |
removeRecycleAgent(RecycleIfc agent)
|
void |
setGlobalLockName(int id)
Set the global lockname using the community id |
void |
setMaxTaskCount(int count)
|
void |
setRecycleInterval(long time)
|
void |
setRecycleWindowBeginHour(int count)
|
void |
setRecycleWindowEndHour(int count)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecycleManager()
| Method Detail |
|---|
public void registerRecycleAgent(RecycleIfc agent)
public void removeRecycleAgent(RecycleIfc agent)
public void initiateRecycle(boolean doWindowCheck)
doWindowCheck - if true, checks to see if we are in recycle time window.public long intervalToNextRecycleCheck(long minInterval)
minInterval - the minimum time to the next recycle check
in milliseconds. Must be >= 0 and less than a hour.
public void setGlobalLockName(int id)
public void setMaxTaskCount(int count)
public int getMaxTaskCount()
public void setRecycleInterval(long time)
public long getRecycleInterval()
public void setRecycleWindowBeginHour(int count)
public int getRecycleWindowBeginHour()
public void setRecycleWindowEndHour(int count)
public int getRecycleWindowEndHour()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||