org.objectweb.proactive.ext.benchsocket
Class BenchSocketFactory

java.lang.Object
  |
  +--org.objectweb.proactive.ext.benchsocket.BenchSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory, java.io.Serializable

public class BenchSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIServerSocketFactory, java.rmi.server.RMIClientSocketFactory, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected static boolean measure
           
 
Constructor Summary
BenchSocketFactory()
           
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
           
 java.net.Socket createSocket(java.lang.String host, int port)
           
static void endMeasure()
           
static void startMeasure()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

measure

protected static boolean measure
Constructor Detail

BenchSocketFactory

public BenchSocketFactory()
Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException
Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException
Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
java.io.IOException

startMeasure

public static void startMeasure()

endMeasure

public static void endMeasure()


Copyright © April 2004 INRIA All Rights Reserved.