Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.1 #345

Merged
merged 22 commits into from
Dec 27, 2018
Merged

0.2.1 #345

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1494a77
Fix apache/incubator-dubbo-spring-boot-project#169
mercyblitz Jun 8, 2018
0efa7c9
Merge remote-tracking branch 'upstream/master'
mercyblitz Jun 8, 2018
531debd
Merge remote-tracking branch 'upstream/master'
mercyblitz Dec 7, 2018
2627f2c
Polish : apache/incubator-dubbo-spring-boot-project#324 & apache/incu…
mercyblitz Dec 12, 2018
cc3c0b5
Polish : apache/incubator-dubbo-spring-boot-project#315
mercyblitz Dec 12, 2018
fea78cd
Polish : apache/incubator-dubbo-spring-boot-project#321
mercyblitz Dec 14, 2018
8bca1c1
Polish : apache/incubator-dubbo-spring-boot-project#321
mercyblitz Dec 14, 2018
a35788f
Polish : apache/incubator-dubbo-spring-boot-project#321 for test case
mercyblitz Dec 14, 2018
60bc540
Polish : Update Demos
mercyblitz Dec 18, 2018
49c1377
Polish : Update version to be 0.2.1
mercyblitz Dec 18, 2018
f55886d
Polish : apache/incubator-dubbo-spring-boot-project#319
mercyblitz Dec 18, 2018
0a44ae0
Polish : apache/incubator-dubbo-spring-boot-project#226
mercyblitz Dec 18, 2018
49b1bbb
Polish : apache/incubator-dubbo-spring-boot-project#309
mercyblitz Dec 18, 2018
eac18ce
Fix the test case's bugs
mercyblitz Dec 18, 2018
50d6c02
Fix the test case's bugs
mercyblitz Dec 18, 2018
717c6b0
Fix a JavaDoc issue
mercyblitz Dec 18, 2018
213bcee
Update SNAPSHOT and add exclude list
mercyblitz Dec 18, 2018
049aaea
Update SNAPSHOT to be 0.2.1-SNAPSHOT
mercyblitz Dec 18, 2018
4b6b610
Update JDK versions
mercyblitz Dec 18, 2018
9cc4533
Update JDK versions
mercyblitz Dec 18, 2018
c668b90
Reactor & remove author info
mercyblitz Dec 19, 2018
71ffe43
Refactor : to save a shutdown hook thread
mercyblitz Dec 27, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: java
sudo: false # faster builds

jdk:
- oraclejdk10
- oraclejdk9
- openjdk10
- openjdk9
- oraclejdk8

script: "mvn clean package"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can introduce the latest `dubbo-spring-boot-starter` to your project by addi
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.0</version>
<version>0.2.1-SNAPSHOT</version>
</dependency>

<!-- Dubbo -->
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.0</version>
<version>0.2.1-SNAPSHOT</version>
</dependency>

