Package com.arjuna.mw.wsas
Interface ActivityManager
public interface ActivityManager
The activity manager is the way in which an HLS can register
itself with the activity service. This allows it to be informed
of the lifecycle of activities and to augment that lifecyle and
associated context.
An HLS can be associated with all threads (globally) or with only
a specific thread (locally).
- Since:
- 1.0.
- Version:
- $Id: ActivityManager.java,v 1.1 2002/11/25 10:51:40 nmcl Exp $
- Author:
- Mark Little (mark.little@arjuna.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Register the specified HLS with the activity service.HLS[]
Allows an invoker to obtain a list of all registered HLSs.getHighLevelService
(String serviceType) Allows an invoker to obtain a specific registered HLS supporting a given coordination type.void
Unregister the specified HLS with the activity service.
-
Method Details
-
addHLS
Register the specified HLS with the activity service.- Parameters:
service
- The HLS to register.- Throws:
InvalidHLSException
- Thrown if the HLS is invalid in the current execution environment.SystemException
- Thrown if any other error occurs.
-
removeHLS
Unregister the specified HLS with the activity service.- Parameters:
service
- The HLS to unregister.- Throws:
InvalidHLSException
- Thrown if the HLS is invalid in the current execution environment.SystemException
- Thrown if any other error occurs.
-
allHighLevelServices
Allows an invoker to obtain a list of all registered HLSs. Elements at the start of the array have higher priority than those at the end.- Returns:
- the list of HLSs.
- Throws:
SystemException
- Thrown if any error occurs.
-
getHighLevelService
Allows an invoker to obtain a specific registered HLS supporting a given coordination type.- Returns:
- the HLS.
- Throws:
SystemException
- Thrown if any error occurs.
-