public void accept(IExecutionDataVisitor executionDataVisitor,
ISessionInfoVisitor sessionInfoVisitor) throws CoreException {
try {
final Socket socket = new Socket(address, port);
final RemoteControlWriter writer = new RemoteControlWriter(
socket.getOutputStream());
final RemoteControlReader reader = new RemoteControlReader(
socket.getInputStream());
reader.setExecutionDataVisitor(executionDataVisitor);
reader.setSessionInfoVisitor(sessionInfoVisitor);
writer.visitDumpCommand(true, reset);
reader.read();
socket.close();
} catch (IOException e) {
throw new CoreException(EclEmmaStatus.AGENT_CONNECT_ERROR.getStatus(
address, Integer.valueOf(port), e));