File tree 15 files changed +195
-24
lines changed
main/java/io/github/ivannov/actuator
java/io/github/ivannov/actuator/resources
15 files changed +195
-24
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ -->
2
15
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
16
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
17
<modelVersion >4.0.0</modelVersion >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ -->
2
15
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
16
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
17
<modelVersion >4.0.0</modelVersion >
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .config ;
2
15
3
16
import javax .ws .rs .ApplicationPath ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .inspectors ;
2
15
3
16
import javax .enterprise .context .RequestScoped ;
8
21
import javax .inject .Inject ;
9
22
import java .util .Set ;
10
23
11
- /**
12
- * @author Ivan St. Ivanov.
13
- */
14
24
@ RequestScoped
15
25
public class BeansInspector {
16
26
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .inspectors ;
2
15
3
16
import java .lang .management .ThreadInfo ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .inspectors ;
2
15
3
16
import javax .annotation .PostConstruct ;
13
26
import java .util .HashMap ;
14
27
import java .util .Map ;
15
28
16
- /**
17
- * @author Ivan St. Ivanov.
18
- */
19
29
@ ApplicationScoped
20
30
public class JmxInspectorImpl implements JmxInspector {
21
31
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .resources ;
2
15
3
16
import io .github .ivannov .actuator .inspectors .BeansInspector ;
14
27
import javax .ws .rs .QueryParam ;
15
28
import javax .ws .rs .core .Response ;
16
29
17
- /**
18
- * @author Ivan St. Ivanov.
19
- */
20
30
@ Path ("/beans" )
21
31
@ RequestScoped
22
32
public class BeansResource {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .resources ;
2
15
3
16
import io .github .ivannov .actuator .inspectors .JmxInspector ;
14
27
import java .lang .management .MonitorInfo ;
15
28
import java .lang .management .ThreadInfo ;
16
29
17
- /**
18
- * @author Ivan St. Ivanov
19
- */
20
30
@ Path ("/dump" )
21
31
public class DumpResource {
22
32
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .resources ;
2
15
3
16
import io .github .ivannov .actuator .inspectors .JmxInspector ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .resources ;
2
15
3
16
import io .github .ivannov .actuator .config .RestConfig ;
16
29
import java .net .MalformedURLException ;
17
30
import java .net .URL ;
18
31
19
- /**
20
- * @author Ivan St. Ivanov.
21
- */
22
32
abstract class ActuatorResourcesBaseTest {
23
33
24
34
private @ ArquillianResource URL base ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .resources ;
2
15
3
16
import io .github .ivannov .actuator .inspectors .BeansInspector ;
16
29
17
30
import static org .junit .Assert .*;
18
31
19
- /**
20
- * @author Ivan St. Ivanov.
21
- */
22
32
@ RunWith (Arquillian .class )
23
33
@ RunAsClient
24
34
public class BeansResourceTest extends ActuatorResourcesBaseTest {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .resources ;
2
15
3
16
import io .github .ivannov .actuator .inspectors .JmxInspector ;
9
22
10
23
import static io .github .ivannov .actuator .resources .MetricsResourceTest .*;
11
24
12
- /**
13
- * @author Ivan St. Ivanov.
14
- */
15
25
@ ApplicationScoped
16
26
public class JmxInspectorStub implements JmxInspector {
17
27
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
1
14
package io .github .ivannov .actuator .resources ;
2
15
3
16
import io .github .ivannov .actuator .inspectors .JmxInspector ;
13
26
14
27
import static org .junit .Assert .assertEquals ;
15
28
16
- /**
17
- * @author Ivan St. Ivanov.
18
- */
19
29
@ RunWith (Arquillian .class )
20
30
@ RunAsClient
21
31
public class MetricsResourceTest extends ActuatorResourcesBaseTest {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
+ <!--
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ -->
2
15
<arquillian xmlns =" http://jboss.org/schema/arquillian" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd" >
3
16
<container qualifier =" arquillian-tomee-embedded" />
4
17
<container qualifier =" arquillian-wildfly-managed" >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+ -->
2
15
<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
16
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
17
<modelVersion >4.0.0</modelVersion >
You can’t perform that action at this time.
0 commit comments