Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JMX support; update dependencies
- Loading branch information
Showing
9 changed files
with
105 additions
and
18 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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon Sep 08 14:12:16 CEST 2014 | ||
#Mon Feb 16 21:40:54 CET 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip |
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
38 changes: 38 additions & 0 deletions
38
.../griffon-gsql-core/src/main/java/org/codehaus/griffon/runtime/jmx/GsqlStorageMonitor.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,38 @@ | ||
/* | ||
* Copyright 2014-2015 the original author or authors. | ||
* | ||
* 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 org.codehaus.griffon.runtime.jmx; | ||
|
||
import griffon.core.env.Metadata; | ||
import griffon.plugins.gsql.GsqlStorage; | ||
import groovy.sql.Sql; | ||
import org.codehaus.griffon.runtime.monitor.AbstractObjectStorageMonitor; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
/** | ||
* @author Andres Almiray | ||
* @since 1.1.0 | ||
*/ | ||
public class GsqlStorageMonitor extends AbstractObjectStorageMonitor<Sql> implements GsqlStorageMonitorMXBean { | ||
public GsqlStorageMonitor(@Nonnull Metadata metadata, @Nonnull GsqlStorage delegate) { | ||
super(metadata, delegate); | ||
} | ||
|
||
@Override | ||
protected String getStorageName() { | ||
return "gsql"; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...on-gsql-core/src/main/java/org/codehaus/griffon/runtime/jmx/GsqlStorageMonitorMXBean.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,25 @@ | ||
/* | ||
* Copyright 2014-2015 the original author or authors. | ||
* | ||
* 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 org.codehaus.griffon.runtime.jmx; | ||
|
||
import org.codehaus.griffon.runtime.monitor.ObjectStorageMonitorMXBean; | ||
|
||
/** | ||
* @author Andres Almiray | ||
* @since 1.1.0 | ||
*/ | ||
public interface GsqlStorageMonitorMXBean extends ObjectStorageMonitorMXBean { | ||
} |
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