Skip to content

Commit 71872b4

Browse files
committed
code format
1 parent 1b5a6ed commit 71872b4

34 files changed

+823
-738
lines changed

src/main/java/com/dynatrace/oneagent/sdk/OneAgentSDKFactory.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
*/
2424
public class OneAgentSDKFactory {
2525

26-
/**
27-
* Provides a {@link OneAgentSDK} instance, that has to be used to create
28-
* transactions. It is safe to use returned {@link OneAgentSDK} instance in
29-
* multiple threads. Every application should only create one single SDK
30-
* instance during its lifetime.
31-
*
32-
* @return never null. if no OneAgent present, NOOP implementation gets
33-
* returned.
34-
*/
35-
public static OneAgentSDK createInstance() {
36-
return OneAgentSDKFactoryImpl.createInstance();
37-
}
26+
/**
27+
* Provides a {@link OneAgentSDK} instance, that has to be used to create
28+
* transactions. It is safe to use returned {@link OneAgentSDK} instance in
29+
* multiple threads. Every application should only create one single SDK
30+
* instance during its lifetime.
31+
*
32+
* @return never null. if no OneAgent present, NOOP implementation gets
33+
* returned.
34+
*/
35+
public static OneAgentSDK createInstance() {
36+
return OneAgentSDKFactoryImpl.createInstance();
37+
}
3838
}

