Add mon-influxdb project.

- Add InfluxDbConfiguration.

Change-Id: I1a28cc4cc3b4e05918078a8a5fbb2ab3858de519
This commit is contained in:
Deklan Dieterly 2014-07-21 09:05:19 -06:00
parent 2c30ec93f2
commit 236fca3215
3 changed files with 76 additions and 1 deletions

19
java/mon-influxdb/pom.xml Normal file
View File

@ -0,0 +1,19 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hpcloud</groupId>
<artifactId>mon-common</artifactId>
<version>${computedVersion}</version>
</parent>
<artifactId>mon-influxdb</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,55 @@
/*
* Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
*
* 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.hpcloud.mon.infrastructure.persistence.influxdb;
import com.fasterxml.jackson.annotation.JsonProperty;
public class InfluxDbConfiguration {
@JsonProperty
String name;
public String getName() {
return name;
}
@JsonProperty
int replicationFactor;
public int getReplicationFactor() {
return replicationFactor;
}
@JsonProperty
String url;
public String getUrl() {
return url;
}
@JsonProperty
String user;
public String getUser() {
return user;
}
@JsonProperty
String password;
public String getPassword() {
return password;
}
}

View File

@ -36,6 +36,7 @@
<module>mon-testing</module>
<module>mon-util</module>
<module>mon-middleware</module>
<module>mon-influxdb</module>
</modules>
<profiles>
@ -113,7 +114,7 @@
<tag>${project.version}</tag>
</configuration>
</plugin>
<!-- Resources, Install and Deploy configuration enable variable replacement on deployment. From
<!-- Resources, Install and Deploy configuration enable variable replacement on deployment. From
http://www.axelfontaine.com/2011/01/maven-releases-on-steroids-2-preparing.html -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>