Skip to content

Commit

Permalink
chore(CI) : Find correct jar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Wojtczak committed May 26, 2017
2 parents 6e0dab0 + e6f7f00 commit 8024a66
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ deploy:
- provider: releases
api_key:
secure: aMXkvlBNV88HToQ92y4SqhxHGVJASWuM/EtEn6DDohtlyONQOJ5zTQS/mEtDHhSKddHqDnTlbdrJMI0rhlQyIr4E74wzB/zKCkR6dcm2e1lKts0bTvqke7iO1w4mGDnAeQEBlOjrTiJItmemZg1uf45EFBljGfiQWwQlZG0I16Bl19waOQ1tv43XLOFRl1P2GJXrpwTw6W2uQfkMNUUTnFumeDvLXNIB/tePUnh3/FRQGLTj8gBG7YoU64T/XOXG4u3YTSm/HbBIU08ZVS1BCn2hSc/L4/5Hia3iWKv6uKeTEqiE/1zP9Tw/wduHordCcNYnw6tF/f/iEfa2cH8t2FSq8HzYdK/O0pmPHD0Kk0JPtm0fjGgG5f58489eeyibhNL78/nNhc/WyKrRCUTIvchkjk2/xPN1gZkkutb6u1v0PC/K+gJVB3tkqALI4HcWQ6gI1TxA5GXP3c5VOQPOcaNVdwLKuaa2+CmkMiAOibTYnJzys01pky0i4/zgZ+wZ15efk5cdcdsKLWHyjTVWFle1xSmocysEKe/Mq7GpKdvZn3Jy5+pUFKjYbKylvnEMbV01ogOTuQq+LslAV+0oYhetawMHti35KZ1xW5r7CIER7gKKWrd9/H5an2HfFHEYDEyp+NsW7XtRR5AP9j7CN6/bG6FMwsnE+Nzsn7DqgQE=
file: target/healthcheck-*.jar
file: target/healthcheck-$TRAVIS_TAG.jar
on:
tags: true
34 changes: 31 additions & 3 deletions src/main/java/io/github/maxwo/healthcheck/dao/HealthCheckDao.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,44 @@
/**
*
* Copyright 2017 Maxime Wojtczak
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIO
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package io.github.maxwo.healthcheck.dao;

/**
* @author max
*
* Maintain the health state accross the whole application.
*
* @author Maxime Wojtczak
*/
public interface HealthCheckDao {

/**
* Set the health state.
*
* @param state State to set
*/
void setState(final boolean state);

/**
* Retrieve the health state.
*
* @return The health state.
*/
boolean getState();

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
/**
*
* Copyright 2017 Maxime Wojtczak
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIO
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package io.github.maxwo.healthcheck.dao.impl;

Expand All @@ -8,25 +25,20 @@
import io.github.maxwo.healthcheck.dao.HealthCheckDao;

/**
* @author max
*
* The DAO for health state.
*
* @author Maxime Wojtczak
*/
@Component
public class HealthCheckDaoImpl implements HealthCheckDao {

private boolean state = false;

/* (non-Javadoc)
* @see io.github.maxwo.healthcheck.dao.HealthCheckDao#setState(boolean)
*/
@Override
public void setState(boolean state) {
this.state = state;
}

/* (non-Javadoc)
* @see io.github.maxwo.healthcheck.dao.HealthCheckDao#getState()
*/
@Override
public boolean getState() {
return state;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public class HealthStateIndicator implements HealthIndicator {
@Autowired
private HealthCheckDao healthCheckDao;

/* (non-Javadoc)
/**
* {@inheritDoc}
* @see org.springframework.boot.actuate.health.HealthIndicator#health()
*/
@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
spring.main.banner-mode=off

# Application informations
info.app.name=healthcheck
info.app.name=${project.artifactId}
info.app.version=${project.version}

0 comments on commit 8024a66

Please sign in to comment.