forked from pinpoint-apm/pinpoint
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
174 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DisableAsyncContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.navercorp.pinpoint.profiler.context; | ||
|
||
import com.navercorp.pinpoint.bootstrap.context.AsyncContext; | ||
import com.navercorp.pinpoint.bootstrap.context.Trace; | ||
import com.navercorp.pinpoint.profiler.context.id.LocalTraceRoot; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* @author Woonduk Kang(emeroad) | ||
*/ | ||
public class DisableAsyncContext implements AsyncContext { | ||
private final LocalTraceRoot traceRoot; | ||
private final AsyncTraceContext asyncTraceContext; | ||
|
||
public DisableAsyncContext(LocalTraceRoot traceRoot, AsyncTraceContext asyncTraceContext) { | ||
this.traceRoot = Objects.requireNonNull(traceRoot, "traceRoot"); | ||
this.asyncTraceContext = Objects.requireNonNull(asyncTraceContext, "asyncTraceContext"); | ||
} | ||
|
||
@Override | ||
public Trace continueAsyncTraceObject() { | ||
|
||
return null; | ||
} | ||
|
||
@Override | ||
public Trace currentAsyncTraceObject() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void close() { | ||
asyncTraceContext.removeTraceObject(); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DisableAsyncState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.navercorp.pinpoint.profiler.context; | ||
|
||
import com.navercorp.pinpoint.bootstrap.context.AsyncState; | ||
|
||
/** | ||
* @author Woonduk Kang(emeroad) | ||
*/ | ||
public class DisableAsyncState implements AsyncState { | ||
@Override | ||
public void setup() { | ||
|
||
} | ||
|
||
@Override | ||
public boolean await() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public void finish() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.