jgroup.test.performance.upgrade
Class UpgradeServer

java.lang.Object
  extended by jgroup.test.performance.upgrade.UpgradeServer
All Implemented Interfaces:
java.rmi.Remote, jgroup.core.ExternalGMIListener, jgroup.core.MembershipListener, SpeedTest, jgroup.upgrade.UpgradeListener

public class UpgradeServer
extends java.lang.Object
implements SpeedTest, jgroup.core.MembershipListener, jgroup.upgrade.UpgradeListener

Jgroup server for measuring the performance of GMI invocations and server upgrade/recovery time. The UpgradeListener is implemented to allow replicas of UpgradeServer to be upgraded on the fly. The magic is dealt with using reflection on this class to construct a group manager that contains also the upgrade layer. This class simply have to implement the upgraded method of the UpgradeListener interface.

Since:
Jgroup 1.2
Author:
Alberto Montresor, Hein Meling

Nested Class Summary
 
Nested classes/interfaces inherited from interface jgroup.core.MembershipListener
jgroup.core.MembershipListener.AllowDuplicateViews
 
Constructor Summary
UpgradeServer()
           
 
Method Summary
 void hasLeft()
           
static void main(java.lang.String[] argv)
           
 void mtest()
           
 byte[] mtest(byte[] x)
           
 java.lang.String mtest(java.lang.String x)
           
 void prepareChange()
           
 void shutdown()
          Shut down the server
 void test()
           
 byte[] test(byte[] x)
           
 java.lang.String test(java.lang.String x)
           
 void upgraded()
           
 void viewChange(jgroup.core.View view)
           
 void vmtest(byte[] x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeServer

public UpgradeServer()
              throws jgroup.core.JgroupException
Throws:
jgroup.core.JgroupException
Method Detail

mtest

public void mtest()
           throws java.rmi.RemoteException
Specified by:
mtest in interface SpeedTest
Throws:
java.rmi.RemoteException

mtest

public byte[] mtest(byte[] x)
             throws java.rmi.RemoteException
Specified by:
mtest in interface SpeedTest
Throws:
java.rmi.RemoteException

vmtest

public void vmtest(byte[] x)
            throws java.rmi.RemoteException
Specified by:
vmtest in interface SpeedTest
Throws:
java.rmi.RemoteException

mtest

public java.lang.String mtest(java.lang.String x)
                       throws java.rmi.RemoteException
Specified by:
mtest in interface SpeedTest
Throws:
java.rmi.RemoteException

test

public void test()
          throws java.rmi.RemoteException
Specified by:
test in interface SpeedTest
Throws:
java.rmi.RemoteException

test

public byte[] test(byte[] x)
            throws java.rmi.RemoteException
Specified by:
test in interface SpeedTest
Throws:
java.rmi.RemoteException

test

public java.lang.String test(java.lang.String x)
                      throws java.rmi.RemoteException
Specified by:
test in interface SpeedTest
Throws:
java.rmi.RemoteException

shutdown

public void shutdown()
              throws java.rmi.RemoteException
Shut down the server

Throws:
java.rmi.RemoteException

upgraded

public void upgraded()
Specified by:
upgraded in interface jgroup.upgrade.UpgradeListener

viewChange

public void viewChange(jgroup.core.View view)
Specified by:
viewChange in interface jgroup.core.MembershipListener

hasLeft

public void hasLeft()
Specified by:
hasLeft in interface jgroup.core.MembershipListener

prepareChange

public void prepareChange()
Specified by:
prepareChange in interface jgroup.core.MembershipListener

main

public static void main(java.lang.String[] argv)
                 throws jgroup.core.JgroupException
Throws:
jgroup.core.JgroupException


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.