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
 void addHLS(HLS service)
          Register the specified HLS with the activity service.
 HLS[] allHighLevelServices()
          Allows an invoker to obtain a list of all registered HLSs.
 HLS getHighLevelService(String serviceType)
          Allows an invoker to obtain a specific registered HLS supporting a given coordination type.
 void removeHLS(HLS service)
          Unregister the specified HLS with the activity service.
 

Method Detail

addHLS

void addHLS(HLS service)
            throws InvalidHLSException,
                   SystemException
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

void removeHLS(HLS service)
               throws InvalidHLSException,
                      SystemException
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

HLS[] allHighLevelServices()
                           throws SystemException
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

HLS getHighLevelService(String serviceType)
                        throws SystemException
Allows an invoker to obtain a specific registered HLS supporting a given coordination type.

Returns:
the HLS.
Throws:
SystemException - Thrown if any error occurs.


Copyright © 2011. All Rights Reserved.