* Archietecture Diagram added * Added pom.xml * Architecture Diagram Updated * Added Microservices and kafka * ReadME File Added * ReadME file Updated * #1329 ReadMe file updated and working pattern code added * #1329 readme file updated * #1329 readme file updated and java documentation added * #1329 repository merged * Update claim-check-pattern/ReadME.md #1329 Real world description updated Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Update claim-check-pattern/ReadME.md Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Applicability section in ReadMe file updated Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Tutorial section in ReadMe file updated Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Storage Data section in ReadMe File updated Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 workflow section Update claim-check-pattern/ReadME.md Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Update claim-check-pattern/pom.xml Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 deleted mvnw.cmd file * #1329 deleted drawio file * #1329 deleted mvnw file * #1329 deleted mvnw file * #1329 mvnw.cmd file deleted * #1329 Update claim-check-pattern/usage-cost-processor/src/main/java/com/callusage/domain/MessageHeader.java Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Update claim-check-pattern/usage-cost-processor/src/main/java/com/callusage/domain/UsageCostDetail.java Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Update claim-check-pattern/usage-cost-processor/src/main/java/com/callusage/domain/UsageDetail.java Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 deleted mvnw file * #1329 deleted mvnw.cmd file * #1329 Update claim-check-pattern/usage-detail-sender/src/main/java/com/callusage/domain/Message.java Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 Update claim-check-pattern/ReadME.md Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> * #1329 pom file dependencies fixed, readmeflie updated, removed unused imports * #1329 Readfile updated, class javadoc added * #1329 UML class diagrams added, readme file updated * #1329 lombok annotations used on model classes, common dependencies moved to parent pom * #1329 test cases added * include claim-check-pattern in parent pom * #1329 code smells fixed * #1329 code smells removed * #1329 security issues fixed * #1329 updated pom files and refactored packages name * #1329 checkstyle warning fixed * #1329 code coverage increased * #1329 minor changed. * checkpoint created with common utility * Claim-Check-Pattern | Shrirang97 | Implemented using Java Azure Functions * Claim-Check-Pattern | Shrirang97 | Updated Functions logic * Update MessageHandlerUtility.java * Update UsageCostProcessorFunction.java * claim-check-pattern | Shrirang97 | Added test cases * claim-check-pattern | Shrirang97 | Test cases for Azure functions fixed * Claim-Check-Pattern | Shrirang | Used string as request body * claim-check-pattern | Shrirang | Working test cases * claim-check-pattern | Shrirang | Issue fixed while deserializing * claim-check-pattern | Shrirang | removed unused import * claim-check-pattern | Shrirang | fixed refactoring * claim-chek-pattern | Shrirang | added lombok | fixed dependencies & test cases * Delete .DS_Store * claim-check-pattern | Shrirang | Fixed unrelated file * Update BookService.java * Update BookService.java * claim-check-pattern | Shrirang | Fixed unrelated files * claim-check-pattern | Shrirang | Fixed review comments * Update UsageCostProcessorFunction.java * Update ReadME.md * Rename ReadME.md to README.md * claim-check-pattern | Shrirang | Incorporated review comments. * Update cloud-claim-check-pattern/README.md Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com> * Update cloud-claim-check-pattern/README.md Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com> * Update cloud-claim-check-pattern/README.md Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com> * Update cloud-claim-check-pattern/README.md Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com> * Update cloud-claim-check-pattern/README.md Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com> * Update cloud-claim-check-pattern/README.md Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com> * Update cloud-claim-check-pattern/README.md Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com> * Updated readme file * Read me file updated | Added more description Co-authored-by: Subhrodip Mohanta <subhrodipmohanta@gmail.com> Co-authored-by: Subhrodip Mohanta <hello@subho.xyz> Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
117 lines
3.5 KiB
Plaintext
117 lines
3.5 KiB
Plaintext
@startuml
|
|
class UsageDetailPublisherFunction [[java:com.iluwatar.producer.calldetails.functions]] {
|
|
-messageHandlerUtility: MessageHandlerUtility<UsageDetail>
|
|
-eventHandlerUtility: EventHandlerUtility<MessageHeader>
|
|
+run(): HttpResponseMessage
|
|
}
|
|
|
|
class UsageCostProcessorFunction [[java:com.iluwatar.consumer.callcostprocessor.functions]] {
|
|
-messageHandlerUtilityForUsageDetail: MessageHandlerUtility<UsageDetail>
|
|
-messageHandlerUtilityForUsageCostDetail: MessageHandlerUtility<UsageCostDetail>
|
|
+run(): HttpResponseMessage
|
|
}
|
|
|
|
class "MessageHandlerUtility<T>" as MessageHandlerUtility_T [[java:com.iluwatar.claimcheckpattern.utility]] {
|
|
+readFromPersistantStorage(messageReference: MessageReference, logger: Logger): Message
|
|
+dropToPersistantStorage(message: Message, logger: Logger): void
|
|
}
|
|
|
|
class "EventHandlerUtility<T>" as EventHandlerUtility_T [[java:com.callusage.utility.PersistentLocalStorageUtility]] {
|
|
+publishEvent(customEvent: T, logger: Logger): void
|
|
}
|
|
|
|
class "Message<T>" as Message_T [[java:com.iluwatar.claimcheckpattern.domain]] {
|
|
-messageHeader: MessageHeader
|
|
-messageData: MessageData<T>
|
|
+Message(messageHeader: MessageHeader, messageData: MessageData<T>)
|
|
+getMessageData(): MessageData<T>
|
|
+getMessageHeader(): MessageHeader
|
|
}
|
|
|
|
|
|
class MessageHeader [[java:com.iluwatar.claimcheckpattern.domain]] {
|
|
-id: String
|
|
-subject: String
|
|
-topic: String
|
|
-eventType: String
|
|
-eventTime: String
|
|
-data: Object
|
|
-dataVersion: String
|
|
+getId(): String
|
|
+setId(id: String): void
|
|
+getSubject(): String
|
|
+setSubject(subject: String): void
|
|
+getTopic(): String
|
|
+setTopic(topic: String): void
|
|
+getEventType(): String
|
|
+setEventType(eventType: String): void
|
|
+getEventTime(): String
|
|
+setEventTime(eventTime: String): void
|
|
+getData(): Object
|
|
+setData(data: Object): void
|
|
+getDataVersion(): String
|
|
+setDataVersion(dataVersion:String): void
|
|
|
|
}
|
|
|
|
|
|
class "MessageBody<T>" as MessageBody_T [[java:com.iluwatar.claimcheckpattern.domain]] {
|
|
-data: List[] T
|
|
+getData(): List[] T
|
|
+setData(data:List[] T): void
|
|
}
|
|
|
|
class MessageReference [[java:com.iluwatar.claimcheckpattern.domain]] {
|
|
-dataLocation: String
|
|
-dataFileName: String
|
|
+getDataLocation(): String
|
|
+setDataLocation(dataLocation:String): void
|
|
+getDataFileName(): String
|
|
+setDataFileName(dataFileName:String): void
|
|
}
|
|
|
|
class UsageDetail [[java:com.iluwatar.claimcheckpattern.domain]] {
|
|
-userId: String
|
|
-duration: int
|
|
-data: int
|
|
+getUserId(): String
|
|
+setUserId(userId: String): void
|
|
+getDuration(): long
|
|
+setDuration(duration: long): void
|
|
+getData(): long
|
|
+setData(data: long): void
|
|
}
|
|
|
|
class UsageCostDetail [[java:com.iluwatar.claimcheckpattern.domain]] {
|
|
-userId: String
|
|
-callCost: double
|
|
-dataCost: double
|
|
+getUserId(): String
|
|
+setUserId(userId: String): void
|
|
+getCallCost(): double
|
|
+setCallCost(callCost:double): void
|
|
+getDataCost(): double
|
|
+setDataCost(dataCost:double) : void
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Message_T "1" *-- "1" MessageHeader : has
|
|
Message_T "1" *-- "1" MessageBody_T : has
|
|
MessageHeader "1" *-- "1" MessageReference : has as data object
|
|
MessageBody_T "1" *-- "1" UsageDetail: has
|
|
MessageBody_T "1" *-- "1" UsageCostDetail: has
|
|
|
|
EventHandlerUtility_T "1" *-- "1" MessageHeader: has
|
|
MessageHandlerUtility_T "1" *-- "1" Message_T: has
|
|
|
|
UsageDetailPublisherFunction "1" *-- "1" MessageHandlerUtility_T : has
|
|
UsageDetailPublisherFunction "1" *-- "1" EventHandlerUtility_T : has
|
|
|
|
UsageCostProcessorFunction "1" *-- "1" MessageHandlerUtility_T : has
|
|
UsageCostProcessorFunction "1" *-- "1" MessageHandlerUtility_T : has
|
|
@enduml |