src/main/java/com/dynatrace/oneagent/sdk/api/InProcessLink.java

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Represents link used for in-process-tagging. See
2020
* {@link OneAgentSDK#createInProcessLink()} and
2121
* {@link OneAgentSDK#traceInProcessLink(InProcessLink)} for more details.
22+
*
2223
* @since 1.1
2324
*/
2425
public interface InProcessLink {

src/main/java/com/dynatrace/oneagent/sdk/api/InProcessLinkTracer.java

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Tracer used to trace in-process-linking. See
2020
* {@link OneAgentSDK#createInProcessLink()} and
2121
* {@link OneAgentSDK#traceInProcessLink(InProcessLink)} for more details.
22+
*
2223
* @since 1.1
2324
*/
2425
public interface InProcessLinkTracer extends Tracer {

src/main/java/com/dynatrace/oneagent/sdk/api/IncomingRemoteCallTracer.java

+11-10
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,21 @@
1616
package com.dynatrace.oneagent.sdk.api;
1717

1818
/**
19-
* Represents the server side of a remote call.
20-
* This Interface extends {@link Tracer} - it is important to respect the
21-
* mentioned requirements when working with {@link IncomingRemoteCallTracer}.
19+
* Represents the server side of a remote call. This Interface extends
20+
* {@link Tracer} - it is important to respect the mentioned requirements when
21+
* working with {@link IncomingRemoteCallTracer}.
2222
*
2323
*/
2424

2525
public interface IncomingRemoteCallTracer extends Tracer, IncomingTaggable {
2626

27-
/**
28-
* Sets the name of the used remoting protocol.
29-
*
30-
* @param protocolName protocol name
31-
* @since 1.0
32-
*/
33-
void setProtocolName(String protocolName);
27+
/**
28+
* Sets the name of the used remoting protocol.
29+
*
30+
* @param protocolName
31+
* protocol name
32+
* @since 1.0
33+
*/
34+
void setProtocolName(String protocolName);
3435

3536
}

src/main/java/com/dynatrace/oneagent/sdk/api/IncomingTaggable.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@
2121
*/
2222
public interface IncomingTaggable {
2323

24-
/**
25-
* Consumes a tag to continue a pure path. Must be set before a node is
26-
* being started.<br>
27-
* See {@link OutgoingTaggable} to determine how to create a tag.
28-
*
29-
* @param tag
30-
* the tag in String representation - must not be null.
31-
* @since 1.0
32-
*/
33-
void setDynatraceStringTag(String tag);
24+
/**
25+
* Consumes a tag to continue a pure path. Must be set before a node is being
26+
* started.<br>
27+
* See {@link OutgoingTaggable} to determine how to create a tag.
28+
*
29+
* @param tag
30+
* the tag in String representation - must not be null.
31+
* @since 1.0
32+
*/
33+
void setDynatraceStringTag(String tag);
3434

35-
/**
36-
* Same as {@link #setDynatraceStringTag(String)} but consumes binary
37-
* representation of tag.
38-
*
39-
* @param tag
40-
* the tag in binary representation - must not be null.
41-
* @since 1.0
42-
*/
43-
void setDynatraceByteTag(byte[] tag);
35+
/**
36+
* Same as {@link #setDynatraceStringTag(String)} but consumes binary
37+
* representation of tag.
38+
*
39+
* @param tag
40+
* the tag in binary representation - must not be null.
41+
* @since 1.0
42+
*/
43+
void setDynatraceByteTag(byte[] tag);
4444

4545
}

src/main/java/com/dynatrace/oneagent/sdk/api/IncomingWebRequestTracer.java

+27-14
Original file line numberDiff line numberDiff line change
@@ -16,48 +16,61 @@
1616
package com.dynatrace.oneagent.sdk.api;
1717

1818
/**
19-
* Interface for incoming webrequest tracer.
20-
* <a href="https://github.com/Dynatrace/OneAgent-SDK#webrequests">https://github.com/Dynatrace/OneAgent-SDK#webrequests</a>
19+
* Interface for incoming webrequest tracer. <a href=
20+
* "https://github.com/Dynatrace/OneAgent-SDK#webrequests">https://github.com/Dynatrace/OneAgent-SDK#webrequests</a>
2121
*
2222
* @since 1.3
2323
*/
2424
public interface IncomingWebRequestTracer extends Tracer, IncomingTaggable {
2525

2626
/**
27-
* Validates and sets the remote IP address of the incoming web request. This information is very useful to gain information about Load balancers, Proxies and ultimately the end user that is sending the request.
27+
* Validates and sets the remote IP address of the incoming web request. This
28+
* information is very useful to gain information about Load balancers, Proxies
29+
* and ultimately the end user that is sending the request.
2830
*
29-
* @param remoteAddress remote IP address
31+
* @param remoteAddress
32+
* remote IP address
3033
*/
3134
void setRemoteAddress(String remoteAddress);
3235

3336
/**
34-
* All HTTP request headers should be provided to this method. Selective capturing will be done based on sensor configuration.
37+
* All HTTP request headers should be provided to this method. Selective
38+
* capturing will be done based on sensor configuration.
3539
*
36-
* @param name HTTP request header field name
37-
* @param value HTTP request header field value
40+
* @param name
41+
* HTTP request header field name
42+
* @param value
43+
* HTTP request header field value
3844
*/
3945
void addRequestHeader(String name, String value);
4046

4147
/**
42-
* All HTTP parameters should be provided to this method. Selective capturing will be done based on sensor configuration.
48+
* All HTTP parameters should be provided to this method. Selective capturing
49+
* will be done based on sensor configuration.
4350
*
44-
* @param name HTTP parameter name
45-
* @param value HTTP parameter value
51+
* @param name
52+
* HTTP parameter name
53+
* @param value
54+
* HTTP parameter value
4655
*/
4756
void addParameter(String name, String value);
4857

4958
/**
50-
* All HTTP response headers should be provided to this method. Selective capturing will be done based on sensor configuration.
59+
* All HTTP response headers should be provided to this method. Selective
60+
* capturing will be done based on sensor configuration.
5161
*
52-
* @param name HTTP response header field name
53-
* @param value HTTP response header field value
62+
* @param name
63+
* HTTP response header field name
64+
* @param value
65+
* HTTP response header field value
5466
*/
5567
void addResponseHeader(String name, String value);
5668

5769
/**
5870
* Sets the HTTP response status code.
5971
*
60-
* @param statusCode HTTP status code returned to client
72+
* @param statusCode
73+
* HTTP status code returned to client
6174
*/
6275
void setStatusCode(int statusCode);
6376

src/main/java/com/dynatrace/oneagent/sdk/api/LoggingCallback.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@
1616
package com.dynatrace.oneagent.sdk.api;
1717

1818
/**
19-
* LoggingCallback gets called only inside a OneAgentSDK API call when
20-
* an error/warning has occurred. <br>
19+
* LoggingCallback gets called only inside a OneAgentSDK API call when an
20+
* error/warning has occurred. <br>
2121
* Never call any SDK API inside one of these callback methods.
2222
*/
2323
public interface LoggingCallback {
2424

25-
/**
26-
* Just a warning. Something is missing, but OneAgent is working normal.
27-
*
28-
* @param message
29-
* message text. never null.
30-
* @since 1.0
31-
*/
32-
void warn(String message);
25+
/**
26+
* Just a warning. Something is missing, but OneAgent is working normal.
27+
*
28+
* @param message
29+
* message text. never null.
30+
* @since 1.0
31+
*/
32+
void warn(String message);
3333

34-
/**
35-
* Something that should be done can't be done. (e. g. PurePath could
36-
* not be started)
37-
*
38-
* @param message
39-
* message text. never null.
40-
* @since 1.0
41-
*/
42-
void error(String message);
34+
/**
35+
* Something that should be done can't be done. (e. g. PurePath could not be
36+
* started)
37+
*
38+
* @param message
39+
* message text. never null.
40+
* @since 1.0
41+
*/
42+
void error(String message);
4343
}

0 commit comments

Comments
 (0)