Skip to content

Commit 2efb399

Browse files
author
Steve Salas
committed
Merge dev/dotnet into master
2 parents 56163fe + fb9e8fc commit 2efb399

File tree

1,758 files changed

+289412
-505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,758 files changed

+289412
-505
lines changed

.gitmodules

Lines changed: 0 additions & 1 deletion
This file was deleted.

.sbtrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# load 'CodePulse' project by default
2+
alias boot = ;reload ;project CodePulse ;iflast shell

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
/* Code Pulse: a real-time code coverage tool, for more information, see <http://code-pulse.com/>
2+
*
3+
* Copyright (C) 2014-2017 Code Dx, Inc. <https://codedx.com/>
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package com.codedx.codepulse.agent;
19+
20+
import com.codedx.bytefrog.instrumentation.id.*;
21+
import com.codedx.codepulse.agent.control.Controller;
22+
import com.codedx.codepulse.agent.control.StateManager;
23+
import com.codedx.codepulse.agent.message.MessageSenderManager;
24+
import com.codedx.codepulse.agent.common.config.RuntimeAgentConfigurationV1;
25+
import com.codedx.codepulse.agent.common.config.StaticAgentConfiguration;
26+
import com.codedx.codepulse.agent.trace.TraceDataCollector;
27+
28+
/**
29+
* Interface for Agent implementations.
30+
*
31+
* @author RobertF
32+
*/
33+
public interface TraceAgent
34+
{
35+
/**
36+
* Connect to HQ
37+
*
38+
* @param timeout the amount of time to try to connect to HQ for, in
39+
* seconds. A value of zero (0) will disable the timeout
40+
* @return true if connection was successful before the timeout, false
41+
* otherwise
42+
*/
43+
boolean connect(int timeout) throws InterruptedException;
44+
45+
/**
46+
* Returns the active static configuration.
47+
*/
48+
StaticAgentConfiguration getStaticConfig();
49+
50+
/**
51+
* Returns the active runtime configuration.
52+
*/
53+
RuntimeAgentConfigurationV1 getConfig();
54+
55+
/** Returns the active class identifier. */
56+
ClassIdentifier getClassIdentifier();
57+
58+
/** Returns the active method identifier. */
59+
MethodIdentifier getMethodIdentifier();
60+
61+
/**
62+
* Returns the active trace data collector.
63+
*/
64+
TraceDataCollector getDataCollector();
65+
66+
/**
67+
* Returns the active trace state manager.
68+
*/
69+
StateManager getStateManager();
70+
71+
/**
72+
* Returns the active controller.
73+
*/
74+
Controller getControlController();
75+
76+
/**
77+
* Returns the active sender manager.
78+
*/
79+
MessageSenderManager getSenderManager();
80+
81+
/**
82+
* Finishes preparation/initialization before beginning tracing.
83+
*/
84+
void prepare();
85+
86+
/**
87+
* Starts tracing.
88+
*/
89+
void start();
90+
91+
/**
92+
* Immediately sends error message and halts tracing.
93+
*
94+
* @param errorMessage error that caused tracing to be stopped
95+
*/
96+
void killTrace(String errorMessage);
97+
98+
/**
99+
* Sends shutdown message.
100+
*/
101+
void shutdown();
102+
103+
/**
104+
* Sends shutdown message and blocks until all queued data is sent.
105+
*
106+
* @throws InterruptedException
107+
*/
108+
void shutdownAndWait() throws InterruptedException;
109+
110+
/**
111+
* Blocks until trace start command received.
112+
*/
113+
void waitForStart() throws InterruptedException;
114+
}

0 commit comments

Comments
 (0)