|
Lines 1-5
Link Here
|
| 1 |
/********************************************************************** |
1 |
/********************************************************************** |
| 2 |
* Copyright (c) 2005, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 283-288
Link Here
|
| 283 |
} |
283 |
} |
| 284 |
|
284 |
|
| 285 |
public static final void detachAgent(TRCAgentProxy agent) throws InactiveAgentException, InactiveProcessException { |
285 |
public static final void detachAgent(TRCAgentProxy agent) throws InactiveAgentException, InactiveProcessException { |
|
|
286 |
detachAgent(agent, true); |
| 287 |
} |
| 288 |
|
| 289 |
public static final void detachAgent(TRCAgentProxy agent,boolean deregistrate) throws InactiveAgentException, InactiveProcessException { |
| 286 |
TRCProcessProxy process = agent.getProcessProxy(); |
290 |
TRCProcessProxy process = agent.getProcessProxy(); |
| 287 |
String hostName = process.getNode().getName(); |
291 |
String hostName = process.getNode().getName(); |
| 288 |
Node node = PDCoreUtil.profileConnect(hostName, String.valueOf(process.getNode().getPort())); |
292 |
Node node = PDCoreUtil.profileConnect(hostName, String.valueOf(process.getNode().getPort())); |
|
Lines 308-314
Link Here
|
| 308 |
// LoadersUtils.deregisterAgentInstance(agent); |
312 |
// LoadersUtils.deregisterAgentInstance(agent); |
| 309 |
// LoadersUtils.deregisterAgentListener(agent); |
313 |
// LoadersUtils.deregisterAgentListener(agent); |
| 310 |
|
314 |
|
| 311 |
LoadersUtils.deregisterAgentProxyContext(agent); |
315 |
if (deregistrate) { |
|
|
316 |
LoadersUtils.deregisterAgentProxyContext(agent); |
| 317 |
} |
| 312 |
|
318 |
|
| 313 |
if (agent.isToProfileFile()) { |
319 |
if (agent.isToProfileFile()) { |
| 314 |
XMLTraceDataProcessor processor = (XMLTraceDataProcessor) LoadersUtils.locateDataProcessor(agent); |
320 |
XMLTraceDataProcessor processor = (XMLTraceDataProcessor) LoadersUtils.locateDataProcessor(agent); |