This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
METRICS-3127: As a user I would like to see the trigger of a trace (H…
…TTP request, message bus, scheduler) as a property
- Loading branch information
Shachar Anchelovich
committed
Dec 30, 2012
1 parent
ea88a7d
commit 40f9ddb
Showing
13 changed files
with
263 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...plugins/jms/src/main/java/com/springsource/insight/plugin/jms/JmsTraceSourceAnalyzer.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,33 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.jms; | ||
|
||
import com.springsource.insight.intercept.trace.AbstractTraceSourceAnalyzer; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class JmsTraceSourceAnalyzer extends AbstractTraceSourceAnalyzer { | ||
private static final JmsTraceSourceAnalyzer INSTANCE = new JmsTraceSourceAnalyzer(); | ||
|
||
private JmsTraceSourceAnalyzer() { | ||
super(TraceSource.MESSAGE_BUS, JMSPluginOperationType.LISTENER_RECEIVE.getOperationType(), | ||
JMSPluginOperationType.RECEIVE.getOperationType(), | ||
JMSPluginOperationType.SEND.getOperationType()); | ||
} | ||
|
||
public static final JmsTraceSourceAnalyzer getInstance() { | ||
return INSTANCE; | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
...ins/jms/src/test/java/com/springsource/insight/plugin/jms/JmsTraceSourceAnalyzerTest.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,28 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.jms; | ||
|
||
import com.springsource.insight.intercept.test.AbstractTraceSourceAnalyzerTestSupport; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class JmsTraceSourceAnalyzerTest extends AbstractTraceSourceAnalyzerTestSupport { | ||
|
||
public JmsTraceSourceAnalyzerTest() { | ||
super(JmsTraceSourceAnalyzer.getInstance(), TraceSource.MESSAGE_BUS, JMSPluginOperationType.LISTENER_RECEIVE.getOperationType(), | ||
JMSPluginOperationType.RECEIVE.getOperationType(), | ||
JMSPluginOperationType.SEND.getOperationType()); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...main/java/com/springsource/insight/plugin/quartz/scheduler/QuartzTraceSourceAnalyzer.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,31 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.quartz.scheduler; | ||
|
||
import com.springsource.insight.intercept.trace.AbstractTraceSourceAnalyzer; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class QuartzTraceSourceAnalyzer extends AbstractTraceSourceAnalyzer { | ||
private static final QuartzTraceSourceAnalyzer INSTANCE = new QuartzTraceSourceAnalyzer(); | ||
|
||
private QuartzTraceSourceAnalyzer() { | ||
super(TraceSource.SCHEDULER, QuartzSchedulerDefinitions.TYPE); | ||
} | ||
|
||
public static final QuartzTraceSourceAnalyzer getInstance() { | ||
return INSTANCE; | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
.../java/com/springsource/insight/plugin/quartz/scheduler/QuartzTraceSourceAnalyzerTest.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,27 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.quartz.scheduler; | ||
|
||
import com.springsource.insight.intercept.test.AbstractTraceSourceAnalyzerTestSupport; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class QuartzTraceSourceAnalyzerTest extends AbstractTraceSourceAnalyzerTestSupport { | ||
|
||
public QuartzTraceSourceAnalyzerTest() { | ||
super(QuartzTraceSourceAnalyzer.getInstance(), TraceSource.SCHEDULER, QuartzSchedulerDefinitions.TYPE); | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
...c/main/java/com/springsource/insight/plugin/rabbitmqClient/RabbitTraceSourceAnalyzer.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,32 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.rabbitmqClient; | ||
|
||
import com.springsource.insight.intercept.trace.AbstractTraceSourceAnalyzer; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class RabbitTraceSourceAnalyzer extends AbstractTraceSourceAnalyzer { | ||
private static final RabbitTraceSourceAnalyzer INSTANCE = new RabbitTraceSourceAnalyzer(); | ||
|
||
private RabbitTraceSourceAnalyzer() { | ||
super(TraceSource.MESSAGE_BUS, RabbitPluginOperationType.CONSUME.getOperationType(), | ||
RabbitPluginOperationType.PUBLISH.getOperationType()); | ||
} | ||
|
||
public static final RabbitTraceSourceAnalyzer getInstance() { | ||
return INSTANCE; | ||
} | ||
} |
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
29 changes: 29 additions & 0 deletions
29
...st/java/com/springsource/insight/plugin/rabbitmqClient/RabbitTraceSourceAnalyzerTest.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,29 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.rabbitmqClient; | ||
|
||
import com.springsource.insight.intercept.test.AbstractTraceSourceAnalyzerTestSupport; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class RabbitTraceSourceAnalyzerTest extends AbstractTraceSourceAnalyzerTestSupport { | ||
|
||
public RabbitTraceSourceAnalyzerTest() { | ||
super(RabbitTraceSourceAnalyzer.getInstance(), TraceSource.MESSAGE_BUS, RabbitPluginOperationType.CONSUME.getOperationType(), | ||
RabbitPluginOperationType.PUBLISH.getOperationType()); | ||
} | ||
|
||
|
||
} |
32 changes: 32 additions & 0 deletions
32
...ervlet/src/main/java/com/springsource/insight/plugin/servlet/HttpTraceSourceAnalyzer.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,32 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.servlet; | ||
|
||
import com.springsource.insight.intercept.operation.OperationType; | ||
import com.springsource.insight.intercept.trace.AbstractTraceSourceAnalyzer; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class HttpTraceSourceAnalyzer extends AbstractTraceSourceAnalyzer { | ||
private static final HttpTraceSourceAnalyzer INSTANCE = new HttpTraceSourceAnalyzer(); | ||
|
||
private HttpTraceSourceAnalyzer() { | ||
super(TraceSource.HTTP, OperationType.HTTP); | ||
} | ||
|
||
public static final HttpTraceSourceAnalyzer getInstance() { | ||
return INSTANCE; | ||
} | ||
} |
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
28 changes: 28 additions & 0 deletions
28
...et/src/test/java/com/springsource/insight/plugin/servlet/HttpTraceSourceAnalyzerTest.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,28 @@ | ||
/** | ||
* Copyright (c) 2009-2011 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.springsource.insight.plugin.servlet; | ||
|
||
import com.springsource.insight.intercept.operation.OperationType; | ||
import com.springsource.insight.intercept.test.AbstractTraceSourceAnalyzerTestSupport; | ||
import com.springsource.insight.intercept.trace.TraceSource; | ||
|
||
public class HttpTraceSourceAnalyzerTest extends AbstractTraceSourceAnalyzerTestSupport { | ||
|
||
public HttpTraceSourceAnalyzerTest() { | ||
super(HttpTraceSourceAnalyzer.getInstance(), TraceSource.HTTP, OperationType.HTTP); | ||
} | ||
|
||
} |