<!-- Dubbo -->
Expand Down
24 changes: 12 additions & 12 deletions dubbo-spring-boot-actuator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ You can introduce the latest `dubbo-spring-boot-actuator` to your project by ad
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-actuator</artifactId>
<version>0.2.0</version>
<version>0.2.1-SNAPSHOT</version>
</dependency>
```
If your project failed to resolve the dependency, try to add the following repository:
Expand Down Expand Up @@ -162,11 +162,11 @@ Actuator endpoint `dubbo` supports Actuator Endpoints :
| ID | Enabled | HTTP URI | HTTP Method | Description | Content Type |
| ------------------- | ----------- | ----------------------------------- | ------------------ | ------------------ | ------------------ |
| `dubbo` | `true` | `/actuator/dubbo` | `GET` | Exposes Dubbo's meta data | `application/json` |
| `dubbo-properties` | `true` | `/actuator/dubbo/properties` | `GET` | Exposes all Dubbo's Properties | `application/json` |
| `dubbo-services` | `false` | `/dubbo/services` | `GET` | Exposes all Dubbo's `ServiceBean` | `application/json` |
| `dubbo-references` | `false` | `/actuator/dubbo/references` | `GET` | Exposes all Dubbo's `ReferenceBean` | `application/json` |
| `dubbo-configs` | `true` | `/actuator/dubbo/configs` | `GET` | Exposes all Dubbo's `*Config` | `application/json` |
| `dubbo-shutdown` | `false` | `/actuator/dubbo/shutdown` | `POST` | Shutdown Dubbo services | `application/json` |
| `dubboProperties` | `true` | `/actuator/dubbo/properties` | `GET` | Exposes all Dubbo's Properties | `application/json` |
| `dubboServices` | `false` | `/dubbo/services` | `GET` | Exposes all Dubbo's `ServiceBean` | `application/json` |
| `dubboReferences` | `false` | `/actuator/dubbo/references` | `GET` | Exposes all Dubbo's `ReferenceBean` | `application/json` |
| `dubboConfigs` | `true` | `/actuator/dubbo/configs` | `GET` | Exposes all Dubbo's `*Config` | `application/json` |
| `dubboShutdown` | `false` | `/actuator/dubbo/shutdown` | `POST` | Shutdown Dubbo services | `application/json` |



Expand All @@ -184,7 +184,7 @@ Actuator endpoint `dubbo` supports Actuator Endpoints :
{
"timestamp": 1516623290166,
"versions": {
"dubbo-spring-boot": "0.2.0"
"dubbo-spring-boot": "0.2.0",
"dubbo": "2.6.2"
},
"urls": {
Expand Down Expand Up @@ -503,10 +503,10 @@ Dubbo Spring Boot providers actuator endpoints , however some of them are disabl
```properties
# Enables Dubbo All Endpoints
management.endpoint.dubbo.enabled = true
management.endpoint.dubbo-shutdown.enabled = true
management.endpoint.dubbo-configs.enabled = true
management.endpoint.dubbo-services.enabled = true
management.endpoint.dubbo-references.enabled = true
management.endpoint.dubbo-properties.enabled = true
management.endpoint.dubboShutdown.enabled = true
management.endpoint.dubboConfigs.enabled = true
management.endpoint.dubboServices.enabled = true
management.endpoint.dubboReferences.enabled = true
management.endpoint.dubboProperties.enabled = true
```

4 changes: 2 additions & 2 deletions dubbo-spring-boot-actuator/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-starter</artifactId>
<version>0.2.0</version>
<version>0.2.1-SNAPSHOT</version>
</dependency>

<!-- Production-Ready 特性 -->
<dependency>
<groupId>com.alibaba.boot</groupId>
<artifactId>dubbo-spring-boot-actuator</artifactId>
<version>0.2.0</version>
<version>0.2.1-SNAPSHOT</version>
</dependency>

...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
*/
package com.alibaba.boot.dubbo.actuate.autoconfigure;

import com.alibaba.boot.dubbo.actuate.endpoint.*;
import com.alibaba.boot.dubbo.actuate.endpoint.DubboConfigsMetadataEndpoint;
import com.alibaba.boot.dubbo.actuate.endpoint.DubboEndpoint;
import com.alibaba.boot.dubbo.actuate.endpoint.DubboPropertiesEndpoint;
import com.alibaba.boot.dubbo.actuate.endpoint.DubboReferencesMetadataEndpoint;
import com.alibaba.boot.dubbo.actuate.endpoint.DubboServicesMetadataEndpoint;
import com.alibaba.boot.dubbo.actuate.endpoint.DubboShutdownEndpoint;

import org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
Expand All @@ -27,7 +33,7 @@
/**
* Dubbo {@link Endpoint} Auto-{@link Configuration}
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @see Endpoint
* @see Configuration
* @since 0.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.alibaba.boot.dubbo.actuate.health.DubboHealthIndicator;
import com.alibaba.boot.dubbo.actuate.health.DubboHealthIndicatorProperties;
import com.alibaba.boot.dubbo.autoconfigure.DubboAutoConfiguration;

import org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.health.ConditionalOnEnabledHealthIndicator;
import org.springframework.boot.actuate.health.HealthIndicator;
Expand All @@ -33,7 +34,7 @@
/**
* Dubbo {@link DubboHealthIndicator} Auto Configuration
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @see HealthIndicator
* @since 1.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.alibaba.dubbo.config.ProtocolConfig;
import com.alibaba.dubbo.config.spring.ServiceBean;
import com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor;

import org.springframework.beans.BeansException;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.context.ApplicationContext;
Expand All @@ -45,7 +46,7 @@
/**
* Abstract Dubbo {@link Endpoint @Endpoint}
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @since 0.2.0
*/
public abstract class AbstractDubboEndpoint implements ApplicationContextAware, EnvironmentAware {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@
*/
package com.alibaba.boot.dubbo.actuate.endpoint;

import com.alibaba.dubbo.config.*;
import com.alibaba.dubbo.config.AbstractConfig;
import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.ConsumerConfig;
import com.alibaba.dubbo.config.MethodConfig;
import com.alibaba.dubbo.config.ModuleConfig;
import com.alibaba.dubbo.config.MonitorConfig;
import com.alibaba.dubbo.config.ProtocolConfig;
import com.alibaba.dubbo.config.ProviderConfig;
import com.alibaba.dubbo.config.ReferenceConfig;
import com.alibaba.dubbo.config.RegistryConfig;
import com.alibaba.dubbo.config.ServiceConfig;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;

Expand All @@ -29,10 +40,10 @@
/**
* Dubbo Configs Metadata {@link Endpoint}
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @since 0.2.0
*/
@Endpoint(id = "dubbo-configs")
@Endpoint(id = "dubboConfigs")
public class DubboConfigsMetadataEndpoint extends AbstractDubboEndpoint {

@ReadOperation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,37 +18,29 @@

import com.alibaba.boot.dubbo.util.DubboUtils;
import com.alibaba.dubbo.common.Version;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;

import java.util.LinkedHashMap;
import java.util.Map;

import static com.alibaba.boot.dubbo.actuate.endpoint.DubboEndpoint.DUBBO_ENDPOINT_ID;
import static com.alibaba.boot.dubbo.util.DubboUtils.*;
import static com.alibaba.boot.dubbo.util.DubboUtils.DUBBO_GITHUB_URL;
import static com.alibaba.boot.dubbo.util.DubboUtils.DUBBO_MAILING_LIST;
import static com.alibaba.boot.dubbo.util.DubboUtils.DUBBO_SPRING_BOOT_GITHUB_URL;
import static com.alibaba.boot.dubbo.util.DubboUtils.DUBBO_SPRING_BOOT_GIT_URL;
import static com.alibaba.boot.dubbo.util.DubboUtils.DUBBO_SPRING_BOOT_ISSUES_URL;

/**
* Actuator {@link Endpoint} to expose Dubbo Meta Data
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @see Endpoint
* @since 1.0.0
*/
@Endpoint(id = DUBBO_ENDPOINT_ID)
@Endpoint(id = "dubbo")
public class DubboEndpoint {

public static final String DUBBO_ENDPOINT_ID = "dubbo";

public static final String DUBBO_SHUTDOWN_ENDPOINT_ID = DUBBO_ENDPOINT_ID + "-shutdown";

public static final String DUBBO_CONFIGS_ENDPOINT_ID = DUBBO_ENDPOINT_ID + "-configs";

public static final String DUBBO_SERVICES_ENDPOINT_ID = DUBBO_ENDPOINT_ID + "-services";

public static final String DUBBO_REFERENCES_ENDPOINT_ID = DUBBO_ENDPOINT_ID + "-references";

public static final String DUBBO_PROPERTIES_ENDPOINT_ID = DUBBO_ENDPOINT_ID + "-properties";

@ReadOperation
public Map<String, Object> invoke() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@

import java.util.SortedMap;

import static com.alibaba.boot.dubbo.actuate.endpoint.DubboEndpoint.DUBBO_PROPERTIES_ENDPOINT_ID;
import static com.alibaba.boot.dubbo.util.DubboUtils.filterDubboProperties;

/**
* Dubbo Properties {@link Endpoint}
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @since 1.0.0
*/
@Endpoint(id = DUBBO_PROPERTIES_ENDPOINT_ID)
@Endpoint(id = "dubboProperties")
public class DubboPropertiesEndpoint extends AbstractDubboEndpoint {

@ReadOperation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.spring.ReferenceBean;
import com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor;

import org.springframework.beans.factory.annotation.InjectionMetadata;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
Expand All @@ -29,10 +30,10 @@
/**
* Dubbo {@link Reference} Metadata {@link Endpoint}
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @since 1.0.0
*/
@Endpoint(id = "dubbo-references")
@Endpoint(id = "dubboReferences")
public class DubboReferencesMetadataEndpoint extends AbstractDubboEndpoint {

@ReadOperation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.config.spring.ServiceBean;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;

Expand All @@ -27,10 +28,10 @@
/**
* Dubbo {@link Service} Metadata {@link Endpoint}
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @since 0.2.0
*/
@Endpoint(id = "dubbo-services")
@Endpoint(id = "dubboServices")
public class DubboServicesMetadataEndpoint extends AbstractDubboEndpoint {

@ReadOperation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.alibaba.dubbo.config.ProtocolConfig;
import com.alibaba.dubbo.config.spring.ServiceBean;
import com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation;

Expand All @@ -31,10 +32,10 @@
/**
* Dubbo Shutdown
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @since 0.2.0
*/
@Endpoint(id = "dubbo-shutdown")
@Endpoint(id = "dubboShutdown")
public class DubboShutdownEndpoint extends AbstractDubboEndpoint {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.alibaba.dubbo.common.status.StatusChecker;
import com.alibaba.dubbo.config.ProtocolConfig;
import com.alibaba.dubbo.config.ProviderConfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.health.AbstractHealthIndicator;
import org.springframework.boot.actuate.health.Health;
Expand All @@ -37,7 +38,7 @@
/**
* Dubbo {@link HealthIndicator}
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @see HealthIndicator
* @since 1.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.alibaba.boot.dubbo.actuate.health;

import com.alibaba.dubbo.common.status.StatusChecker;

import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.boot.context.properties.ConfigurationProperties;

Expand All @@ -29,7 +30,7 @@
/**
* Dubbo {@link HealthIndicator} Properties
*
* @author <a href="mailto:[email protected]">Mercy</a>
*
* @see HealthIndicator
* @since 1.0.0
*/
Expand All @@ -53,7 +54,6 @@ public void setStatus(Status status) {

/**
* The nested class for {@link StatusChecker}'s names
* <p>
* <pre>
* registry=com.alibaba.dubbo.registry.status.RegistryStatusChecker
* spring=com.alibaba.dubbo.config.spring.status.SpringStatusChecker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

# Set enabled for Dubbo Endpoints
management.endpoint.dubbo.enabled = true
management.endpoint.dubbo-shutdown.enabled = false
management.endpoint.dubbo-configs.enabled = true
management.endpoint.dubbo-services.enabled = false
management.endpoint.dubbo-references.enabled = false
management.endpoint.dubbo-properties.enabled = true
management.endpoint.dubboShutdown.enabled = false
management.endpoint.dubboConfigs.enabled = true
management.endpoint.dubboServices.enabled = false
management.endpoint.dubboReferences.enabled = false
management.endpoint.dubboProperties.enabled = true

# "management.endpoints.web.base-path" should not be configured in this file

# Re-defines path-mapping of Dubbo Web Endpoints
management.endpoints.web.path-mapping.dubbo-shutdown = dubbo/shutdown
management.endpoints.web.path-mapping.dubbo-configs = dubbo/configs
management.endpoints.web.path-mapping.dubbo-services = dubbo/services
management.endpoints.web.path-mapping.dubbo-references = dubbo/references
management.endpoints.web.path-mapping.dubbo-properties = dubbo/properties
management.endpoints.web.path-mapping.dubboShutdown = dubbo/shutdown
management.endpoints.web.path-mapping.dubboConfigs = dubbo/configs
management.endpoints.web.path-mapping.dubboServices = dubbo/services
management.endpoints.web.path-mapping.dubboReferences = dubbo/references
management.endpoints.web.path-mapping.dubboProperties = dubbo/properties


Loading