com.sun.enterprise.ee.cms.tests.checkgroupshutdown
Class CheckIfGroupShuttingDownTest
java.lang.Object
com.sun.enterprise.ee.cms.tests.checkgroupshutdown.CheckIfGroupShuttingDownTest
- All Implemented Interfaces:
- CallBack
public class CheckIfGroupShuttingDownTest
- extends Object
- implements CallBack
Created by IntelliJ IDEA.
User: sheetal
Date: Jan 31, 2008
Time: 1:22:36 PM
This test is for making sure that the API added to check if the
group is shutting down works fine.
start the test as follows in 2 terminals :
"sh runcheckgroupshutdown.sh DAS" and "sh runcheckgroupshutdown.sh C1"
DAS will send out the announceShutdown() message which will be received by C1
C1 will print out the value for gms.isGroupBeingShutdown(group) before and after the message is received from DAS
This way the above API can be tested. The value returned should be false before DAS announces the GMSMessage
for shutdown and the nti should become true before C1 shuts down.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckIfGroupShuttingDownTest
public CheckIfGroupShuttingDownTest()
main
public static void main(String[] args)
processNotification
public void processNotification(Signal notification)
- Specified by:
processNotification
in interface CallBack
Copyright © 2003 Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.