Package com.easydesk.message
Class ActivityMonitorManager
java.lang.Object
org.apache.torque.manager.AbstractBaseManager<Persistent>
com.easydesk.message.ActivityMonitorManager
- All Implemented Interfaces:
Serializable,CacheListener<Persistent>
public class ActivityMonitorManager
extends AbstractBaseManager<Persistent>
implements CacheListener<Persistent>
ActivityMonitor 의 생성과 cache 를 관리하는 manager.
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.torque.manager.AbstractBaseManager
cache, groupCache, log, mrCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRefresh and Update Local Cachestatic ActivityMonitorStatic accessor for the @see #getInstanceImpl().static ActivityMonitorgetInstance(ActivitySet activitySet, Item item) 맨 상위 ActivityMonitor 를 만들때만 사용한다.static ActivityMonitorgetInstance(ActivitySetType activitySetType, Item item) ActivitySetType 에 해당하는 ActivityMonitor 를 생성한다.static ActivityMonitorgetInstance(ActivitySetType activitySetType, String uniqueId) ActivitySetType 에 해당하는 ActivityMonitor 를 생성하고 uniqueId 를 설정한다.static ActivityMonitorgetInstance(ObjectKey<?> id) Static accessor for the @see #getInstanceImpl(ObjectKey).protected ActivityMonitorGet a fresh instance of a ActivityMonitorprotected ActivityMonitorgetInstanceImpl(ObjectKey<?> id) Get a ActivityMonitor with the given id.fields which interest us with respect to cache eventsstatic ActivityMonitorManagerRetrieves an implementation of the manager, based on the settings in the configuration.static MethodResultCacheDOCUMENT ME!voidDOCUMENT ME!static voidDOCUMENT ME!protected PersistentvoidNotify to All and update local cachevoidNotify other managers with relevant CacheEvents. getMethodResultCache() 를 call 하지 않고 직접 registerAsListener() 를 call 한다.static voidremove(ActivitySet activitySet) DOCUMENT ME!voidDOCUMENT ME!retrieveStoredOM(ObjectKey<?> id) DOCUMENT ME!retrieveStoredOMs(List ids) DOCUMENT ME!Methods inherited from class org.apache.torque.manager.AbstractBaseManager
addCacheListenerImpl, addValidField, cacheGet, clearImpl, dispose, getClassName, getMethodResultCache, getOMClass, getOMInstance, getOMInstance, getOMInstance, getOMs, getOMs, getOMs, getRegion, notifyListeners, putInstanceImpl, removeInstanceImpl, setClassName, setOMClass, setRegion
-
Field Details
-
MANAGED_CLASS
DOCUMENT ME!- See Also:
-
-
Constructor Details
-
ActivityMonitorManager
Creates a newItemManagerinstance.- Throws:
TorqueException- if an error occurs
-
-
Method Details
-
getManager
Retrieves an implementation of the manager, based on the settings in the configuration.- Returns:
- an implementation of ItemManager.
-
getMethodResult
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
putInstance
DOCUMENT ME!- Parameters:
om- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
putInstanceImpl
- Overrides:
putInstanceImplin classAbstractBaseManager<Persistent>- Throws:
TorqueException
-
notifyListeners
DOCUMENT ME!- Parameters:
om- DOCUMENT ME!
-
registerAsListener
public void registerAsListener()Notify other managers with relevant CacheEvents. getMethodResultCache() 를 call 하지 않고 직접 registerAsListener() 를 call 한다.- Overrides:
registerAsListenerin classAbstractBaseManager<Persistent>
-
getInstanceImpl
Get a fresh instance of a ActivityMonitor- Returns:
- 새 ActivityMonitor instance
- Throws:
TorqueException- instance 생성 중 오류가 발생한 경우
-
getInstanceImpl
Get a ActivityMonitor with the given id.- Parameters:
id-ObjectKeyvalue- Returns:
- cache 에 있는 ActivityMonitor, 없으면
null - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
retrieveStoredOM
DOCUMENT ME!- Specified by:
retrieveStoredOMin classAbstractBaseManager<Persistent>- Parameters:
id- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
retrieveStoredOMs
DOCUMENT ME!- Specified by:
retrieveStoredOMsin classAbstractBaseManager<Persistent>- Parameters:
ids- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getInstance
Static accessor for the @see #getInstanceImpl().- Returns:
- a
Activityvalue - Throws:
TorqueException- if an error occurs
-
getInstance
Static accessor for the @see #getInstanceImpl(ObjectKey).- Parameters:
id- anObjectKeyvalue- Returns:
- a
Activityvalue - Throws:
TorqueException- if an error occurs
-
remove
DOCUMENT ME!- Parameters:
activitySet- DOCUMENT ME!- Throws:
TorqueException- DOCUMENT ME!
-
getInstance
맨 상위 ActivityMonitor 를 만들때만 사용한다. 나머지는 모두 ActivitySetType 을 이용한다.- Parameters:
activitySet- monitor 를 연결할 ActivitySetitem- 대상 item- Returns:
- ActivitySet 의 root monitor
- Throws:
Exception- monitor 생성 중 오류가 발생한 경우IllegalArgumentException- 이미 monitor 가 있는데 Session/Infinite time scope 가 아닌 경우
-
getInstance
public static ActivityMonitor getInstance(ActivitySetType activitySetType, Item item) throws Exception ActivitySetType 에 해당하는 ActivityMonitor 를 생성한다.- Parameters:
activitySetType- monitor 를 생성할 ActivitySetTypeitem- 대상 item,null이면 uniqueId 를 설정하지 않는다.- Returns:
- 생성된 ActivityMonitor
- Throws:
Exception- monitor 생성 중 오류가 발생한 경우
-
getInstance
public static ActivityMonitor getInstance(ActivitySetType activitySetType, String uniqueId) throws Exception ActivitySetType 에 해당하는 ActivityMonitor 를 생성하고 uniqueId 를 설정한다.- Parameters:
activitySetType- monitor 를 생성할 ActivitySetTypeuniqueId- 대상 item 의 uniqueId,null이면 설정하지 않는다.- Returns:
- 생성된 ActivityMonitor
- Throws:
Exception- monitor 생성 중 오류가 발생한 경우
-
addedObject
Refresh and Update Local Cache- Specified by:
addedObjectin interfaceCacheListener<Persistent>- Parameters:
om- Description of the Parameter
-
refreshedObject
Notify to All and update local cache- Specified by:
refreshedObjectin interfaceCacheListener<Persistent>- Parameters:
om- Description of the Parameter
-
removedObject
DOCUMENT ME!- Specified by:
removedObjectin interfaceCacheListener<Persistent>- Parameters:
om- DOCUMENT ME!
-
getInterestedFields
fields which interest us with respect to cache events- Specified by:
getInterestedFieldsin interfaceCacheListener<Persistent>- Returns:
- The interestedFields value
-