jgroup.test.performance
Class RMIServer

java.lang.Object
  extended by jgroup.test.performance.RMIServer
All Implemented Interfaces:
java.rmi.Remote, jgroup.core.ExternalGMIListener, SpeedTest

public class RMIServer
extends java.lang.Object
implements SpeedTest

RMI server for measuring the performance of standard RMI invocations. Can be executed remotely through the Executor class, since it implements the Server interface.

Since:
Jgroup 1.1
Author:
Alberto Montresor

Constructor Summary
RMIServer()
          Export the server; create a local registry in order to bind the server.
 
Method Summary
 void halt()
          Initialization; nothing to do
static void main(java.lang.String[] argv)
          Start server from command line
 void mtest()
           
 byte[] mtest(byte[] x)
           
 java.lang.String mtest(java.lang.String x)
           
 void shutdown()
          Shut down the server
 void start(java.lang.Object[] args)
          Initialization; nothing to do
 void test()
           
 byte[] test(byte[] x)
           
 java.lang.String test(java.lang.String x)
           
 void vmtest(byte[] x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIServer

public RMIServer()
          throws java.rmi.RemoteException,
                 jgroup.core.JgroupException,
                 java.io.IOException
Export the server; create a local registry in order to bind the server.

Throws:
java.rmi.RemoteException
jgroup.core.JgroupException
java.io.IOException
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Start server from command line

Throws:
java.lang.Exception

start

public void start(java.lang.Object[] args)
           throws java.lang.Exception
Initialization; nothing to do

Throws:
java.lang.Exception

halt

public void halt()
          throws java.lang.Exception
Initialization; nothing to do

Throws:
java.lang.Exception

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

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

shutdown

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

Throws:
java.rmi.RemoteException


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