|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.execution.util.internal.AgentControllerPool
public class AgentControllerPool
This delegate is used to keep track of connections with Agent Controller. Only one connection should be established with any one host. Establishing connections is expensive and should only be done once. This is a singleton class.
| Field Summary | |
|---|---|
static int |
INCREMENTAL_WAIT
The incremental wait times |
protected static AgentControllerPool |
instance
|
static int |
TOTAL_WAIT
The total incremental wait |
| Constructor Summary | |
|---|---|
protected |
AgentControllerPool()
Hide the construtor |
| Method Summary | |
|---|---|
org.eclipse.tptp.platform.execution.client.core.IAgentController |
getConnection(java.lang.String hostName,
int portNumber)
|
org.eclipse.tptp.platform.execution.client.core.IAgentController |
getConnection(java.lang.String hostName,
int portNumber,
boolean reuseExistingConnection)
Return the connection to the hostname and the port number |
static AgentControllerPool |
getInstance()
Return the instance of this singleton class |
void |
setACFactory(IAgentControllerFactory acFactory)
|
static void |
setAgentControllerFactory(IAgentControllerFactory acFactory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INCREMENTAL_WAIT
public static final int TOTAL_WAIT
protected static AgentControllerPool instance
| Constructor Detail |
|---|
protected AgentControllerPool()
| Method Detail |
|---|
public static AgentControllerPool getInstance()
public org.eclipse.tptp.platform.execution.client.core.IAgentController getConnection(java.lang.String hostName,
int portNumber)
throws java.lang.Exception
java.lang.Exception
public org.eclipse.tptp.platform.execution.client.core.IAgentController getConnection(java.lang.String hostName,
int portNumber,
boolean reuseExistingConnection)
throws java.lang.Exception
hostName - The hostname that Agent Controller is running onportNumber - The port number that Agent Controller is running onreuseExistingConnection - Reuses an existing connection if one already exists
java.lang.Exception - If any errors occur.public void setACFactory(IAgentControllerFactory acFactory)
public static void setAgentControllerFactory(IAgentControllerFactory acFactory)
|
TPTP 4.5.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||