com.sun.enterprise.ee.cms.tests
Class GMSClientService

java.lang.Object
  extended by com.sun.enterprise.ee.cms.tests.GMSClientService
All Implemented Interfaces:
CallBack, Runnable

public class GMSClientService
extends Object
implements Runnable, CallBack

This is a mock object that exists to demonstrate a GMS client. This client is started by the mock ApplicationServer object which results in this client retrieving an instance of GroupManagementService in order to register action factories for its notification purposes. It is assumed that this client module has already implemented the relevant Action and ActionFactory pair for the particular notification requirements. For Example, if this client requires Failure Notifications, it should implement FailureNotificationActionFactory and FailureNotificationAction and register the FailureNotificationActionFactory.

Version:
$Revision: 1.11 $
Author:
Shreedhar Ganapathy Date: Mar 1, 2005

Field Summary
static String IIOP_MEMBER_DETAILS_KEY
           
 
Constructor Summary
GMSClientService(String serviceName, String memberToken, boolean sendMessages)
           
 
Method Summary
 void processNotification(Signal notification)
           
 void run()
           
 void start()
           
 void stopClient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IIOP_MEMBER_DETAILS_KEY

public static final String IIOP_MEMBER_DETAILS_KEY
See Also:
Constant Field Values
Constructor Detail

GMSClientService

public GMSClientService(String serviceName,
                        String memberToken,
                        boolean sendMessages)
Method Detail

start

public void start()

run

public void run()
Specified by:
run in interface Runnable

processNotification

public void processNotification(Signal notification)
Specified by:
processNotification in interface CallBack

stopClient

public void stopClient()


Copyright © 2003 Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.