|
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.jvmti.client.internal.launcher.util.AgentControllerDelegate
public class AgentControllerDelegate
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.
| Method Summary | |
|---|---|
static boolean |
checkVMVersion(ILauncherParameterProvider launcher)
The method checks a version of the target VM and returns true if VM version is 1.5. |
static boolean |
checkVMVersion(java.lang.String hostName,
int portNumber,
java.lang.String location)
The method checks a version of the target VM and returns true if VM version is 1.5 |
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)
|
static AgentControllerDelegate |
getInstance()
|
static java.lang.String |
getUnifiedHostName(java.lang.String hostName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AgentControllerDelegate getInstance()
public org.eclipse.tptp.platform.execution.client.core.IAgentController getConnection(java.lang.String hostName,
int portNumber,
boolean reuseExistingConnection)
throws java.lang.Exception
java.lang.Exception
public org.eclipse.tptp.platform.execution.client.core.IAgentController getConnection(java.lang.String hostName,
int portNumber)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getUnifiedHostName(java.lang.String hostName)
public static boolean checkVMVersion(java.lang.String hostName,
int portNumber,
java.lang.String location)
true if VM version is 1.5
hostName - The hostname that Agent Controller is running onportNumber - The port number that Agent Controller is running onlocation - The home directory of the process.
true if VM version is 1.5 or higher otherwise -
falsepublic static boolean checkVMVersion(ILauncherParameterProvider launcher)
true if VM version is 1.5. This method is equivalent to
checkVMversion(launcher.getHostName(), launcher.getPortNumber(), launcher.getLocation()) -
see the checkVMVersion
method for more information.
launcher - provides the expected getter methods whose values are
needed to perform a profile launch.
true if VM version is 1.5 or higher otherwise -
false
|
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 | ||||||||