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

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

public class ApplicationServer
extends Object
implements Runnable, CallBack

This is an example used to demonstrate the application layer that controls the lifecycle of the GMS module. It also provides an example of the actions taken in response to a recover call from the GMS layer.

Version:
$Revision: 1.19 $
Author:
Shreedhar Ganapathy"

Nested Class Summary
 class ApplicationServer.CLB
           
 
Field Summary
 GroupManagementService gms
           
 
Constructor Summary
ApplicationServer(String serverName, String groupName, GroupManagementService.MemberType memberType, Properties props)
           
 
Method Summary
static void main(String[] args)
           
 void processNotification(Signal notification)
           
 void run()
           
 void sendMessage(String message)
           
 void startClientServices()
           
 void startGMS()
           
 void stopGMS()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gms

public GroupManagementService gms
Constructor Detail

ApplicationServer

public ApplicationServer(String serverName,
                         String groupName,
                         GroupManagementService.MemberType memberType,
                         Properties props)
Method Detail

run

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

startClientServices

public void startClientServices()

startGMS

public void startGMS()

stopGMS

public void stopGMS()

sendMessage

public void sendMessage(String message)

processNotification

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

main

public static void main(String[] args)


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