Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 195644 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/tptp/platform/jvmti/client/internal/launcher/util/AgentControllerDelegate.java (-8 / +6 lines)
Lines 10-22 Link Here
10
 **********************************************************************/
10
 **********************************************************************/
11
package org.eclipse.tptp.platform.jvmti.client.internal.launcher.util;
11
package org.eclipse.tptp.platform.jvmti.client.internal.launcher.util;
12
12
13
import org.eclipse.tptp.platform.common.ui.internal.util.ACConnectionPool;
13
import org.eclipse.tptp.platform.execution.client.agent.internal.AgentStatePool;
14
import org.eclipse.tptp.platform.execution.client.agent.internal.AgentStatePool;
14
import org.eclipse.tptp.platform.execution.client.core.IAgentController;
15
import org.eclipse.tptp.platform.execution.client.core.IAgentController;
15
import org.eclipse.tptp.platform.execution.client.core.IConsole;
16
import org.eclipse.tptp.platform.execution.client.core.IConsole;
16
import org.eclipse.tptp.platform.execution.client.core.IDataProcessor;
17
import org.eclipse.tptp.platform.execution.client.core.IDataProcessor;
17
import org.eclipse.tptp.platform.execution.client.core.IProcess;
18
import org.eclipse.tptp.platform.execution.client.core.IProcess;
18
import org.eclipse.tptp.platform.execution.client.core.internal.IProcessListener;
19
import org.eclipse.tptp.platform.execution.client.core.internal.IProcessListener;
19
import org.eclipse.tptp.platform.execution.util.internal.AgentControllerPool;
20
import org.eclipse.tptp.platform.jvmti.client.internal.launcher.ILauncherParameterProvider;
20
import org.eclipse.tptp.platform.jvmti.client.internal.launcher.ILauncherParameterProvider;
21
21
22
/**
22
/**
Lines 41-54 Link Here
41
	public static AgentControllerDelegate getInstance() {
41
	public static AgentControllerDelegate getInstance() {
42
		return instance;
42
		return instance;
43
	}
43
	}
44
44
 
45
	public IAgentController getConnection(String hostName, int portNumber,
45
	public IAgentController getConnection(String hostName, int portNumber, boolean reuseExistingConnection) throws Exception {
46
			boolean reuseExistingConnection) throws Exception {
46
		return ACConnectionPool.getACConnection(hostName, portNumber, reuseExistingConnection); 
47
		return AgentControllerPool.getInstance().getConnection(hostName, portNumber);
48
	}
47
	}
49
48
50
	public IAgentController getConnection(String hostName, int portNumber)
49
	public IAgentController getConnection(String hostName, int portNumber) throws Exception {
51
			throws Exception {
52
		return getConnection(hostName, portNumber, true);
50
		return getConnection(hostName, portNumber, true);
53
	}
51
	}
54
52
Lines 105-111 Link Here
105
	    String location) {
103
	    String location) {
106
104
107
	try {
105
	try {
108
	    IAgentController ac = AgentControllerPool.getInstance().getConnection(hostName, portNumber);
106
	    IAgentController ac = ACConnectionPool.getACConnection(hostName, portNumber);
109
107
110
	    IProcess process = ac.createProcess();
108
	    IProcess process = ac.createProcess();
111
	    process.setExecutable("java.exe");
109
	    process.setExecutable("java.exe");

Return to bug 195644