-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Modify spring-cloud-azure-core, spring-cloud-azure-service, and spring-cloud-azure-resourcemanager according to API review comments #25851
Merged
saragluna
merged 34 commits into
Azure:feature/azure-spring-cloud-4.0
from
saragluna:xiada/feature/spring-cloud-azure-apiview
Dec 24, 2021
Merged
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
9300379
complete javadocs
saragluna ecf63a5
Merge branch 'feature/azure-spring-cloud-4.0' into xiada/feature/spri…
saragluna b0e69d9
complete javadocs and remove some unused classes
saragluna b7d9605
change according to API review
saragluna c5d8025
make classes final by default
saragluna a76154b
add java docs
saragluna 8801b81
fix compilation error
saragluna d5011ca
move some classes to implementation package
saragluna cae9c2b
add java docs
saragluna 25cc0ce
add java docs
saragluna c273b37
remove unused implementation of service client builder customizer
saragluna 952e4bd
Merge branch 'feature/azure-spring-cloud-4.0' into xiada/feature/spri…
saragluna fde849a
add opens for spring-cloud-azure-core tests
saragluna dc767ac
move all configuration proeprties implementation to the package imple…
saragluna d3c74bd
remove abstract from the properties class
saragluna 957cdc5
remove module-info.java for surefire plugin doesn't work with require…
saragluna 620397e
move all configuration proeprties implementation out of the package i…
saragluna 3898a39
decouple the trace bean post processor with sleuth
saragluna 864b414
address api review comments for spring-cloud-azure-service
saragluna 9df1cfc
address api review comments for spring-cloud-azure-service
saragluna bed5917
address api review comments for spring-cloud-azure-resourcemanager
saragluna 733a9ae
address api review comments for spring-cloud-azure-resourcemanager
saragluna 2cc4982
Merge branch 'feature/azure-spring-cloud-4.0' into xiada/feature/spri…
saragluna ed89e66
add java docs
saragluna ec20e6e
remove the protected modifier
saragluna 0db6d87
add module-info.java for spring-cloud-azure-core
saragluna 9121aa0
add module-info.java for service and resourcemanager module
saragluna 8f4764d
Merge branch 'feature/azure-spring-cloud-4.0' into xiada/feature/spri…
saragluna e83d686
complete module-info.java
saragluna 78b3d12
update description for managed-identity-client-id
saragluna 9f179fc
Merge branch 'feature/azure-spring-cloud-4.0' into xiada/feature/spri…
saragluna 22dd0b7
resolve compilation errors after merge
saragluna 371c73a
fix tests coverage
saragluna 8ce59d5
adjust test coverage ratios
saragluna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -4,11 +4,11 @@ | |
package com.azure.spring.cloud.autoconfigure.eventhubs.properties; | ||
|
||
import com.azure.spring.cloud.autoconfigure.storage.blob.properties.AzureStorageBlobProperties; | ||
import com.azure.spring.core.properties.util.AzurePropertiesUtils; | ||
import com.azure.spring.service.eventhubs.properties.EventHubsConsumerDescriptor; | ||
import com.azure.spring.service.eventhubs.properties.EventHubsNamespaceDescriptor; | ||
import com.azure.spring.service.eventhubs.properties.EventHubsProcessorDescriptor; | ||
import com.azure.spring.service.eventhubs.properties.EventHubsProducerDescriptor; | ||
import com.azure.spring.core.util.AzurePropertiesUtils; | ||
import com.azure.spring.service.eventhubs.properties.EventHubConsumerProperties; | ||
import com.azure.spring.service.eventhubs.properties.EventHubProducerProperties; | ||
import com.azure.spring.service.eventhubs.properties.EventHubsNamespaceProperties; | ||
import com.azure.spring.service.eventhubs.properties.EventProcessorClientProperties; | ||
import org.springframework.beans.BeanUtils; | ||
import org.springframework.boot.context.properties.PropertyMapper; | ||
|
||
|
@@ -19,7 +19,7 @@ | |
/** | ||
* Azure Event Hubs related properties. | ||
*/ | ||
public class AzureEventHubsProperties extends AzureEventHubsCommonProperties implements EventHubsNamespaceDescriptor { | ||
public class AzureEventHubsProperties extends AzureEventHubsCommonProperties implements EventHubsNamespaceProperties { | ||
|
||
public static final String PREFIX = "spring.cloud.azure.eventhubs"; | ||
|
||
|
@@ -129,14 +129,14 @@ public Processor getProcessor() { | |
/** | ||
* Properties of an Event Hub producer. | ||
*/ | ||
public static class Producer extends AzureEventHubsCommonProperties implements EventHubsProducerDescriptor { | ||
public static class Producer extends AzureEventHubsCommonProperties implements EventHubProducerProperties { | ||
|
||
} | ||
|
||
/** | ||
* Properties of an Event Hub consumer. | ||
*/ | ||
public static class Consumer extends AzureEventHubsCommonProperties implements EventHubsConsumerDescriptor { | ||
public static class Consumer extends AzureEventHubsCommonProperties implements EventHubConsumerProperties { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need we rename |
||
|
||
/** | ||
* Name of the consumer group this consumer is associated with. | ||
|
@@ -170,12 +170,12 @@ public void setPrefetchCount(Integer prefetchCount) { | |
/** | ||
* Properties of an Event Hub processor. | ||
*/ | ||
public static class Processor extends Consumer implements EventHubsProcessorDescriptor { | ||
public static class Processor extends Consumer implements EventProcessorClientProperties { | ||
|
||
private Boolean trackLastEnqueuedEventProperties; | ||
private Map<String, StartPosition> initialPartitionEventPosition = new HashMap<>(); | ||
private Duration partitionOwnershipExpirationInterval; | ||
private final Batch batch = new Batch(); | ||
private final EventBatch batch = new EventBatch(); | ||
private final LoadBalancing loadBalancing = new LoadBalancing(); | ||
private final BlobCheckpointStore checkpointStore = new BlobCheckpointStore(); | ||
|
||
|
@@ -203,7 +203,7 @@ public void setPartitionOwnershipExpirationInterval(Duration partitionOwnershipE | |
this.partitionOwnershipExpirationInterval = partitionOwnershipExpirationInterval; | ||
} | ||
|
||
public Batch getBatch() { | ||
public EventBatch getBatch() { | ||
return batch; | ||
} | ||
|
||
|
@@ -218,21 +218,21 @@ public BlobCheckpointStore getCheckpointStore() { | |
/** | ||
* Event processor load balancing properties. | ||
*/ | ||
public static class LoadBalancing extends EventHubsProcessorDescriptor.LoadBalancing { | ||
public static class LoadBalancing extends EventProcessorClientProperties.LoadBalancing { | ||
|
||
} | ||
|
||
/** | ||
* Event processor batch properties. | ||
*/ | ||
public static class Batch extends EventHubsProcessorDescriptor.Batch { | ||
public static class EventBatch extends EventProcessorClientProperties.EventBatch { | ||
|
||
} | ||
|
||
/** | ||
* Blob checkpoint store. | ||
*/ | ||
public static class BlobCheckpointStore extends AzureStorageBlobProperties { | ||
public static class BlobCheckpointStore extends AzureStorageBlobProperties { | ||
|
||
private Boolean createContainerIfNotExists; | ||
|
||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need we rename
EventHubsProducerDescriptor
toEventHubProducerClientProperties
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given Event Hubs only have one client builder, EventHubClientBuilder, so we won't call it EventHubProducerClientProperties.