ariba.util.shutdown
Class RecycleManager
java.lang.Object
ariba.util.shutdown.RecycleManager
public class RecycleManager
- extends java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecycleLock
public static final java.lang.String RecycleLock
- See Also:
- Constant Field Values
RecycleManager
public RecycleManager()
registerRecycleAgent
public void registerRecycleAgent(RecycleIfc agent)
removeRecycleAgent
public void removeRecycleAgent(RecycleIfc agent)
initiateRecycle
public void initiateRecycle(boolean doWindowCheck)
- Checks to see if a auto-recycle can done.
- Parameters:
doWindowCheck
- if true, checks to see if we are in recycle time window.
intervalToNextRecycleCheck
public long intervalToNextRecycleCheck(long minInterval)
- Calculates the time interval to next recycle check. The interval
is the higher of: the minInterval parameter, or the interval to the
beginning of the next recycle window. If the current
time is in the recycle window, minInterval is returned.
- Parameters:
minInterval
- the minimum time to the next recycle check
in milliseconds. Must be >= 0 and less than a hour.
- Returns:
- the interval to wait before checking for auto-recycle.
setGlobalLockName
public void setGlobalLockName(int id)
- Set the global lockname using the community id
setMaxTaskCount
public void setMaxTaskCount(int count)
getMaxTaskCount
public int getMaxTaskCount()
setRecycleInterval
public void setRecycleInterval(long time)
getRecycleInterval
public long getRecycleInterval()
setRecycleWindowBeginHour
public void setRecycleWindowBeginHour(int count)
getRecycleWindowBeginHour
public int getRecycleWindowBeginHour()
setRecycleWindowEndHour
public void setRecycleWindowEndHour(int count)
getRecycleWindowEndHour
public int getRecycleWindowEndHour()
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.