org.objectweb.proactive.ext.benchsocket
Class BenchIbisSocketFactory

java.lang.Object
  extended by ibis.util.IbisSocketFactory
      extended by org.objectweb.proactive.ext.benchsocket.BenchIbisSocketFactory
All Implemented Interfaces:
BenchFactoryInterface

public class BenchIbisSocketFactory
extends ibis.util.IbisSocketFactory
implements BenchFactoryInterface


Field Summary
protected static java.util.ArrayList<BenchStream> streamList
           
 
Constructor Summary
BenchIbisSocketFactory()
           
 
Method Summary
 java.net.Socket accept(java.net.ServerSocket a)
           
 void addStream(BenchStream s)
           
 int allocLocalPort()
           
 void close(java.io.InputStream in, java.io.OutputStream out, java.net.Socket s)
           
 java.net.ServerSocket createServerSocket(int port, java.net.InetAddress localAddress, boolean retry)
           
 java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress addr)
           
 java.net.Socket createSocket(java.net.InetAddress rAddr, int rPort)
           
 java.net.Socket createSocket(java.net.InetAddress dest, int port, java.net.InetAddress localIP, long timeoutMillis)
           
static void dumpStreamIntermediateResults()
           
 
Methods inherited from class ibis.util.IbisSocketFactory
createFactory, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

streamList

protected static java.util.ArrayList<BenchStream> streamList
Constructor Detail

BenchIbisSocketFactory

public BenchIbisSocketFactory()
Method Detail

addStream

public void addStream(BenchStream s)
Specified by:
addStream in interface BenchFactoryInterface

dumpStreamIntermediateResults

public static void dumpStreamIntermediateResults()

accept

public java.net.Socket accept(java.net.ServerSocket a)
                       throws java.io.IOException
Overrides:
accept in class ibis.util.IbisSocketFactory
Throws:
java.io.IOException

close

public void close(java.io.InputStream in,
                  java.io.OutputStream out,
                  java.net.Socket s)
Overrides:
close in class ibis.util.IbisSocketFactory

allocLocalPort

public int allocLocalPort()
Specified by:
allocLocalPort in class ibis.util.IbisSocketFactory

createServerSocket

public java.net.ServerSocket createServerSocket(int port,
                                                int backlog,
                                                java.net.InetAddress addr)
                                         throws java.io.IOException
Specified by:
createServerSocket in class ibis.util.IbisSocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.InetAddress rAddr,
                                    int rPort)
                             throws java.io.IOException
Specified by:
createSocket in class ibis.util.IbisSocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.net.InetAddress dest,
                                    int port,
                                    java.net.InetAddress localIP,
                                    long timeoutMillis)
                             throws java.io.IOException
Specified by:
createSocket in class ibis.util.IbisSocketFactory
Throws:
java.io.IOException

createServerSocket

public java.net.ServerSocket createServerSocket(int port,
                                                java.net.InetAddress localAddress,
                                                boolean retry)
                                         throws java.io.IOException
Specified by:
createServerSocket in class ibis.util.IbisSocketFactory
Throws:
java.io.IOException


Copyright 2001-2007 INRIA All Rights Reserved.