net.grinder.console.client
Class ConsoleConnectionFactory

java.lang.Object
  extended by net.grinder.console.client.ConsoleConnectionFactory

public class ConsoleConnectionFactory
extends Object

Something that can create ConsoleConnection instances.

Author:
Philip Aston

Constructor Summary
  ConsoleConnectionFactory()
          Constructor.
protected ConsoleConnectionFactory(ScheduledExecutorService executor)
          Constructor.
 
Method Summary
 ConsoleConnection connect(String host, int port)
          Create a ConsoleConnection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleConnectionFactory

public ConsoleConnectionFactory()
Constructor.


ConsoleConnectionFactory

protected ConsoleConnectionFactory(ScheduledExecutorService executor)
Constructor.

Parameters:
executor - Scheduled executor used to send keep alive messages.
Method Detail

connect

public ConsoleConnection connect(String host,
                                 int port)
                          throws ConsoleConnectionException
Create a ConsoleConnection.

Parameters:
host - Console host.
port - Console port.
Returns:
The ConsoleConnection.
Throws:
ConsoleConnectionException - Failed to establish a connection.


Copyright © 2000-2013. All Rights Reserved.