├── .github └── workflows │ └── maven-publish.yml ├── .gitignore ├── README.md ├── README_CN.md ├── document ├── blueprint │ ├── AssginQueue.drawio │ ├── Broker.drawio │ ├── Client.drawio │ ├── Storage.drawio │ ├── produce.drawio │ ├── register.drawio │ ├── sql.txt │ ├── 动态重平衡.drawio │ ├── 广播模式.drawio │ └── 未命名绘图.drawio ├── mq_basic.sql ├── mq_fail_message_node_01.sql └── mq_message_node_01.sql ├── img.png ├── mq-biz ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── baracklee │ │ │ └── mq │ │ │ └── biz │ │ │ ├── BizConfig.java │ │ │ ├── DynamicDataSource.java │ │ │ ├── MultipleDataSource.java │ │ │ ├── MysqlDatasourceConfiguration.java │ │ │ ├── cache │ │ │ ├── ConsumerGroupCacheService.java │ │ │ └── ConsumerGroupCacheServiceImpl.java │ │ │ ├── common │ │ │ ├── SoaConfig.java │ │ │ ├── inf │ │ │ │ ├── BrokerTimerService.java │ │ │ │ ├── ConsumerGroupChangedListener.java │ │ │ │ ├── PortalTimerService.java │ │ │ │ └── TimerService.java │ │ │ ├── plugin │ │ │ │ └── DruidConnectionFilter.java │ │ │ └── util │ │ │ │ ├── DbUtil.java │ │ │ │ ├── EmailUtil.java │ │ │ │ └── SpringUtil.java │ │ │ ├── dal │ │ │ ├── common │ │ │ │ └── BaseRepository.java │ │ │ ├── meta │ │ │ │ ├── AuditLogRepository.java │ │ │ │ ├── ConsumerGroupConsumerRepository.java │ │ │ │ ├── ConsumerGroupRepository.java │ │ │ │ ├── ConsumerGroupTopicRepository.java │ │ │ │ ├── ConsumerRepository.java │ │ │ │ ├── DbNodeRepository.java │ │ │ │ ├── DbRepository.java │ │ │ │ ├── DicRepository.java │ │ │ │ ├── MqLockRepository.java │ │ │ │ ├── NotifyMessageRepository.java │ │ │ │ ├── NotifyMessageStatRepository.java │ │ │ │ ├── QueueOffsetRepository.java │ │ │ │ ├── QueueRepository.java │ │ │ │ ├── ServerRepository.java │ │ │ │ └── TopicRepository.java │ │ │ └── msg │ │ │ │ └── Message01Repository.java │ │ │ ├── dto │ │ │ ├── AnalyseDto.java │ │ │ ├── Constants.java │ │ │ ├── LogDto.java │ │ │ ├── MetaCompareVo.java │ │ │ ├── NotifyFailVo.java │ │ │ ├── Organization.java │ │ │ ├── UserInfo.java │ │ │ ├── UserRoleEnum.java │ │ │ ├── client │ │ │ │ └── LogRequest.java │ │ │ ├── request │ │ │ │ ├── AuditLogRequest.java │ │ │ │ ├── BaseUiRequst.java │ │ │ │ ├── ConsumerGroupCreateRequest.java │ │ │ │ ├── ConsumerGroupTopicCreateRequest.java │ │ │ │ ├── ConsumerGroupTopicDeleteResponse.java │ │ │ │ └── TopicCreateRequest.java │ │ │ └── response │ │ │ │ ├── AuditLogResponse.java │ │ │ │ ├── BaseUiResponse.java │ │ │ │ ├── ConsumerGroupCreateResponse.java │ │ │ │ ├── ConsumerGroupDeleteResponse.java │ │ │ │ ├── ConsumerGroupEditResponse.java │ │ │ │ └── ConsumerGroupTopicCreateResponse.java │ │ │ ├── entity │ │ │ ├── AuditLogEntity.java │ │ │ ├── ConsumerEntity.java │ │ │ ├── ConsumerGroupConsumerEntity.java │ │ │ ├── ConsumerGroupEntity.java │ │ │ ├── ConsumerGroupTopicEntity.java │ │ │ ├── DbNodeEntity.java │ │ │ ├── DicEntity.java │ │ │ ├── LastUpdateEntity.java │ │ │ ├── Message01Entity.java │ │ │ ├── MqLockEntity.java │ │ │ ├── NotifyCallBack.java │ │ │ ├── NotifyMessageEntity.java │ │ │ ├── NotifyMessageStatEntity.java │ │ │ ├── OffsetVersionEntity.java │ │ │ ├── QueueEntity.java │ │ │ ├── QueueOffsetEntity.java │ │ │ ├── ServerEntity.java │ │ │ ├── TableInfoEntity.java │ │ │ └── TopicEntity.java │ │ │ ├── polling │ │ │ ├── AbstractTimerService.java │ │ │ ├── ConsumerGroupRbService.java │ │ │ ├── NoActiveConsumerService.java │ │ │ ├── QueueExpansionAlarmService.java │ │ │ └── RedundancyAllCheckService.java │ │ │ ├── service │ │ │ ├── AuditLogService.java │ │ │ ├── CacheUpdateService.java │ │ │ ├── ConsumerCommitService.java │ │ │ ├── ConsumerGroupConsumerService.java │ │ │ ├── ConsumerGroupService.java │ │ │ ├── ConsumerGroupTopicService.java │ │ │ ├── ConsumerService.java │ │ │ ├── DbNodeService.java │ │ │ ├── DbService.java │ │ │ ├── EmailService.java │ │ │ ├── LogService.java │ │ │ ├── Message01Service.java │ │ │ ├── MqLockService.java │ │ │ ├── NotifyMessageService.java │ │ │ ├── NotifyMessageStatService.java │ │ │ ├── QueueOffsetService.java │ │ │ ├── QueueService.java │ │ │ ├── RedundanceCheckService.java │ │ │ ├── RoleService.java │ │ │ ├── ServerService.java │ │ │ ├── TopicService.java │ │ │ ├── UserInfoHolder.java │ │ │ ├── common │ │ │ │ ├── AbstractBaseService.java │ │ │ │ ├── AuditUtil.java │ │ │ │ ├── BaseService.java │ │ │ │ ├── CacheUpdateHelper.java │ │ │ │ ├── MessageType.java │ │ │ │ └── MqReadMap.java │ │ │ └── impl │ │ │ │ ├── AuditLogServiceImpl.java │ │ │ │ ├── ConsumerCommitServiceImpl.java │ │ │ │ ├── ConsumerGroupCheckServiceImpl.java │ │ │ │ ├── ConsumerGroupConsumerCheckServiceImpl.java │ │ │ │ ├── ConsumerGroupConsumerServiceImpl.java │ │ │ │ ├── ConsumerGroupServiceImpl.java │ │ │ │ ├── ConsumerGroupTopicCheckServiceImpl.java │ │ │ │ ├── ConsumerGroupTopicServiceImpl.java │ │ │ │ ├── ConsumerServiceImpl.java │ │ │ │ ├── DbNodeServiceImpl.java │ │ │ │ ├── DbServiceImpl.java │ │ │ │ ├── DicServiceImpl.java │ │ │ │ ├── EmailServiceImpl.java │ │ │ │ ├── LogServiceImpl.java │ │ │ │ ├── Message01ServiceImpl.java │ │ │ │ ├── MqLockServiceImpl.java │ │ │ │ ├── NotifyMessageServiceImpl.java │ │ │ │ ├── NotifyMessageStatServiceImpl.java │ │ │ │ ├── QueueCheckServiceImpl.java │ │ │ │ ├── QueueOffsetCheckServiceImpl.java │ │ │ │ ├── QueueOffsetServiceImpl.java │ │ │ │ ├── QueueServiceImpl.java │ │ │ │ ├── RoleServiceImpl.java │ │ │ │ ├── ServerServiceImpl.java │ │ │ │ ├── TopicCheckServiceImpl.java │ │ │ │ └── TopicServiceImpl.java │ │ │ └── ui │ │ │ ├── DataSourceFactory.java │ │ │ ├── dto │ │ │ ├── request │ │ │ │ ├── ConfigDto.java │ │ │ │ ├── ConsumerGetListRequest.java │ │ │ │ ├── ConsumerGroupGetListRequest.java │ │ │ │ ├── ConsumerGroupTopicGetListRequest.java │ │ │ │ ├── DbNodeAnalysisRequest.java │ │ │ │ ├── DbNodeCreateRequest.java │ │ │ │ ├── DbNodeGetListRequest.java │ │ │ │ ├── MessageConditionRequest.java │ │ │ │ ├── MessageGetByTopicRequest.java │ │ │ │ ├── MessageGetListRequest.java │ │ │ │ ├── MessageToolRequest.java │ │ │ │ ├── MqLockGetListRequest.java │ │ │ │ ├── QueueGetListRequest.java │ │ │ │ ├── QueueOffsetAccumulationRequest.java │ │ │ │ ├── QueueOffsetGetListRequest.java │ │ │ │ ├── ServerGetListRequest.java │ │ │ │ └── TopicGetListRequest.java │ │ │ └── response │ │ │ │ ├── ConsumerDeleteResponse.java │ │ │ │ ├── ConsumerGetListResponse.java │ │ │ │ ├── ConsumerGroupGetByIdResponse.java │ │ │ │ ├── ConsumerGroupGetListResponse.java │ │ │ │ ├── ConsumerGroupGetNamesResponse.java │ │ │ │ ├── ConsumerGroupRebalenceResponse.java │ │ │ │ ├── ConsumerGroupRefreshMetaResponse.java │ │ │ │ ├── ConsumerGroupSelectResponse.java │ │ │ │ ├── ConsumerGroupTopicEditResponse.java │ │ │ │ ├── ConsumerGroupTopicGetByIdResponse.java │ │ │ │ ├── ConsumerGroupTopicGetListResponse.java │ │ │ │ ├── ConsumerGroupTopicInitResponse.java │ │ │ │ ├── DbNodeAnalyseResponse.java │ │ │ │ ├── DbNodeBatchDilatationResponse.java │ │ │ │ ├── DbNodeBeforeChangeResponse.java │ │ │ │ ├── DbNodeChangeStatusResponse.java │ │ │ │ ├── DbNodeCompareResponse.java │ │ │ │ ├── DbNodeConnectionsResponse.java │ │ │ │ ├── DbNodeCreateResponse.java │ │ │ │ ├── DbNodeCreateSqlResponse.java │ │ │ │ ├── DbNodeCreateTableResponse.java │ │ │ │ ├── DbNodeDeleteResponse.java │ │ │ │ ├── DbNodeDilatationResponse.java │ │ │ │ ├── DbNodeGetListResponse.java │ │ │ │ ├── DepartmentReportResponse.java │ │ │ │ ├── DepartmentsGetResponse.java │ │ │ │ ├── EnvSynAllResponse.java │ │ │ │ ├── EnvSynGenerateResponse.java │ │ │ │ ├── MessageConditionResponse.java │ │ │ │ ├── MessageGetByTopicResponse.java │ │ │ │ ├── MessageGetListResponse.java │ │ │ │ ├── MessageNotifyResponse.java │ │ │ │ ├── MessageStatNotifyResponse.java │ │ │ │ ├── MessageUpdateNotifyResponse.java │ │ │ │ ├── MqLockDeleteResponse.java │ │ │ │ ├── MqLockGetListResponse.java │ │ │ │ ├── PanelNodeGetListResponse.java │ │ │ │ ├── PhysicalMachineReportResponse.java │ │ │ │ ├── QueueCountResponse.java │ │ │ │ ├── QueueGetListResponse.java │ │ │ │ ├── QueueOffsetGetListResponse.java │ │ │ │ ├── QueueOffsetIntelligentDetectionResponse.java │ │ │ │ ├── QueueOffsetUpdateResponse.java │ │ │ │ ├── QueueOffsetUpdateStopFlagResponse.java │ │ │ │ ├── QueueOffsetgetByIdResponse.java │ │ │ │ ├── QueueOffsetgetConsumerGroupTopicResponse.java │ │ │ │ ├── QueueReadOnlyResponse.java │ │ │ │ ├── QueueReportResponse.java │ │ │ │ ├── QueueUpdateMinIdResponse.java │ │ │ │ ├── RedundanceCheckResponse.java │ │ │ │ ├── ServerChangeStatusResponse.java │ │ │ │ ├── ServerGetListResponse.java │ │ │ │ ├── TopicClearTokenResponse.java │ │ │ │ ├── TopicCreateResponse.java │ │ │ │ ├── TopicDeleteResponse.java │ │ │ │ ├── TopicExpandResponse.java │ │ │ │ ├── TopicGenerateTokenResponse.java │ │ │ │ ├── TopicGetByIdResponse.java │ │ │ │ ├── TopicGetListResponse.java │ │ │ │ ├── TopicGetTopicNamesResponse.java │ │ │ │ ├── TopicManualExpandResponse.java │ │ │ │ ├── TopicQueueRemoveListResponse.java │ │ │ │ ├── TopicQueueRemoveResponse.java │ │ │ │ ├── TopicReportResponse.java │ │ │ │ ├── TopicSearchResponse.java │ │ │ │ ├── TopicUpdateSaveDayNumResponse.java │ │ │ │ ├── UserGetBizTypesResponse.java │ │ │ │ ├── UserGetByUserIdsResponse.java │ │ │ │ ├── UserGetCurrentDptResponse.java │ │ │ │ ├── UserGetCurrentUserResponse.java │ │ │ │ └── UserSearchResponse.java │ │ │ ├── enums │ │ │ ├── NodeTypeEnum.java │ │ │ ├── NormalFlagEnum.java │ │ │ ├── ReadWriteEnum.java │ │ │ └── ResponseEnum.java │ │ │ ├── exceptions │ │ │ ├── AuthFailException.java │ │ │ ├── CheckFailException.java │ │ │ └── MqUiException.java │ │ │ └── vo │ │ │ ├── ConnectionsVo.java │ │ │ ├── ConsumerGroupTopicVo.java │ │ │ ├── ConsumerGroupVo.java │ │ │ ├── ConsumerVo.java │ │ │ ├── DepartmentVo.java │ │ │ ├── MessageVo.java │ │ │ ├── MonitorUrlVo.java │ │ │ ├── OnLineNumsVo.java │ │ │ ├── PanelNodeVo.java │ │ │ ├── PhysicalMachineReportVo.java │ │ │ ├── QueueOffsetVo.java │ │ │ ├── QueueRemoveInfoVo.java │ │ │ ├── QueueVo.java │ │ │ └── TopicVo.java │ └── resources │ │ ├── META-INF │ │ └── spring.factories │ │ ├── msg │ │ ├── Message01.xml │ │ └── Message01Base.xml │ │ └── mysql │ │ ├── AuditLog.xml │ │ ├── AuditLogBase.xml │ │ ├── Consumer.xml │ │ ├── ConsumerBase.xml │ │ ├── ConsumerGroup.xml │ │ ├── ConsumerGroupBase.xml │ │ ├── ConsumerGroupConsumer.xml │ │ ├── ConsumerGroupConsumerBase.xml │ │ ├── ConsumerGroupTopic.xml │ │ ├── ConsumerGroupTopicBase.xml │ │ ├── DbNode.xml │ │ ├── DbNodeBase.xml │ │ ├── DbReposite.xml │ │ ├── DicBase.xml │ │ ├── MqLock.xml │ │ ├── MqLockBase.xml │ │ ├── NotifyMessage.xml │ │ ├── NotifyMessageBase.xml │ │ ├── NotifyMessageStat.xml │ │ ├── NotifyMessageStatBase.xml │ │ ├── Queue.xml │ │ ├── QueueBase.xml │ │ ├── QueueOffset.xml │ │ ├── QueueOffsetBase.xml │ │ ├── Server.xml │ │ ├── ServerRepository.xml │ │ ├── Topic.xml │ │ └── TopicBase.xml │ └── test │ └── java │ └── com │ └── baracklee │ └── mq │ └── biz │ ├── AbstractTest.java │ ├── AllBizTests.java │ └── service │ └── impl │ ├── AuditLogServiceImplTest.java │ ├── ConsumerCommitServiceImplTest.java │ ├── ConsumerGroupCheckServiceImplTest.java │ ├── ConsumerGroupConsumerCheckServiceImplTest.java │ ├── ConsumerGroupConsumerServiceImplTest.java │ ├── ConsumerGroupServiceImplTest.java │ ├── ConsumerGroupTopicCheckServiceImplTest.java │ ├── ConsumerGroupTopicServiceImplTest.java │ ├── ConsumerServiceImplTest.java │ ├── DbNodeServiceImplTest.java │ ├── EmailServiceImplTest.java │ ├── LogServiceImplTest.java │ └── Message01ServiceImplTest.java ├── mq-client-test ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── baracklee │ │ ├── MqTestApplication.java │ │ ├── TestController.java │ │ └── TestSub.java │ └── resources │ ├── META-INF │ ├── app.properties │ └── cat │ │ └── client.xml │ ├── application.properties │ ├── logback-rest.xml │ └── messageQueue │ └── messageQueue.xml ├── mq-client ├── mq-client-core │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── com │ │ │ └── baracklee │ │ │ └── mq │ │ │ └── client │ │ │ ├── MqClient.java │ │ │ ├── MqConfig.java │ │ │ ├── MqContext.java │ │ │ ├── MqEnvironment.java │ │ │ ├── config │ │ │ ├── ClientConfigHelper.java │ │ │ ├── ConsumerGroupMetaVo.java │ │ │ ├── ConsumerGroupTopicVo.java │ │ │ └── ConsumerGroupVo.java │ │ │ ├── core │ │ │ ├── IConsumerPollingService.java │ │ │ ├── IMqBrokerUrlRefreshService.java │ │ │ ├── IMqCheckService.java │ │ │ ├── IMqClientService.java │ │ │ ├── IMqCommitService.java │ │ │ ├── IMqGroupExecutorService.java │ │ │ ├── IMqHeartbeatService.java │ │ │ ├── IMqMeticsReporterService.java │ │ │ ├── IMqQueueExecutorService.java │ │ │ ├── IMqTopicQueueRefreshService.java │ │ │ ├── IMsgNotifyService.java │ │ │ └── impl │ │ │ │ ├── ConsumerPollingService.java │ │ │ │ ├── MetricsCollector.java │ │ │ │ ├── MqBrokerUrlRefreshService.java │ │ │ │ ├── MqCheckService.java │ │ │ │ ├── MqCommitService.java │ │ │ │ ├── MqGroupExecutorService.java │ │ │ │ ├── MqHeartbeatService.java │ │ │ │ ├── MqMeticsReporterService.java │ │ │ │ ├── MqMetricsReporter.java │ │ │ │ ├── MqQueueExecutorService.java │ │ │ │ ├── MqTopicQueueRefreshService.java │ │ │ │ └── queueutils │ │ │ │ ├── BatchRecorder.java │ │ │ │ └── MessageInvokeCommandForThreadIsolation.java │ │ │ ├── dto │ │ │ ├── BatchRecordItem.java │ │ │ └── TraceMessageDto.java │ │ │ ├── event │ │ │ └── MqEvent.java │ │ │ ├── factory │ │ │ ├── IMqFactory.java │ │ │ └── MqFactory.java │ │ │ ├── metic │ │ │ └── MetricSingleton.java │ │ │ ├── resolver │ │ │ └── ISubscriberResolver.java │ │ │ ├── resource │ │ │ ├── IMqResource.java │ │ │ └── MqResource.java │ │ │ └── server │ │ │ └── StatService.java │ │ └── test │ │ └── java │ │ └── com │ │ └── baracklee │ │ └── mq │ │ └── client │ │ ├── AbstractMockResource.java │ │ ├── AbstractTest.java │ │ ├── config │ │ ├── ClientConfighelperTest.java │ │ └── ConsumerGroupVoTest.java │ │ ├── core │ │ └── impl │ │ │ ├── ConsumerPollingServiceTest.java │ │ │ └── MqGroupExecutorServiceTest.java │ │ ├── factory │ │ └── MqFactoryTest.java │ │ └── resource │ │ └── MqResourceTest.java ├── mq-client-spring │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── com │ │ │ └── baracklee │ │ │ └── mq │ │ │ └── client │ │ │ ├── MqSpringUtil.java │ │ │ ├── bootStrap │ │ │ ├── MqClientBootstrapListener.java │ │ │ ├── MqClientShutdownListener.java │ │ │ ├── MqClientStartup.java │ │ │ ├── MqEnvProp.java │ │ │ ├── MqStartProcessor.java │ │ │ └── SubscriberResolver.java │ │ │ └── stat │ │ │ └── MqClientStatController.java │ │ └── test │ │ └── java │ │ └── com │ │ └── baracklee │ │ └── mq │ │ └── client │ │ ├── MqSpringUtilTest.java │ │ ├── bootStrap │ │ └── MqEnvPropTest.java │ │ └── stat │ │ └── MqClientStatControllerTest.java ├── mq-client-springboot │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── baracklee │ │ │ │ └── mq │ │ │ │ └── client │ │ │ │ ├── MqBootstrapScanConfig.java │ │ │ │ └── stat │ │ │ │ ├── MqFilter.java │ │ │ │ ├── MqHandler.java │ │ │ │ └── StatService.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── spring.factories │ │ └── test │ │ └── java │ │ └── com │ │ └── baracklee │ │ └── mq │ │ └── client │ │ ├── MqBootstrapScanConfigTest.java │ │ └── stat │ │ ├── MqFilterTest.java │ │ └── MqHandlerTest.java ├── mq-core │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── baracklee │ │ │ │ └── mq │ │ │ │ └── biz │ │ │ │ ├── MqConst.java │ │ │ │ ├── MqEnv.java │ │ │ │ ├── common │ │ │ │ ├── metric │ │ │ │ │ ├── Metric.java │ │ │ │ │ ├── TagName.java │ │ │ │ │ └── TagNameUtil.java │ │ │ │ ├── thread │ │ │ │ │ └── SoaThreadFactory.java │ │ │ │ ├── trace │ │ │ │ │ ├── Trace.java │ │ │ │ │ ├── TraceFactory.java │ │ │ │ │ ├── TraceMessage.java │ │ │ │ │ └── TraceMessageItem.java │ │ │ │ └── util │ │ │ │ │ ├── BrokerException.java │ │ │ │ │ ├── ClassLoaderUtil.java │ │ │ │ │ ├── ConsumerGroupUtil.java │ │ │ │ │ ├── ConsumerUtil.java │ │ │ │ │ ├── HttpClient.java │ │ │ │ │ ├── IHttpClient.java │ │ │ │ │ ├── IPUtil.java │ │ │ │ │ ├── JsonUtil.java │ │ │ │ │ ├── PropUtil.java │ │ │ │ │ └── Util.java │ │ │ │ ├── dto │ │ │ │ ├── BaseRequest.java │ │ │ │ ├── BaseResponse.java │ │ │ │ ├── MqConstanst.java │ │ │ │ ├── base │ │ │ │ │ ├── ConsumerGroupDto.java │ │ │ │ │ ├── ConsumerGroupMetaDto.java │ │ │ │ │ ├── ConsumerGroupOneDto.java │ │ │ │ │ ├── ConsumerQueueDto.java │ │ │ │ │ ├── ConsumerQueueVersionDto.java │ │ │ │ │ ├── MessageDto.java │ │ │ │ │ ├── MessageNotifyDto.java │ │ │ │ │ ├── PartitionInfo.java │ │ │ │ │ └── ProducerDataDto.java │ │ │ │ └── client │ │ │ │ │ ├── CommitOffsetRequest.java │ │ │ │ │ ├── CommitOffsetResponse.java │ │ │ │ │ ├── ConsumerDeRegisterRequest.java │ │ │ │ │ ├── ConsumerDeRegisterResponse.java │ │ │ │ │ ├── ConsumerGroupRegisterRequest.java │ │ │ │ │ ├── ConsumerGroupRegisterResponse.java │ │ │ │ │ ├── ConsumerRegisterRequest.java │ │ │ │ │ ├── ConsumerRegisterResponse.java │ │ │ │ │ ├── FailMsgPublishAndUpdateResultRequest.java │ │ │ │ │ ├── FailMsgPublishAndUpdateResultResponse.java │ │ │ │ │ ├── GetConsumerGroupRequest.java │ │ │ │ │ ├── GetConsumerGroupResponse.java │ │ │ │ │ ├── GetGroupTopicRequest.java │ │ │ │ │ ├── GetGroupTopicResponse.java │ │ │ │ │ ├── GetMessageCountRequest.java │ │ │ │ │ ├── GetMessageCountResponse.java │ │ │ │ │ ├── GetMetaGroupRequest.java │ │ │ │ │ ├── GetMetaGroupResponse.java │ │ │ │ │ ├── GetMetaRequest.java │ │ │ │ │ ├── GetMetaResponse.java │ │ │ │ │ ├── GetTopicQueueIdsRequest.java │ │ │ │ │ ├── GetTopicQueueIdsResponse.java │ │ │ │ │ ├── GetTopicRequest.java │ │ │ │ │ ├── GetTopicResponse.java │ │ │ │ │ ├── GroupTopicDto.java │ │ │ │ │ ├── HeartbeatRequest.java │ │ │ │ │ ├── HeartbeatResponse.java │ │ │ │ │ ├── LogRequest.java │ │ │ │ │ ├── LogResponse.java │ │ │ │ │ ├── MsgNotifyDto.java │ │ │ │ │ ├── MsgNotifyRequest.java │ │ │ │ │ ├── OpLogRequest.java │ │ │ │ │ ├── PublishMessageRequest.java │ │ │ │ │ ├── PublishMessageResponse.java │ │ │ │ │ ├── PullDataRequest.java │ │ │ │ │ ├── PullDataResponse.java │ │ │ │ │ ├── SendMailRequest.java │ │ │ │ │ └── UpdateMetaRequest.java │ │ │ │ └── event │ │ │ │ ├── IAsynSubscriber.java │ │ │ │ ├── IAsynSubscriberSelector.java │ │ │ │ ├── IMsgFilter.java │ │ │ │ ├── IPartitionSelector.java │ │ │ │ ├── ISubscriber.java │ │ │ │ ├── ISubscriberSelector.java │ │ │ │ ├── PostHandleListener.java │ │ │ │ ├── PreHandleListener.java │ │ │ │ └── PreSendListener.java │ │ └── resources │ │ │ └── mqversion.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── baracklee │ │ └── mq │ │ └── biz │ │ ├── AllCoreTest.java │ │ └── common │ │ └── util │ │ ├── ClassLoaderUtilTest.java │ │ ├── ConsumerGroupUtilTest.java │ │ ├── HttpClientTest.java │ │ └── UtilTest.java └── pom.xml ├── mq-rest ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── baracklee │ │ └── rest │ │ └── mq │ │ ├── RestApplication.java │ │ ├── boot │ │ ├── MqBootstrapListener.java │ │ └── ReportService.java │ │ ├── controller │ │ ├── HomeController.java │ │ ├── MqRestStatController.java │ │ ├── client │ │ │ ├── ConsumerCommitController.java │ │ │ ├── ConsumerController.java │ │ │ ├── ConsumerGroupNotifyController.java │ │ │ ├── ConsumerHeartbeatController.java │ │ │ └── ToolController.java │ │ └── meta │ │ │ └── MetaServerController.java │ │ ├── exceptionhandler │ │ └── CustomInterceptAdvice.java │ │ ├── spi │ │ └── DefaultUserInfoHolder.java │ │ └── util │ │ └── MqConfig.java │ └── resources │ ├── META-INF │ └── app.properties │ ├── application-fat.properties │ ├── application-pro.properties │ ├── application-uat.properties │ ├── application.properties │ └── logback-rest.xml ├── mq-ui ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── baracklee │ │ └── ui │ │ ├── UiApplicationContext.java │ │ ├── boot │ │ ├── DbReportService.java │ │ ├── MqBootstrapListener.java │ │ └── ReportService.java │ │ ├── controller │ │ ├── AuditLogController.java │ │ ├── AuthController.java │ │ ├── ConfigController.java │ │ ├── ConsumerController.java │ │ ├── ConsumerGroupController.java │ │ ├── ConsumerGroupTopicController.java │ │ ├── DataPanelController.java │ │ ├── DbNodeController.java │ │ ├── DepartmentController.java │ │ ├── EnvSynController.java │ │ ├── MessageController.java │ │ ├── MqLockController.java │ │ ├── QueueController.java │ │ ├── QueueOffsetController.java │ │ ├── RedundanceCheckController.java │ │ ├── ServerController.java │ │ ├── ToolController.java │ │ ├── TopicController.java │ │ ├── TraceController.java │ │ ├── UserController.java │ │ ├── ViewController.java │ │ └── notifyController.java │ │ ├── filter │ │ └── AuthFilter.java │ │ ├── job │ │ └── QueueWarningInfoService.java │ │ ├── service │ │ ├── ConfigService.java │ │ ├── EnvSynService.java │ │ ├── UiConsumerGroupService.java │ │ ├── UiConsumerGroupTopicService.java │ │ ├── UiConsumerService.java │ │ ├── UiDbConnectionService.java │ │ ├── UiDbConnectionsService.java │ │ ├── UiDbNodeService.java │ │ ├── UiDepartmentService.java │ │ ├── UiMessageService.java │ │ ├── UiMqLockService.java │ │ ├── UiNotifyService.java │ │ ├── UiPanelService.java │ │ ├── UiQueueOffsetService.java │ │ ├── UiQueueService.java │ │ ├── UiRedundanceCheckService.java │ │ ├── UiServerService.java │ │ └── UiTopicService.java │ │ ├── spi │ │ ├── DefaultUserInfoHolder.java │ │ ├── UserConfiguration.java │ │ ├── UserProviderService.java │ │ ├── UserService.java │ │ ├── UserServiceImpl.java │ │ └── ldap │ │ │ └── UserProviderServiceImpl.java │ │ └── util │ │ ├── CookieUtil.java │ │ ├── DesUtil.java │ │ ├── DruidConfiguration.java │ │ ├── MqConfig.java │ │ └── SysFailSub.java │ └── resources │ ├── application-fat.properties │ ├── application-pro.properties │ ├── application-uat.properties │ ├── application.properties │ ├── logback-ui.xml │ ├── messageQueue │ └── messageQueue1.xml │ ├── static │ ├── assets │ │ └── mq_m.png │ ├── css │ │ ├── common.css │ │ ├── font │ │ │ ├── font_tnyc012u2rlwstt9.eot │ │ │ ├── font_tnyc012u2rlwstt9.svg │ │ │ ├── font_tnyc012u2rlwstt9.ttf │ │ │ ├── font_tnyc012u2rlwstt9.woff │ │ │ ├── iconfont.eot │ │ │ ├── iconfont.svg │ │ │ ├── iconfont.ttf │ │ │ └── iconfont.woff │ │ ├── font_tnyc012u2rlwstt9.css │ │ ├── iconfont.css │ │ ├── index.css │ │ ├── login.css │ │ ├── main.css │ │ └── select2.min.css │ ├── dist │ │ ├── clipboard.js │ │ └── clipboard.min.js │ ├── images │ │ ├── code.jpg │ │ ├── face.jpg │ │ ├── favicon.ico │ │ ├── log.png │ │ ├── login-bg1.jpg │ │ ├── login-bg2.jpg │ │ ├── login-bg3.jpg │ │ ├── mq.png │ │ ├── readOnly.jpg │ │ └── readWrite.jpg │ ├── js │ │ ├── analysis.js │ │ ├── appList.js │ │ ├── auditLog.js │ │ ├── auditLogList.js │ │ ├── cat.js │ │ ├── compareDbNode.js │ │ ├── compareQueue.js │ │ ├── config.js │ │ ├── consumer.js │ │ ├── consumer2.js │ │ ├── consumerGroupList.js │ │ ├── consumerGroupTopicList.js │ │ ├── createConsumerGroupForm.js │ │ ├── createTopicForm.js │ │ ├── dbNode.js │ │ ├── echarts.min.js │ │ ├── index.js │ │ ├── jquery-1.11.1.min.js │ │ ├── message.js │ │ ├── messageTool.js │ │ ├── notify.js │ │ ├── panel.js │ │ ├── queue.js │ │ ├── queueOffsetAccumulation.js │ │ ├── queueOffsetList.js │ │ ├── queueRemove.js │ │ ├── queueReport.js │ │ ├── searchSelect.js │ │ ├── select2.min.js │ │ ├── toDeleteConsumerGroup.js │ │ ├── toEditConsumerGroupTopic.js │ │ ├── toEditQueueOffset.js │ │ ├── toEditStopFlag.js │ │ ├── topicDelete.js │ │ ├── topicExpand.js │ │ ├── topicList.js │ │ └── topicReport.js │ └── layui │ │ ├── css │ │ ├── layui.css │ │ ├── layui.mobile.css │ │ └── modules │ │ │ ├── code.css │ │ │ ├── laydate │ │ │ └── default │ │ │ │ └── laydate.css │ │ │ └── layer │ │ │ └── default │ │ │ ├── icon-ext.png │ │ │ ├── icon.png │ │ │ ├── layer.css │ │ │ ├── loading-0.gif │ │ │ ├── loading-1.gif │ │ │ └── loading-2.gif │ │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.svg │ │ ├── iconfont.ttf │ │ ├── iconfont.woff │ │ └── iconfont.woff2 │ │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 7.gif │ │ │ ├── 70.gif │ │ │ ├── 71.gif │ │ │ ├── 8.gif │ │ │ └── 9.gif │ │ ├── lay │ │ └── modules │ │ │ ├── carousel.js │ │ │ ├── code.js │ │ │ ├── colorpicker.js │ │ │ ├── element.js │ │ │ ├── flow.js │ │ │ ├── form.js │ │ │ ├── jquery.js │ │ │ ├── laydate.js │ │ │ ├── layedit.js │ │ │ ├── layer.js │ │ │ ├── laypage.js │ │ │ ├── laytpl.js │ │ │ ├── mobile.js │ │ │ ├── rate.js │ │ │ ├── slider.js │ │ │ ├── table.js │ │ │ ├── transfer.js │ │ │ ├── tree.js │ │ │ ├── upload.js │ │ │ └── util.js │ │ ├── layui.all.js │ │ └── layui.js │ └── templates │ ├── auditLog │ ├── auditLogDetail.html │ └── auditLogList.html │ ├── common │ ├── contentLayout.html │ ├── header.html │ ├── layout.html │ ├── leftmenu.html │ └── topbar.html │ ├── config │ └── soaConfig.html │ ├── consumer │ └── consumer.html │ ├── consumerGroup │ ├── consumerGroupList.html │ ├── consumerGroupTopicList.html │ ├── createConsumerGroupForm.html │ ├── toDeleteConsumerGroup.html │ └── toEditConsumerGroupTopic.html │ ├── dataPanel │ └── panel.html │ ├── dbNode │ ├── analysis.html │ ├── changeStatus.html │ ├── compareMessageTables.html │ ├── confirmCreateSql.html │ ├── connections.html │ ├── createDbNode.html │ ├── dbNode.html │ ├── editDbNode.html │ ├── physicalMachineReport.html │ └── showSql.html │ ├── department │ └── departmentReport.html │ ├── index.html │ ├── login.html │ ├── message │ ├── messageDetail.html │ ├── messageList.html │ └── messageTool.html │ ├── monitor.html │ ├── mqLock │ └── lock.html │ ├── notify │ └── notify.html │ ├── queue │ ├── queue.html │ ├── queueEdit.html │ ├── queueReport.html │ └── queueReportEmail.html │ ├── queueOffset │ ├── queueOffsetAccumulation.html │ ├── queueOffsetList.html │ ├── toEditQueueOffset.html │ └── toEditStopFlag.html │ ├── redundanceCheck │ └── dataCheck.html │ ├── server │ └── server.html │ ├── syn │ └── envSynTool.html │ └── topic │ ├── createTopicForm.html │ ├── queueRemove.html │ ├── topicDelete.html │ ├── topicExpand.html │ ├── topicList.html │ └── topicReport.html └── pom.xml /.github/workflows/maven-publish.yml: -------------------------------------------------------------------------------- 1 | name: Java 2 | 3 | on: 4 | push: 5 | workflow_dispatch: 6 | 7 | jobs: 8 | build: 9 | 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@v1 15 | 16 | - name: Set up JDK 1.8 17 | uses: actions/setup-java@v2 18 | with: 19 | java-version: '8' 20 | distribution: 'adopt' 21 | 22 | - name: Build 23 | run: mvn --batch-mode -DskipTests package 24 | 25 | - name: Test 26 | run: mvn --batch-mode -Dmaven.test.failure.ignore=true test 27 | 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | !.mvn/wrapper/maven-wrapper.jar 3 | !**/src/main/**/target/ 4 | !**/src/test/**/target/ 5 | 6 | ### IntelliJ IDEA ### 7 | .idea/modules.xml 8 | .idea/jarRepositories.xml 9 | .idea/compiler.xml 10 | .idea/* 11 | *.iws 12 | *.iml 13 | *.ipr 14 | 15 | ### Eclipse ### 16 | .apt_generated 17 | .classpath 18 | .factorypath 19 | .project 20 | .settings 21 | .springBeans 22 | .sts4-cache 23 | 24 | ### NetBeans ### 25 | /nbproject/private/ 26 | /nbbuild/ 27 | /dist/ 28 | /nbdist/ 29 | /.nb-gradle/ 30 | build/ 31 | !**/src/main/**/build/ 32 | !**/src/test/**/build/ 33 | 34 | ### VS Code ### 35 | .vscode/ 36 | 37 | ### Mac OS ### 38 | .DS_Store!/.gitignore 39 | !/.gitignore 40 | -------------------------------------------------------------------------------- /document/blueprint/sql.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/document/blueprint/sql.txt -------------------------------------------------------------------------------- /img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/img.png -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/BizConfig.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz; 2 | 3 | import com.baracklee.mq.biz.common.trace.TraceFactory; 4 | import org.springframework.context.annotation.ComponentScan; 5 | import org.springframework.context.annotation.Configuration; 6 | import org.springframework.core.env.Environment; 7 | 8 | import javax.annotation.PostConstruct; 9 | 10 | @Configuration 11 | @ComponentScan(basePackageClasses = {BizConfig.class}) 12 | public class BizConfig { 13 | private Environment environment; 14 | 15 | @PostConstruct 16 | private void init(){ 17 | TraceFactory.setTraceCheck(name -> { 18 | if (environment==null){return false;} 19 | else { 20 | return "1".equals(environment.getProperty("mq.trace.enable", "1")) && "1".equals(environment.getProperty(name, "1")); 21 | } 22 | }); 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/DynamicDataSource.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz; 2 | 3 | import com.baracklee.mq.biz.service.Message01Service; 4 | import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; 5 | 6 | import javax.sql.DataSource; 7 | 8 | public class DynamicDataSource extends AbstractRoutingDataSource { 9 | 10 | private Message01Service message01Service; 11 | 12 | public DynamicDataSource(Message01Service message01Service) { 13 | this.message01Service = message01Service; 14 | } 15 | 16 | public DataSource getDataSource(){ 17 | return message01Service.getDataSource(); 18 | } 19 | 20 | 21 | @Override 22 | protected Object determineCurrentLookupKey() { 23 | return null; 24 | } 25 | 26 | protected DataSource determineTargetDataSource() { 27 | return message01Service.getDataSource(); 28 | } 29 | public void afterPropertiesSet() {} 30 | } 31 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/cache/ConsumerGroupCacheService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.cache; 2 | 3 | import com.baracklee.mq.biz.common.inf.BrokerTimerService; 4 | import com.baracklee.mq.biz.common.inf.ConsumerGroupChangedListener; 5 | import com.baracklee.mq.biz.dto.base.ConsumerGroupDto; 6 | 7 | import java.util.Map; 8 | 9 | public interface ConsumerGroupCacheService extends BrokerTimerService { 10 | 11 | void addListener(ConsumerGroupChangedListener listener); 12 | 13 | Map getCache(); 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/common/inf/BrokerTimerService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.inf; 2 | 3 | public interface BrokerTimerService { 4 | void startBroker(); 5 | void stopBroker(); 6 | String info(); 7 | } 8 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/common/inf/ConsumerGroupChangedListener.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.inf; 2 | 3 | public interface ConsumerGroupChangedListener { 4 | void onChange(); 5 | } 6 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/common/inf/PortalTimerService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.inf; 2 | 3 | public interface PortalTimerService { 4 | void startPortal(); 5 | void stopPortal(); 6 | String info(); 7 | } 8 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/common/inf/TimerService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.inf; 2 | 3 | public interface TimerService { 4 | void start(); 5 | void stop(); 6 | String info(); 7 | } 8 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/common/util/DbUtil.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.util; 2 | 3 | public class DbUtil { 4 | public static String getDbIp(String url){ 5 | if (Util.isEmpty(url)) return "unknown"; 6 | else { 7 | String[] arr = url.split("/"); 8 | return arr[2]; 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/common/BaseRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.common; 2 | 3 | import org.apache.ibatis.annotations.Param; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | public interface BaseRepository { 10 | 11 | long insert(T t); 12 | 13 | void insertBatch(@Param("entityList") List tList); 14 | 15 | T getById(@Param("id")long id); 16 | 17 | T get(Map conditionMap); 18 | 19 | List getByIds(@Param("ids") List ids); 20 | 21 | int update(T t); 22 | 23 | long count(Map conditionMap); 24 | 25 | List getList(Map conditionMap); 26 | 27 | List getAll(); 28 | 29 | List getListByPage(Map conditionMap); 30 | 31 | void delete(long id); 32 | 33 | void batchDelete(@Param("ids") List ids); 34 | } 35 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/AuditLogRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.AuditLogEntity; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface AuditLogRepository extends BaseRepository { 9 | Long getMinId(); 10 | void deleteBy(Long minId); 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/ConsumerGroupConsumerRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.ConsumerGroupConsumerEntity; 5 | import org.apache.ibatis.annotations.Mapper; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | import java.util.List; 9 | 10 | @Mapper 11 | public interface ConsumerGroupConsumerRepository extends BaseRepository { 12 | int deleteUnActiveConsumer(); 13 | 14 | List getByConsumerGroupIds(@Param("consumerGroupIds") List consumerGroupIds); 15 | 16 | void deleteByConsumerIds(@Param("consumerIds")List consumerIds); 17 | 18 | List getByConsumerIds(@Param("consumerIds")List consumerIds); 19 | 20 | } 21 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/ConsumerRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.ConsumerEntity; 5 | import org.apache.ibatis.annotations.Mapper; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | @Mapper 12 | public interface ConsumerRepository extends BaseRepository { 13 | int heartbeat(@Param("ids") List ids); 14 | 15 | List findByHeartTimeInterval(@Param("heartTimeInterval") long heartTimeInterval); 16 | 17 | boolean deleteByConsumerId(@Param("consumerId") Long consumerId); 18 | 19 | long register(ConsumerEntity t); 20 | 21 | ConsumerEntity getConsumerByConsumerGroupId(@Param("consumerGroupId") Long consumerGroupId); 22 | 23 | long countBy(Map conditionMap); 24 | 25 | List getListBy(Map conditionMap); 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/DbNodeRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | 4 | import com.baracklee.mq.biz.dal.common.BaseRepository; 5 | import com.baracklee.mq.biz.entity.DbNodeEntity; 6 | import com.baracklee.mq.biz.entity.LastUpdateEntity; 7 | import org.apache.ibatis.annotations.Mapper; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @author dal-generator 13 | */ 14 | @Mapper 15 | public interface DbNodeRepository extends BaseRepository { 16 | LastUpdateEntity getLastUpdate(); 17 | 18 | //List getUpdateData(Date lastDate); 19 | 20 | List findConnStr(); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/DbRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dto.MetaCompareVo; 4 | import org.apache.ibatis.annotations.Mapper; 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import java.util.Date; 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | @Mapper 12 | public interface DbRepository { 13 | Date getDbTime(); 14 | Map getMaxConnectionsCount(); 15 | Integer getConnectionsCount(); 16 | List getMetaCompareData(@Param("metaCompareSql") String metaCompareSql); 17 | 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/DicRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.DicEntity; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface DicRepository extends BaseRepository { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/MqLockRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.MqLockEntity; 5 | import org.apache.ibatis.annotations.Mapper; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | @Mapper 9 | public interface MqLockRepository extends BaseRepository { 10 | 11 | int updateHeartTimeByIdAndIp(@Param("id") long id,@Param("ip") String ip); 12 | int updateHeartTimeByKey1(@Param("ip") String ip, @Param("key1") String key1, 13 | @Param("lockInterval") int lockInterval); 14 | 15 | int deleteOld(@Param("key1") String key1, @Param("lockInterval") int lockInterval); 16 | 17 | long insert1(MqLockEntity t); 18 | } 19 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/NotifyMessageRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.NotifyMessageEntity; 5 | import org.apache.ibatis.annotations.Mapper; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | @Mapper 9 | public interface NotifyMessageRepository extends BaseRepository { 10 | Long getMaxId(@Param("maxId1") long maxId1, @Param("message_type") int messageType); 11 | 12 | Long getMaxId1(@Param("message_type") int messageType); 13 | 14 | int clearOld(@Param("clearOldTime") Long clearOldTime, @Param("id") long id); 15 | 16 | Long getMinId(@Param("message_type") int messageType); 17 | 18 | Long getMinId1(); 19 | } 20 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/NotifyMessageStatRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.NotifyMessageStatEntity; 5 | 6 | public interface NotifyMessageStatRepository extends BaseRepository { 7 | void updateNotifyMessageId(); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/ServerRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | import com.baracklee.mq.biz.dal.common.BaseRepository; 4 | import com.baracklee.mq.biz.entity.ServerEntity; 5 | import org.apache.ibatis.annotations.Mapper; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | import java.util.List; 9 | 10 | @Mapper 11 | public interface ServerRepository extends BaseRepository { 12 | int deleteOld(@Param("heartTime") int heartTime); 13 | 14 | List getNoramlServer(@Param("heartTime") int heartTime); 15 | 16 | int updateHeartTimeById(@Param("id") long id); 17 | 18 | int insert1(ServerEntity entity); 19 | 20 | void batchUpdate(@Param("ids") List serverIds,@Param("statusFlag") int serverStatus); 21 | } 22 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dal/meta/TopicRepository.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dal.meta; 2 | 3 | 4 | import com.baracklee.mq.biz.dal.common.BaseRepository; 5 | import com.baracklee.mq.biz.entity.LastUpdateEntity; 6 | import com.baracklee.mq.biz.entity.TopicEntity; 7 | import org.apache.ibatis.annotations.Mapper; 8 | import org.apache.ibatis.annotations.Param; 9 | 10 | import java.util.List; 11 | import java.util.Map; 12 | 13 | /** 14 | * @author dal-generator 15 | */ 16 | @Mapper 17 | public interface TopicRepository extends BaseRepository { 18 | LastUpdateEntity getLastUpdate(); 19 | 20 | //List getUpdateData(Date lastDate); 21 | 22 | TopicEntity getTopicByName(@Param("topicName")String topicName); 23 | 24 | List getListWithUserName(Map conditionMap); 25 | 26 | Long countWithUserName(Map conditionMap); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/LogDto.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto; 2 | 3 | import com.baracklee.mq.biz.dto.client.LogRequest; 4 | 5 | public class LogDto extends LogRequest { 6 | private Throwable throwable; 7 | 8 | public Throwable getThrowable() { 9 | return throwable; 10 | } 11 | 12 | public void setThrowable(Throwable throwable) { 13 | this.throwable = throwable; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/MetaCompareVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto; 2 | 3 | public class MetaCompareVo { 4 | private String name; 5 | private String type; 6 | 7 | public String getName() { 8 | return name; 9 | } 10 | 11 | public void setName(String name) { 12 | this.name = name; 13 | } 14 | 15 | public String getType() { 16 | return type; 17 | } 18 | 19 | public void setType(String type) { 20 | this.type = type; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/NotifyFailVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto; 2 | 3 | import java.util.concurrent.atomic.AtomicBoolean; 4 | 5 | public class NotifyFailVo { 6 | 7 | //上次推送失败的时间 8 | private volatile long LastRetryTime; 9 | 10 | //当前状态(true表示可以调通,false表示无法调通) 11 | private volatile boolean status; 12 | 13 | //当前是否可以探测,true表示已经有请求在试探,其他请求直接屏蔽。false表示无请求在试探。 14 | private AtomicBoolean isRetrying = new AtomicBoolean(false); 15 | 16 | public long getLastRetryTime() { 17 | return LastRetryTime; 18 | } 19 | 20 | public void setLastRetryTime(long lastRetryTime) { 21 | LastRetryTime = lastRetryTime; 22 | } 23 | 24 | public boolean isStatus() { 25 | return status; 26 | } 27 | 28 | public void setStatus(boolean status) { 29 | this.status = status; 30 | } 31 | 32 | public AtomicBoolean getIsRetrying() { 33 | return isRetrying; 34 | } 35 | 36 | public void setIsRetrying(AtomicBoolean isRetrying) { 37 | this.isRetrying = isRetrying; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/Organization.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto; 2 | 3 | /** 4 | * Author: BarackLee 5 | */ 6 | public class Organization { 7 | private String orgId; 8 | private String orgName; 9 | 10 | public String getOrgId() { 11 | return orgId; 12 | } 13 | 14 | public void setOrgId(String orgId) { 15 | this.orgId = orgId; 16 | } 17 | 18 | public String getOrgName() { 19 | return orgName; 20 | } 21 | 22 | public void setOrgName(String orgName) { 23 | this.orgName = orgName; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/UserRoleEnum.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto; 2 | 3 | public enum UserRoleEnum { 4 | SUPER_USER(0, "超级管理员"), 5 | OWNER(1, "拥有者"), 6 | USER(2, "普通用户"); 7 | private int roleCode; 8 | private String description; 9 | 10 | UserRoleEnum(int roleCode, String description) { 11 | this.roleCode = roleCode; 12 | this.description = description; 13 | } 14 | 15 | public int getRoleCode() { 16 | return this.roleCode; 17 | } 18 | 19 | public String getDescription() { 20 | return description; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/request/AuditLogRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.request; 2 | 3 | 4 | public class AuditLogRequest extends BaseUiRequst { 5 | private String tbName; 6 | private String refId; 7 | private String content; 8 | private String id; 9 | 10 | public String getContent() { 11 | return content; 12 | } 13 | 14 | public void setContent(String content) { 15 | this.content = content; 16 | } 17 | 18 | public String getTbName() { 19 | return tbName; 20 | } 21 | 22 | public void setTbName(String tbName) { 23 | this.tbName = tbName; 24 | } 25 | 26 | public String getRefId() { 27 | return refId; 28 | } 29 | 30 | public void setRefId(String refId) { 31 | this.refId = refId; 32 | } 33 | 34 | public String getId() { 35 | return id; 36 | } 37 | 38 | public void setId(String id) { 39 | this.id = id; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/request/BaseUiRequst.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.request; 2 | 3 | public class BaseUiRequst { 4 | private String page; 5 | private String limit; 6 | 7 | public String getPage() { 8 | return page; 9 | } 10 | 11 | public void setPage(String page) { 12 | this.page = page; 13 | } 14 | 15 | public String getLimit() { 16 | return limit; 17 | } 18 | 19 | public void setLimit(String limit) { 20 | this.limit = limit; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/request/ConsumerGroupTopicDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.request; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * Author: BarackLee 7 | */ 8 | public class ConsumerGroupTopicDeleteResponse extends BaseUiResponse { 9 | public ConsumerGroupTopicDeleteResponse(){ 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/response/AuditLogResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.response; 2 | 3 | 4 | import com.baracklee.mq.biz.entity.AuditLogEntity; 5 | 6 | import java.util.List; 7 | 8 | public class AuditLogResponse extends BaseUiResponse> { 9 | 10 | public AuditLogResponse(Long count, List data) { 11 | super(count, data); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/response/ConsumerGroupCreateResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.response; 2 | 3 | public class ConsumerGroupCreateResponse extends BaseUiResponse { 4 | public ConsumerGroupCreateResponse() { 5 | super(); 6 | } 7 | 8 | public ConsumerGroupCreateResponse(String code, String msg) { 9 | super(code,msg); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/response/ConsumerGroupDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.response; 2 | 3 | public class ConsumerGroupDeleteResponse extends BaseUiResponse{ 4 | public ConsumerGroupDeleteResponse() { 5 | super(); 6 | } 7 | 8 | public ConsumerGroupDeleteResponse(String code, String msg) { 9 | super(code, msg); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/response/ConsumerGroupEditResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.response; 2 | 3 | /** 4 | * Author: BarackLee 5 | */ 6 | public class ConsumerGroupEditResponse extends BaseUiResponse{ 7 | public ConsumerGroupEditResponse() { 8 | super(); 9 | } 10 | 11 | public ConsumerGroupEditResponse(String code, String msg) { 12 | super(code, msg); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/dto/response/ConsumerGroupTopicCreateResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.response; 2 | 3 | public class ConsumerGroupTopicCreateResponse extends BaseUiResponse{ 4 | public ConsumerGroupTopicCreateResponse(){ 5 | super(); 6 | } 7 | public ConsumerGroupTopicCreateResponse(String code,String msg){ 8 | super(code,msg); 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/entity/LastUpdateEntity.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.entity; 2 | 3 | import java.util.Date; 4 | 5 | public class LastUpdateEntity { 6 | private volatile long maxId; 7 | 8 | private volatile Date lastDate = new Date(); 9 | 10 | private volatile long count =0; 11 | 12 | public long getMaxId() { 13 | return maxId; 14 | } 15 | 16 | public void setMaxId(long maxId) { 17 | this.maxId = maxId; 18 | } 19 | 20 | public Date getLastDate() { 21 | return lastDate; 22 | } 23 | 24 | public void setLastDate(Date lastDate) { 25 | this.lastDate = lastDate; 26 | } 27 | 28 | public long getCount() { 29 | return count; 30 | } 31 | 32 | public void setCount(long count) { 33 | this.count = count; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/entity/OffsetVersionEntity.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.entity; 2 | 3 | public class OffsetVersionEntity { 4 | private long id; 5 | private long offset; 6 | private long offsetVersion; 7 | 8 | public long getId() { 9 | return id; 10 | } 11 | 12 | public void setId(long id) { 13 | this.id = id; 14 | } 15 | 16 | public long getOffset() { 17 | return offset; 18 | } 19 | 20 | public void setOffset(long offset) { 21 | this.offset = offset; 22 | } 23 | 24 | public long getOffsetVersion() { 25 | return offsetVersion; 26 | } 27 | 28 | public void setOffsetVersion(long offsetVersion) { 29 | this.offsetVersion = offsetVersion; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/AuditLogService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.request.AuditLogRequest; 5 | import com.baracklee.mq.biz.dto.response.AuditLogResponse; 6 | import com.baracklee.mq.biz.entity.AuditLogEntity; 7 | import com.baracklee.mq.biz.service.common.BaseService; 8 | 9 | /** 10 | * @author dal-generator 11 | */ 12 | public interface AuditLogService extends BaseService { 13 | long getMindId(); 14 | void deleteBy(Long minId); 15 | void recordAudit(String tbName, long refId, String content); 16 | AuditLogResponse logList(AuditLogRequest auditLogRequest); 17 | } 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/CacheUpdateService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | public interface CacheUpdateService { 4 | void updateCache(); 5 | 6 | void forceUpdateCache(); 7 | 8 | String getCacheJson(); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/ConsumerCommitService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.dto.base.ConsumerQueueVersionDto; 4 | import com.baracklee.mq.biz.dto.client.CommitOffsetRequest; 5 | import com.baracklee.mq.biz.dto.client.CommitOffsetResponse; 6 | 7 | import java.util.Map; 8 | 9 | /** 10 | * Author: BarackLee 11 | */ 12 | public interface ConsumerCommitService { 13 | CommitOffsetResponse commitOffset(CommitOffsetRequest request); 14 | 15 | Map getCache(); 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/ConsumerGroupConsumerService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.entity.ConsumerGroupConsumerEntity; 4 | import com.baracklee.mq.biz.service.common.BaseService; 5 | 6 | import java.util.List; 7 | 8 | public interface ConsumerGroupConsumerService extends BaseService { 9 | 10 | int deleteUnActiveConsumer(); 11 | 12 | List getByConsumerGroupIds(List consumerGroupIds); 13 | 14 | List getByConsumerIds(List consumerIds); 15 | 16 | void deleteByConsumerIds(List consumerIds); 17 | } 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/DbNodeService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.entity.DbNodeEntity; 4 | import com.baracklee.mq.biz.service.common.BaseService; 5 | 6 | import javax.sql.DataSource; 7 | import java.util.List; 8 | import java.util.Map; 9 | 10 | public interface DbNodeService extends BaseService { 11 | Map getCache(); 12 | Map> getCacheByIp(); 13 | void updateCache(); 14 | void createDataSource(DbNodeEntity t1); 15 | void checkDataSource(DbNodeEntity dbNodeEntity); 16 | DataSource getDataSource(long id, boolean isMaster); 17 | Map getDataSource(); 18 | //String getConKey(long dbNodeId); 19 | //String getIpFromKey(String key); 20 | //long getLastVersion(); 21 | boolean hasSlave(DbNodeEntity dbNodeEntity); 22 | } 23 | 24 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/DbService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import java.util.Date; 4 | 5 | public interface DbService { 6 | 7 | Date getDbTime(); 8 | String getMaxConnectionsCount(); 9 | 10 | Integer getConnectionsCount(); 11 | 12 | 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/EmailService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.client.SendMailRequest; 5 | 6 | public interface EmailService { 7 | void sendConsumerMail(SendMailRequest request); 8 | void sendProduceMail(SendMailRequest request); 9 | } 10 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/LogService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.dto.LogDto; 4 | import com.baracklee.mq.biz.dto.client.LogRequest; 5 | import com.baracklee.mq.biz.dto.client.OpLogRequest; 6 | 7 | public interface LogService { 8 | void addConsumerLog(LogRequest request); 9 | 10 | void addBrokerLog(LogDto requst); 11 | 12 | void addOpLog(OpLogRequest request); 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/MqLockService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.entity.MqLockEntity; 4 | import com.baracklee.mq.biz.service.common.BaseService; 5 | 6 | public interface MqLockService extends BaseService { 7 | boolean isMaster(); 8 | boolean updateHeatTime(); 9 | boolean isInLock(); 10 | } 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/NotifyMessageService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.entity.NotifyMessageEntity; 4 | import com.baracklee.mq.biz.service.common.BaseService; 5 | 6 | public interface NotifyMessageService extends BaseService { 7 | 8 | long getDataMaxId(long maxId1); 9 | 10 | long getDataMaxId(); 11 | 12 | long getDataMinId(); 13 | 14 | long getRbMaxId(long maxId1); 15 | 16 | long getRbMaxId(); 17 | 18 | long getRbMinId(); 19 | 20 | int clearOld(long clearOldTime, long maxId); 21 | 22 | long getMinId(); 23 | } 24 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/NotifyMessageStatService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.entity.NotifyMessageStatEntity; 4 | import com.baracklee.mq.biz.service.common.BaseService; 5 | 6 | 7 | /** 8 | * 使用数据库记录是谁被选主了 9 | */ 10 | public interface NotifyMessageStatService extends BaseService { 11 | NotifyMessageStatEntity get(); 12 | void updateNotifyMessageId(); 13 | 14 | NotifyMessageStatEntity initNotifyMessageStat(); 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/RedundanceCheckService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | public interface RedundanceCheckService { 4 | //冗余字段检查项 5 | String checkItem(); 6 | //冗余字段检查结果 7 | String checkResult(); 8 | } 9 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/RoleService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | public interface RoleService { 4 | int getRole(String userId, String ownerIds); 5 | 6 | int getRole(String userId); 7 | 8 | boolean isAdmin(String userId); 9 | 10 | String getRoleName(String userId); 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/ServerService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.entity.ServerEntity; 4 | import com.baracklee.mq.biz.service.common.BaseService; 5 | 6 | import java.util.List; 7 | 8 | public interface ServerService extends BaseService { 9 | List getBrokerUrlCache(); 10 | int getOnlineServerNum(); 11 | void batchUpdate(List serverIds,int serverStatus); 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/UserInfoHolder.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service; 2 | 3 | import com.baracklee.mq.biz.dto.UserInfo; 4 | 5 | public interface UserInfoHolder { 6 | UserInfo getUser(); 7 | 8 | String getUserId(); 9 | 10 | void setUserId(String userId); 11 | 12 | void clear(); 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/common/BaseService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service.common; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | public interface BaseService { 7 | long insert(T t); 8 | void insertBatch(List entityList); 9 | T get(long id); 10 | int update(T t); 11 | long count(Map conditionMap); 12 | long countPage(Map conditionMap, long page); 13 | List getList(); 14 | List getList(Map conditionMap); 15 | List getList(Map conditionMap,long page,long pageSize); 16 | T get(Map conditionMap); 17 | List getList(List ids); 18 | void delete(long id); 19 | void delete(List ids); 20 | 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/common/CacheUpdateHelper.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service.common; 2 | 3 | import com.baracklee.mq.biz.common.util.SpringUtil; 4 | import com.baracklee.mq.biz.service.CacheUpdateService; 5 | 6 | import java.util.Map; 7 | 8 | public class CacheUpdateHelper { 9 | 10 | public static void updateCache(){ 11 | Map cacheUpdateServices = SpringUtil.getBeans(CacheUpdateService.class); 12 | if(cacheUpdateServices!=null){ 13 | cacheUpdateServices.values().forEach(CacheUpdateService::updateCache); 14 | } 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/common/MessageType.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service.common; 2 | 3 | public class MessageType { 4 | public static int Rb = 1; 5 | public static int Meta = 2; 6 | } 7 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/impl/DbServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service.impl; 2 | 3 | import com.baracklee.mq.biz.dal.meta.DbRepository; 4 | import com.baracklee.mq.biz.service.DbService; 5 | import org.springframework.stereotype.Service; 6 | 7 | import javax.annotation.Resource; 8 | import java.util.Date; 9 | import java.util.Map; 10 | 11 | @Service 12 | public class DbServiceImpl implements DbService { 13 | 14 | @Resource 15 | private DbRepository dbRepository; 16 | @Override 17 | public Date getDbTime() { 18 | return dbRepository.getDbTime(); 19 | } 20 | 21 | @Override 22 | public String getMaxConnectionsCount() { 23 | Map map = dbRepository.getMaxConnectionsCount(); 24 | if (map.size() == 0) 25 | return "0"; 26 | else 27 | return map.get("Value"); 28 | } 29 | 30 | @Override 31 | public Integer getConnectionsCount() { 32 | Integer count = dbRepository.getConnectionsCount(); 33 | if (count == null) 34 | return 0; 35 | return count; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/service/impl/DicServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.service.impl; 2 | 3 | import com.baracklee.mq.biz.dal.meta.DicRepository; 4 | import com.baracklee.mq.biz.entity.DicEntity; 5 | import com.baracklee.mq.biz.service.common.AbstractBaseService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.PostConstruct; 10 | 11 | /** 12 | * @author dal-generator 13 | */ 14 | @Service 15 | public class DicServiceImpl extends AbstractBaseService { 16 | @Autowired 17 | private DicRepository dicRepository; 18 | 19 | @PostConstruct 20 | private void init() { 21 | super.setBaseRepository(dicRepository); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/DataSourceFactory.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui; 2 | 3 | import com.alibaba.druid.pool.DruidDataSource; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public interface DataSourceFactory { 9 | DruidDataSource createDataSource(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/request/ConsumerGroupTopicGetListRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.request; 2 | 3 | import com.baracklee.mq.biz.dto.request.BaseUiRequst; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class ConsumerGroupTopicGetListRequest extends BaseUiRequst { 9 | 10 | private String consumerGroupName; 11 | private String topicName; 12 | private String consumerGroupId; 13 | 14 | public String getConsumerGroupName() { 15 | return consumerGroupName; 16 | } 17 | 18 | public void setConsumerGroupName(String consumerGroupName) { 19 | this.consumerGroupName = consumerGroupName; 20 | } 21 | 22 | public String getTopicName() { 23 | return topicName; 24 | } 25 | 26 | public void setTopicName(String topicName) { 27 | this.topicName = topicName; 28 | } 29 | 30 | public String getConsumerGroupId() { 31 | return consumerGroupId; 32 | } 33 | 34 | public void setConsumerGroupId(String consumerGroupId) { 35 | this.consumerGroupId = consumerGroupId; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/request/DbNodeAnalysisRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.request; 2 | 3 | import com.baracklee.mq.biz.dto.request.BaseUiRequst; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class DbNodeAnalysisRequest extends BaseUiRequst { 9 | private Long id; 10 | 11 | public Long getId() { 12 | return id; 13 | } 14 | 15 | public void setId(Long id) { 16 | this.id = id; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/request/DbNodeGetListRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.request; 2 | 3 | import com.baracklee.mq.biz.dto.request.BaseUiRequst; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class DbNodeGetListRequest extends BaseUiRequst { 9 | 10 | String id; 11 | String name; 12 | String ip; 13 | String readOnly; 14 | 15 | public String getId() { 16 | return id; 17 | } 18 | 19 | public void setId(String id) { 20 | this.id = id; 21 | } 22 | 23 | public String getName() { 24 | return name; 25 | } 26 | 27 | public void setName(String name) { 28 | this.name = name; 29 | } 30 | 31 | public String getIp() { 32 | return ip; 33 | } 34 | 35 | public void setIp(String ip) { 36 | this.ip = ip; 37 | } 38 | 39 | public String getReadOnly() { 40 | return readOnly; 41 | } 42 | 43 | public void setReadOnly(String readOnly) { 44 | this.readOnly = readOnly; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/request/MessageGetByTopicRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.request; 2 | 3 | import com.baracklee.mq.biz.dto.request.BaseUiRequst; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class MessageGetByTopicRequest extends BaseUiRequst { 9 | private String topicName; 10 | private String bizId; 11 | 12 | public String getTopicName() { 13 | return topicName; 14 | } 15 | 16 | public void setTopicName(String topicName) { 17 | this.topicName = topicName; 18 | } 19 | 20 | public String getBizId() { 21 | return bizId; 22 | } 23 | 24 | public void setBizId(String bizId) { 25 | this.bizId = bizId; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/request/MqLockGetListRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.request; 2 | 3 | import com.baracklee.mq.biz.dto.request.BaseUiRequst; 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class MqLockGetListRequest extends BaseUiRequst { 10 | } 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/request/ServerGetListRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.request; 2 | 3 | import com.baracklee.mq.biz.dto.request.BaseUiRequst; 4 | 5 | public class ServerGetListRequest extends BaseUiRequst { 6 | private String statusFlag; 7 | 8 | private String serverVersion; 9 | 10 | public String getStatusFlag() { 11 | return statusFlag; 12 | } 13 | 14 | public void setStatusFlag(String statusFlag) { 15 | this.statusFlag = statusFlag; 16 | } 17 | 18 | public String getServerVersion() { 19 | return serverVersion; 20 | } 21 | 22 | public void setServerVersion(String serverVersion) { 23 | this.serverVersion = serverVersion; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class ConsumerDeleteResponse extends BaseUiResponse { 9 | 10 | public ConsumerDeleteResponse(){ 11 | super(); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.ConsumerVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class ConsumerGetListResponse extends BaseUiResponse> { 12 | public ConsumerGetListResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupGetByIdResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.ConsumerGroupEntity; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class ConsumerGroupGetByIdResponse extends BaseUiResponse { 10 | public ConsumerGroupGetByIdResponse(ConsumerGroupEntity data) { 11 | super(data); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.ConsumerGroupVo; 5 | 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @author Barack Lee 11 | */ 12 | public class ConsumerGroupGetListResponse extends BaseUiResponse> { 13 | public ConsumerGroupGetListResponse(Long count, List data) { 14 | super(count, data); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupGetNamesResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author Barack Lee 9 | */ 10 | public class ConsumerGroupGetNamesResponse extends BaseUiResponse> { 11 | 12 | public ConsumerGroupGetNamesResponse(Long count,List data){ 13 | super(count, data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupRebalenceResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class ConsumerGroupRebalenceResponse extends BaseUiResponse { 9 | public ConsumerGroupRebalenceResponse() { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupRefreshMetaResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class ConsumerGroupRefreshMetaResponse extends BaseUiResponse { 9 | public ConsumerGroupRefreshMetaResponse() { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupSelectResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author Barack Lee 9 | */ 10 | public class ConsumerGroupSelectResponse extends BaseUiResponse> { 11 | 12 | public ConsumerGroupSelectResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupTopicEditResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class ConsumerGroupTopicEditResponse extends BaseUiResponse { 9 | public ConsumerGroupTopicEditResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupTopicGetByIdResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.ConsumerGroupTopicEntity; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class ConsumerGroupTopicGetByIdResponse extends BaseUiResponse { 10 | public ConsumerGroupTopicGetByIdResponse(ConsumerGroupTopicEntity data) { 11 | super(data); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupTopicGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.ConsumerGroupTopicVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class ConsumerGroupTopicGetListResponse extends BaseUiResponse> { 12 | 13 | public ConsumerGroupTopicGetListResponse(Long count, List data) { 14 | super(count, data); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ConsumerGroupTopicInitResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.request.ConsumerGroupTopicCreateRequest; 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class ConsumerGroupTopicInitResponse extends BaseUiResponse { 10 | public ConsumerGroupTopicInitResponse(ConsumerGroupTopicCreateRequest data) { 11 | super(data); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeAnalyseResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.AnalyseDto; 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author: Barack Lee 10 | */ 11 | public class DbNodeAnalyseResponse extends BaseUiResponse> { 12 | public DbNodeAnalyseResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeBatchDilatationResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class DbNodeBatchDilatationResponse extends BaseUiResponse { 9 | public DbNodeBatchDilatationResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeBeforeChangeResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class DbNodeBeforeChangeResponse extends BaseUiResponse { 9 | public DbNodeBeforeChangeResponse() { 10 | super(); 11 | } 12 | 13 | public DbNodeBeforeChangeResponse(String code, String msg) { 14 | super(code, msg); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeChangeStatusResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class DbNodeChangeStatusResponse extends BaseUiResponse { 9 | public DbNodeChangeStatusResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeCompareResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @Author: Barack Lee 9 | */ 10 | public class DbNodeCompareResponse extends BaseUiResponse> { 11 | 12 | public DbNodeCompareResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeConnectionsResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.ConnectionsVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class DbNodeConnectionsResponse extends BaseUiResponse> { 12 | public DbNodeConnectionsResponse(String code, String msg) { 13 | super(code, msg); 14 | } 15 | 16 | public DbNodeConnectionsResponse(Long count, List data) { 17 | super(count, data); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeCreateResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class DbNodeCreateResponse extends BaseUiResponse { 9 | 10 | public DbNodeCreateResponse() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeCreateSqlResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @Author: Barack Lee 9 | */ 10 | public class DbNodeCreateSqlResponse extends BaseUiResponse> { 11 | public DbNodeCreateSqlResponse(Long count, List data) { 12 | super(count, data); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeCreateTableResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class DbNodeCreateTableResponse extends BaseUiResponse { 9 | public DbNodeCreateTableResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class DbNodeDeleteResponse extends BaseUiResponse { 9 | 10 | public DbNodeDeleteResponse() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeDilatationResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class DbNodeDilatationResponse extends BaseUiResponse { 9 | public DbNodeDilatationResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DbNodeGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.DbNodeEntity; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author: Barack Lee 10 | */ 11 | public class DbNodeGetListResponse extends BaseUiResponse> { 12 | 13 | public DbNodeGetListResponse(Long count, List data) { 14 | super(count, data); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DepartmentReportResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.DepartmentVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class DepartmentReportResponse extends BaseUiResponse> { 12 | public DepartmentReportResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/DepartmentsGetResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | import java.util.List; 7 | 8 | public class DepartmentsGetResponse extends BaseUiResponse> { 9 | public DepartmentsGetResponse(Long count, List data) { 10 | super(count, data); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/EnvSynAllResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | public class EnvSynAllResponse extends BaseUiResponse { 7 | public EnvSynAllResponse(){ 8 | super(); 9 | } 10 | 11 | public EnvSynAllResponse(String code, String msg){ 12 | super(code,msg); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/EnvSynGenerateResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | public class EnvSynGenerateResponse extends BaseUiResponse { 7 | 8 | public EnvSynGenerateResponse() { 9 | super(); 10 | } 11 | 12 | 13 | public EnvSynGenerateResponse(String data) { 14 | super(data); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MessageConditionResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.Map; 6 | 7 | /** 8 | * @Author: Barack Lee 9 | */ 10 | public class MessageConditionResponse extends BaseUiResponse> { 11 | public MessageConditionResponse(Map data){ 12 | super(data); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MessageGetByTopicResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.Message01Entity; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author: Barack Lee 10 | */ 11 | public class MessageGetByTopicResponse extends BaseUiResponse> { 12 | 13 | public MessageGetByTopicResponse(List data){ 14 | super(data); 15 | } 16 | 17 | public MessageGetByTopicResponse(String code, String msg){super(code,msg);} 18 | } 19 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MessageGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.MessageVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author: Barack Lee 10 | * @Package: com.baracklee.mq.biz.ui.dto.response 11 | * @Project: catmq 12 | * @name: MessageGetListResponse 13 | * @Filename: MessageGetListResponse 14 | */ 15 | public class MessageGetListResponse extends BaseUiResponse>{ 16 | 17 | public MessageGetListResponse(Long count, List data){ 18 | super(count,data); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MessageNotifyResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.NotifyMessageEntity; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author: Barack Lee 10 | */ 11 | public class MessageNotifyResponse extends BaseUiResponse> { 12 | 13 | public MessageNotifyResponse(Long count, List data) { 14 | super(count, data); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MessageStatNotifyResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.NotifyMessageStatEntity; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author: Barack Lee 10 | */ 11 | public class MessageStatNotifyResponse extends BaseUiResponse> { 12 | 13 | public MessageStatNotifyResponse(Long count, List data) { 14 | super(count, data); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MessageUpdateNotifyResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class MessageUpdateNotifyResponse extends BaseUiResponse { 9 | public MessageUpdateNotifyResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MqLockDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public class MqLockDeleteResponse { 7 | public MqLockDeleteResponse() { 8 | super(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/MqLockGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.MqLockEntity; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class MqLockGetListResponse extends BaseUiResponse> { 12 | public MqLockGetListResponse(Long count, List data){ 13 | super(count, data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/PanelNodeGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.PanelNodeVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class PanelNodeGetListResponse extends BaseUiResponse> { 12 | public PanelNodeGetListResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/PhysicalMachineReportResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.PhysicalMachineReportVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class PhysicalMachineReportResponse extends BaseUiResponse> { 12 | public PhysicalMachineReportResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | } -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueCountResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.Map; 6 | 7 | /** 8 | * @author Barack Lee 9 | */ 10 | public class QueueCountResponse extends BaseUiResponse> { 11 | public QueueCountResponse(Map data) { 12 | super(data); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.QueueVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class QueueGetListResponse extends BaseUiResponse> { 12 | 13 | private int role = 0; 14 | 15 | public QueueGetListResponse(Long count, List data) { 16 | super(count, data); 17 | } 18 | 19 | public QueueGetListResponse(Long count, List data, int role) { 20 | super(count, data); 21 | this.role = role; 22 | } 23 | 24 | public int getRole() { 25 | return role; 26 | } 27 | 28 | public void setRole(int role) { 29 | this.role = role; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueOffsetGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.QueueOffsetVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class QueueOffsetGetListResponse extends BaseUiResponse> { 12 | public QueueOffsetGetListResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueOffsetIntelligentDetectionResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class QueueOffsetIntelligentDetectionResponse extends BaseUiResponse { 9 | 10 | public QueueOffsetIntelligentDetectionResponse(String code, String msg){ 11 | super(code,msg); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueOffsetUpdateResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class QueueOffsetUpdateResponse extends BaseUiResponse { 9 | public QueueOffsetUpdateResponse() { 10 | super(); 11 | } 12 | 13 | public QueueOffsetUpdateResponse(String code, String msg) { 14 | super(code, msg); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueOffsetUpdateStopFlagResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class QueueOffsetUpdateStopFlagResponse extends BaseUiResponse { 9 | public QueueOffsetUpdateStopFlagResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueOffsetgetByIdResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.QueueOffsetVo; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class QueueOffsetgetByIdResponse extends BaseUiResponse { 10 | public QueueOffsetgetByIdResponse(QueueOffsetVo data) { 11 | super(data); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueOffsetgetConsumerGroupTopicResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class QueueOffsetgetConsumerGroupTopicResponse extends BaseUiResponse { 9 | public QueueOffsetgetConsumerGroupTopicResponse(String data) { 10 | super(data); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueReadOnlyResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class QueueReadOnlyResponse extends BaseUiResponse { 9 | public QueueReadOnlyResponse() { 10 | super(); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueReportResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.QueueVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class QueueReportResponse extends BaseUiResponse> { 12 | public QueueReportResponse(Long count,List data){ 13 | super(count,data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/QueueUpdateMinIdResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class QueueUpdateMinIdResponse extends BaseUiResponse { 9 | public QueueUpdateMinIdResponse(){super();} 10 | } 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/RedundanceCheckResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class RedundanceCheckResponse extends BaseUiResponse { 9 | public RedundanceCheckResponse(String data) { 10 | super(data); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ServerChangeStatusResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | /** 7 | * @Author:Baracklee 8 | */ 9 | public class ServerChangeStatusResponse extends BaseUiResponse { 10 | public ServerChangeStatusResponse() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/ServerGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | 4 | 5 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 6 | import com.baracklee.mq.biz.entity.ServerEntity; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * @Author:Barack lee 12 | */ 13 | public class ServerGetListResponse extends BaseUiResponse> { 14 | public ServerGetListResponse(Long count, List data) { 15 | super(count, data); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicClearTokenResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class TopicClearTokenResponse extends BaseUiResponse { 9 | 10 | public TopicClearTokenResponse() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicCreateResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class TopicCreateResponse extends BaseUiResponse { 9 | public TopicCreateResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicDeleteResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class TopicDeleteResponse extends BaseUiResponse { 9 | public TopicDeleteResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicExpandResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class TopicExpandResponse extends BaseUiResponse { 9 | 10 | public TopicExpandResponse() { 11 | super(); 12 | } 13 | 14 | public TopicExpandResponse(String code, String msg) { 15 | super(code,msg); 16 | } 17 | 18 | 19 | } 20 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicGenerateTokenResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class TopicGenerateTokenResponse extends BaseUiResponse { 9 | 10 | public TopicGenerateTokenResponse() { 11 | super(); 12 | } 13 | 14 | 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicGetByIdResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.TopicEntity; 5 | 6 | /** 7 | * @Author: Barack Lee 8 | */ 9 | public class TopicGetByIdResponse extends BaseUiResponse { 10 | public TopicGetByIdResponse(TopicEntity data) { 11 | super(data); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicGetListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.TopicVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class TopicGetListResponse extends BaseUiResponse> { 12 | public TopicGetListResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicGetTopicNamesResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author Barack Lee 9 | */ 10 | public class TopicGetTopicNamesResponse extends BaseUiResponse> { 11 | public TopicGetTopicNamesResponse(Long count, List data) { 12 | super(count, data); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicManualExpandResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @Author: Barack Lee 7 | */ 8 | public class TopicManualExpandResponse extends BaseUiResponse { 9 | 10 | public TopicManualExpandResponse() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicQueueRemoveListResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.QueueRemoveInfoVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author: Barack Lee 10 | */ 11 | public class TopicQueueRemoveListResponse extends BaseUiResponse> { 12 | 13 | 14 | public TopicQueueRemoveListResponse(Long count, List data) { 15 | super(count, data); 16 | } 17 | 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicQueueRemoveResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class TopicQueueRemoveResponse extends BaseUiResponse { 9 | public TopicQueueRemoveResponse() { 10 | super(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicReportResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.ui.vo.TopicVo; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class TopicReportResponse extends BaseUiResponse> { 12 | public TopicReportResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicSearchResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | import com.baracklee.mq.biz.entity.TopicEntity; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @author Barack Lee 10 | */ 11 | public class TopicSearchResponse extends BaseUiResponse> { 12 | public TopicSearchResponse(Long count, List data) { 13 | super(count, data); 14 | } 15 | 16 | public TopicSearchResponse(){ 17 | super(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/TopicUpdateSaveDayNumResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | /** 6 | * @author Barack Lee 7 | */ 8 | public class TopicUpdateSaveDayNumResponse extends BaseUiResponse { 9 | 10 | public TopicUpdateSaveDayNumResponse() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/UserGetBizTypesResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | import java.util.List; 6 | 7 | public class UserGetBizTypesResponse extends BaseUiResponse> { 8 | public UserGetBizTypesResponse(Long count,List data) { 9 | super(count,data); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/UserGetByUserIdsResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | public class UserGetByUserIdsResponse extends BaseUiResponse { 6 | public UserGetByUserIdsResponse(String data) { 7 | super(data); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/UserGetCurrentDptResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 4 | 5 | public class UserGetCurrentDptResponse extends BaseUiResponse { 6 | 7 | public UserGetCurrentDptResponse(String data) { 8 | super(data); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/UserGetCurrentUserResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.UserInfo; 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | public class UserGetCurrentUserResponse extends BaseUiResponse { 7 | public UserGetCurrentUserResponse(UserInfo userInfo) { 8 | super(userInfo); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/dto/response/UserSearchResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.dto.response; 2 | 3 | import com.baracklee.mq.biz.dto.UserInfo; 4 | import com.baracklee.mq.biz.dto.response.BaseUiResponse; 5 | 6 | import java.util.List; 7 | 8 | public class UserSearchResponse extends BaseUiResponse> { 9 | public UserSearchResponse(Long count, List data) { 10 | super(count, data); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/enums/NodeTypeEnum.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.enums; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public enum NodeTypeEnum { 7 | SUCCESS_NODE_TYPE(1,"成功类型"), 8 | FAIL_NODE_TYPE(2,"失败类型"); 9 | 10 | private int typeCode; 11 | private String description; 12 | 13 | NodeTypeEnum(int typeCode, String description) { 14 | this.typeCode = typeCode; 15 | this.description = description; 16 | } 17 | public int getTypeCode() { 18 | return typeCode; 19 | } 20 | 21 | public String getDescription() { 22 | return description; 23 | } 24 | 25 | public static String getDescByCode(int typeCode){ 26 | for (NodeTypeEnum nodeTypeEnum: NodeTypeEnum.values()){ 27 | if (nodeTypeEnum.getTypeCode()==typeCode){ 28 | return nodeTypeEnum.getDescription(); 29 | } 30 | } 31 | return ""; 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/enums/NormalFlagEnum.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.enums; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public enum NormalFlagEnum { 7 | NORMAL_NODE(1, "普通节点"), 8 | SPECIAL_NODE(2, "特殊节点"); 9 | 10 | private int flagCode; 11 | private String description; 12 | 13 | NormalFlagEnum(int flagCode, String description) { 14 | this.flagCode = flagCode; 15 | this.description = description; 16 | } 17 | 18 | public int getFlagCode() { 19 | return flagCode; 20 | } 21 | 22 | public String getDescription() { 23 | return description; 24 | } 25 | 26 | public static String getDescByCode(int flagCode) { 27 | for (NormalFlagEnum normalFlagEnum: NormalFlagEnum.values()) { 28 | if (normalFlagEnum.getFlagCode() == flagCode) { 29 | return normalFlagEnum.getDescription(); 30 | } 31 | } 32 | return ""; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/enums/ReadWriteEnum.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.enums; 2 | 3 | public enum ReadWriteEnum { 4 | READ_WRITE(1, "读写"), 5 | READ_ONLY(2, "只读"), 6 | NO_READ_NO_WRITE(3, "不可读不可写"); 7 | 8 | private int code; 9 | private String description; 10 | 11 | ReadWriteEnum(int code, String description) { 12 | this.code = code; 13 | this.description = description; 14 | } 15 | 16 | public int getCode() { 17 | return code; 18 | } 19 | 20 | public String getDescription() { 21 | return description; 22 | } 23 | 24 | public static String getDescByCode(int code) { 25 | for(ReadWriteEnum readWriteEnum: ReadWriteEnum.values()) { 26 | if (readWriteEnum.getCode() == code) { 27 | return readWriteEnum.getDescription(); 28 | } 29 | } 30 | return ""; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/enums/ResponseEnum.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.enums; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public enum ResponseEnum { 7 | RESPONSE_FAIL, 8 | RESPONSE_SUCCESS; 9 | } 10 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/exceptions/AuthFailException.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.exceptions; 2 | 3 | public class AuthFailException extends RuntimeException { 4 | public AuthFailException(String msg) { 5 | super(msg); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/exceptions/CheckFailException.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.exceptions; 2 | 3 | public class CheckFailException extends MqUiException { 4 | public CheckFailException(String msg) { 5 | super(msg); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/exceptions/MqUiException.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.exceptions; 2 | 3 | 4 | public class MqUiException extends RuntimeException { 5 | public MqUiException(String msg) { 6 | super(msg); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/ConnectionsVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public class ConnectionsVo { 7 | private String ip; 8 | private String maxConnection; 9 | private String curConnection; 10 | 11 | public String getIp() { 12 | return ip; 13 | } 14 | 15 | public void setIp(String ip) { 16 | this.ip = ip; 17 | } 18 | 19 | public String getMaxConnection() { 20 | return maxConnection; 21 | } 22 | 23 | public void setMaxConnection(String maxConnection) { 24 | this.maxConnection = maxConnection; 25 | } 26 | 27 | public String getCurConnection() { 28 | return curConnection; 29 | } 30 | 31 | public void setCurConnection(String curConnection) { 32 | this.curConnection = curConnection; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/ConsumerGroupTopicVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | import com.baracklee.mq.biz.entity.ConsumerGroupTopicEntity; 4 | import org.springframework.beans.BeanUtils; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class ConsumerGroupTopicVo extends ConsumerGroupTopicEntity { 10 | private int role; 11 | public ConsumerGroupTopicVo(ConsumerGroupTopicEntity consumerGroupTopicEntity){ 12 | BeanUtils.copyProperties(consumerGroupTopicEntity,this); 13 | } 14 | 15 | public int getRole() { 16 | return role; 17 | } 18 | 19 | public void setRole(int role) { 20 | this.role = role; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/ConsumerGroupVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | import com.baracklee.mq.biz.entity.ConsumerGroupEntity; 4 | import org.springframework.beans.BeanUtils; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class ConsumerGroupVo extends ConsumerGroupEntity { 10 | private int role; 11 | 12 | public ConsumerGroupVo(ConsumerGroupEntity consumerGroupEntity){ 13 | BeanUtils.copyProperties(consumerGroupEntity,this); 14 | } 15 | 16 | public int getRole() { 17 | return role; 18 | } 19 | 20 | public void setRole(int role) { 21 | this.role = role; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/ConsumerVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | import com.baracklee.mq.biz.entity.ConsumerEntity; 4 | import org.springframework.beans.BeanUtils; 5 | 6 | /** 7 | * @author Barack Lee 8 | */ 9 | public class ConsumerVo extends ConsumerEntity { 10 | private int role; 11 | private String ownerIds; 12 | private String ownerNames; 13 | 14 | public ConsumerVo(ConsumerEntity consumerEntity) { 15 | BeanUtils.copyProperties(consumerEntity, this); 16 | } 17 | 18 | public String getOwnerNames() { 19 | return ownerNames; 20 | } 21 | 22 | public void setOwnerNames(String ownerNames) { 23 | this.ownerNames = ownerNames; 24 | } 25 | 26 | public String getOwnerIds() { 27 | return ownerIds; 28 | } 29 | 30 | public void setOwnerIds(String ownerIds) { 31 | this.ownerIds = ownerIds; 32 | } 33 | 34 | public int getRole() { 35 | return role; 36 | } 37 | 38 | public void setRole(int role) { 39 | this.role = role; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/DepartmentVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public class DepartmentVo { 7 | private String name; 8 | private long publishNum;//每周消息发送量 9 | private long consumerNum;//每周消息消费量 10 | 11 | public String getName() { 12 | return name; 13 | } 14 | 15 | public void setName(String name) { 16 | this.name = name; 17 | } 18 | 19 | public long getPublishNum() { 20 | return publishNum; 21 | } 22 | 23 | public void setPublishNum(long publishNum) { 24 | this.publishNum = publishNum; 25 | } 26 | 27 | public long getConsumerNum() { 28 | return consumerNum; 29 | } 30 | 31 | public void setConsumerNum(long consumerNum) { 32 | this.consumerNum = consumerNum; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/MessageVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | import com.baracklee.mq.biz.entity.Message01Entity; 4 | import org.springframework.beans.BeanUtils; 5 | 6 | /** 7 | * @Author: Barack Lee 8 | */ 9 | public class MessageVo extends Message01Entity { 10 | int type; 11 | String failMsgRetryStatus; 12 | public MessageVo(Message01Entity message01Entity){ 13 | BeanUtils.copyProperties(message01Entity,this); 14 | } 15 | 16 | public String getFailMsgRetryStatus() { 17 | return failMsgRetryStatus; 18 | } 19 | 20 | public void setFailMsgRetryStatus(String failMsgRetryStatus) { 21 | this.failMsgRetryStatus = failMsgRetryStatus; 22 | } 23 | 24 | public int getType() { 25 | return type; 26 | } 27 | 28 | public void setType(int type) { 29 | this.type = type; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/MonitorUrlVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public class MonitorUrlVo { 7 | private String name; 8 | private String url; 9 | 10 | 11 | public String getName() { 12 | return name; 13 | } 14 | 15 | public void setName(String name) { 16 | this.name = name; 17 | } 18 | 19 | 20 | public String getUrl() { 21 | return url; 22 | } 23 | 24 | public void setUrl(String url) { 25 | this.url = url; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/OnLineNumsVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public class OnLineNumsVo { 7 | private String name; 8 | private Long number; 9 | public OnLineNumsVo(String name, Long number){ 10 | this.name=name; 11 | this.number=number; 12 | } 13 | 14 | public String getName() { 15 | return name; 16 | } 17 | 18 | public void setName(String name) { 19 | this.name = name; 20 | } 21 | 22 | public Long getNumber() { 23 | return number; 24 | } 25 | 26 | public void setNumber(Long number) { 27 | this.number = number; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mq-biz/src/main/java/com/baracklee/mq/biz/ui/vo/PhysicalMachineReportVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.ui.vo; 2 | 3 | /** 4 | * @author Barack Lee 5 | */ 6 | public class PhysicalMachineReportVo { 7 | String ip; 8 | long msgCount; 9 | long avgCount; 10 | 11 | public String getIp() { 12 | return ip; 13 | } 14 | 15 | public void setIp(String ip) { 16 | this.ip = ip; 17 | } 18 | 19 | public long getMsgCount() { 20 | return msgCount; 21 | } 22 | 23 | public void setMsgCount(long msgCount) { 24 | this.msgCount = msgCount; 25 | } 26 | 27 | public long getAvgCount() { 28 | return avgCount; 29 | } 30 | 31 | public void setAvgCount(long avgCount) { 32 | this.avgCount = avgCount; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /mq-biz/src/main/resources/META-INF/spring.factories: -------------------------------------------------------------------------------- 1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ 2 | com.baracklee.mq.biz.BizConfig -------------------------------------------------------------------------------- /mq-biz/src/main/resources/msg/Message01Base.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /mq-biz/src/main/resources/mysql/AuditLog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | DELETE from audit_log where id #{minId} 11 | 12 | -------------------------------------------------------------------------------- /mq-biz/src/main/resources/mysql/DbNode.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 15 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /mq-biz/src/main/resources/mysql/DbReposite.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 13 | 16 | 17 | 20 | 21 | 24 | -------------------------------------------------------------------------------- /mq-biz/src/main/resources/mysql/NotifyMessageStat.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | update notify_message_stat set notify_message_id=(select max(id) from notify_message) where 7 | notify_message_id>(select max(id) from notify_message) 8 | 9 | 10 | -------------------------------------------------------------------------------- /mq-biz/src/test/java/com/baracklee/mq/biz/AllBizTests.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz; 2 | 3 | import com.baracklee.mq.biz.service.impl.*; 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.Suite; 6 | 7 | /** 8 | * @Author: Barack Lee 9 | */ 10 | @RunWith(Suite.class) 11 | @Suite.SuiteClasses({ AuditLogServiceImplTest.class, ConsumerCommitServiceImplTest.class, 12 | ConsumerGroupCheckServiceImplTest.class, ConsumerGroupConsumerCheckServiceImplTest.class, 13 | ConsumerGroupServiceImplTest.class, ConsumerGroupTopicCheckServiceImplTest.class, 14 | ConsumerGroupTopicServiceImplTest.class, ConsumerGroupTopicServiceImplTest.class, ConsumerServiceImplTest.class, 15 | DbNodeServiceImplTest.class, EmailServiceImplTest.class, LogServiceImplTest.class, 16 | Message01ServiceImplTest.class }) 17 | public class AllBizTests { 18 | } 19 | -------------------------------------------------------------------------------- /mq-client-test/src/main/java/com/baracklee/MqTestApplication.java: -------------------------------------------------------------------------------- 1 | package com.baracklee; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class MqTestApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(MqTestApplication.class, args); 10 | } 11 | } -------------------------------------------------------------------------------- /mq-client-test/src/main/java/com/baracklee/TestSub.java: -------------------------------------------------------------------------------- 1 | package com.baracklee; 2 | 3 | 4 | 5 | import com.baracklee.mq.biz.dto.base.MessageDto; 6 | import com.baracklee.mq.biz.dto.base.ProducerDataDto; 7 | import com.baracklee.mq.biz.event.ISubscriber; 8 | import com.baracklee.mq.client.MqClient; 9 | 10 | import java.time.LocalTime; 11 | import java.util.List; 12 | 13 | public class TestSub implements ISubscriber { 14 | @Override 15 | public List onMessageReceived(List messages) { 16 | try { 17 | for (MessageDto message : messages) { 18 | System.out.println("message is "+LocalTime.now()+" "+message.getBody()); 19 | } 20 | } catch (Exception e) { 21 | // TODO Auto-generated catch block 22 | e.printStackTrace(); 23 | } 24 | return null; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /mq-client-test/src/main/resources/META-INF/app.properties: -------------------------------------------------------------------------------- 1 | app.id=1000002171 -------------------------------------------------------------------------------- /mq-client-test/src/main/resources/META-INF/cat/client.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /mq-client-test/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8087 2 | spring.application.name=mqtest 3 | mq.broker.url=http://localhost:8080 -------------------------------------------------------------------------------- /mq-client-test/src/main/resources/messageQueue/messageQueue.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/MqEnvironment.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client; 2 | 3 | import com.baracklee.mq.biz.MqEnv; 4 | 5 | import java.util.List; 6 | import java.util.Set; 7 | 8 | public interface MqEnvironment { 9 | boolean isPro(); 10 | String getAppId(); 11 | MqEnv getEnv(); 12 | String getSubEnv(); 13 | String getTargetSubEnv(); 14 | void setTargetSubEnv(String targetSubEnv1); 15 | void clear(); 16 | Set getAppSubEnvs(); 17 | void setAppSubEnvs(List appSubEnvs); 18 | } 19 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/config/ConsumerGroupMetaVo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.config; 2 | 3 | public class ConsumerGroupMetaVo { 4 | private String name; 5 | private String originName; 6 | 7 | public String getOriginName() { 8 | return originName; 9 | } 10 | 11 | public void setOriginName(String originName) { 12 | this.originName = originName; 13 | } 14 | 15 | public String getName() { 16 | return name; 17 | } 18 | 19 | public void setName(String name) { 20 | this.name = name; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IConsumerPollingService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | import java.util.Map; 4 | 5 | public interface IConsumerPollingService extends IMqClientService{ 6 | Map getMqExecutors(); 7 | } 8 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqBrokerUrlRefreshService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | public interface IMqBrokerUrlRefreshService extends IMqClientService{ 4 | } 5 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqCheckService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | public interface IMqCheckService extends IMqClientService{ 4 | } 5 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqClientService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | public interface IMqClientService { 4 | void start(); 5 | void close(); 6 | } 7 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqCommitService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | public interface IMqCommitService extends IMqClientService{ 4 | } 5 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqGroupExecutorService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | import com.baracklee.mq.biz.dto.base.ConsumerGroupOneDto; 4 | 5 | import java.util.Map; 6 | 7 | public interface IMqGroupExecutorService extends IMqClientService{ 8 | void rbOrUpdate(ConsumerGroupOneDto consumerGroupOne, String serverIp); 9 | Map getQueueEx(); 10 | } 11 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqHeartbeatService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | import com.baracklee.mq.client.core.IMqClientService; 4 | 5 | public interface IMqHeartbeatService extends IMqClientService { 6 | } 7 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqMeticsReporterService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | public interface IMqMeticsReporterService extends IMqClientService{ 4 | } 5 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqQueueExecutorService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | import com.baracklee.mq.biz.dto.base.ConsumerQueueDto; 4 | import com.baracklee.mq.biz.dto.base.ConsumerQueueVersionDto; 5 | import com.baracklee.mq.biz.dto.base.MessageDto; 6 | import com.baracklee.mq.client.dto.TraceMessageDto; 7 | 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | public interface IMqQueueExecutorService extends IMqClientService{ 12 | void updateQueueMeta(ConsumerQueueDto consumerQueue); 13 | 14 | void notifyMsg(); 15 | 16 | void commit(List failMsgs, ConsumerQueueDto consumerQueue); 17 | 18 | Map getSlowMsg(); 19 | 20 | ConsumerQueueVersionDto getChangedCommit(); 21 | 22 | ConsumerQueueVersionDto getLast(); 23 | boolean hasFininshed(); 24 | void stop(); 25 | } 26 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMqTopicQueueRefreshService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | import java.util.List; 4 | 5 | public interface IMqTopicQueueRefreshService extends IMqClientService{ 6 | List getTopicQueueIds(String topicName); 7 | } 8 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/core/IMsgNotifyService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.core; 2 | 3 | import com.baracklee.mq.biz.dto.client.MsgNotifyRequest; 4 | 5 | public interface IMsgNotifyService { 6 | 7 | void notify(MsgNotifyRequest request); 8 | } 9 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/metic/MetricSingleton.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.metic; 2 | 3 | import com.codahale.metrics.MetricRegistry; 4 | 5 | public class MetricSingleton { 6 | private MetricSingleton() {} 7 | 8 | private static class SingletonHelper{ 9 | private static final MetricRegistry INSTANCE=new MetricRegistry(); 10 | } 11 | 12 | public static MetricRegistry getMetricRegistry(){ 13 | return SingletonHelper.INSTANCE; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-client/mq-client-core/src/main/java/com/baracklee/mq/client/resolver/ISubscriberResolver.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.resolver; 2 | 3 | import com.baracklee.mq.biz.event.IAsynSubscriber; 4 | import com.baracklee.mq.biz.event.ISubscriber; 5 | 6 | public interface ISubscriberResolver { 7 | IAsynSubscriber getAsnySubscriber(String className) throws Exception; 8 | ISubscriber getSubscriber(String className) throws Exception; 9 | 10 | } 11 | -------------------------------------------------------------------------------- /mq-client/mq-client-spring/src/main/java/com/baracklee/mq/client/bootStrap/MqClientShutdownListener.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.bootStrap; 2 | 3 | import com.baracklee.mq.client.MqClient; 4 | import org.slf4j.Logger; 5 | import org.slf4j.LoggerFactory; 6 | import org.springframework.context.ApplicationListener; 7 | import org.springframework.context.event.ContextClosedEvent; 8 | import org.springframework.stereotype.Component; 9 | 10 | @Component 11 | public class MqClientShutdownListener implements ApplicationListener { 12 | private static final Logger logger = LoggerFactory.getLogger(MqClientShutdownListener.class); 13 | 14 | @Override 15 | public void onApplicationEvent(ContextClosedEvent contextClosedEvent) { 16 | try { 17 | MqClientStartup.close(); 18 | MqClient.close(); 19 | logger.info("注册退出!"); 20 | } catch (Exception e) { 21 | logger.error("MqClient_close_error", e); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /mq-client/mq-client-spring/src/test/java/com/baracklee/mq/client/stat/MqClientStatControllerTest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.stat; 2 | 3 | import org.junit.Test; 4 | import org.springframework.core.env.Environment; 5 | import org.springframework.test.util.ReflectionTestUtils; 6 | 7 | import static org.junit.Assert.*; 8 | import static org.mockito.Mockito.mock; 9 | import static org.mockito.Mockito.when; 10 | 11 | /** 12 | * @Author: Barack Lee 13 | */ 14 | public class MqClientStatControllerTest { 15 | final String MQ_CLINET_STAT_OPEN = "mq.client.stat.open"; 16 | 17 | @Test 18 | public void test() { 19 | Environment mock = mock(Environment.class); 20 | when(mock.getProperty(MQ_CLINET_STAT_OPEN, "true")).thenReturn("true"); 21 | MqClientStatController mqClientStatController=new MqClientStatController(); 22 | ReflectionTestUtils.setField(mqClientStatController,"env",mock); 23 | 24 | 25 | 26 | 27 | mqClientStatController.th(); 28 | 29 | } 30 | } -------------------------------------------------------------------------------- /mq-client/mq-client-springboot/src/main/java/com/baracklee/mq/client/MqBootstrapScanConfig.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client; 2 | 3 | 4 | import com.baracklee.mq.client.stat.MqFilter; 5 | import org.springframework.boot.web.servlet.FilterRegistrationBean; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.context.annotation.ComponentScan; 8 | import org.springframework.context.annotation.Configuration; 9 | @Configuration 10 | @ComponentScan(basePackageClasses = { MqBootstrapScanConfig.class }) 11 | public class MqBootstrapScanConfig { 12 | @Bean("clientMqFilter") 13 | public FilterRegistrationBean clientMqFilter(MqFilter mqFilter) { 14 | FilterRegistrationBean openApiFilter = new FilterRegistrationBean(); 15 | openApiFilter.setFilter(mqFilter); 16 | openApiFilter.addUrlPatterns("/mq/client/*"); 17 | return openApiFilter; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mq-client/mq-client-springboot/src/main/java/com/baracklee/mq/client/stat/MqFilter.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client.stat; 2 | 3 | 4 | import org.springframework.stereotype.Component; 5 | 6 | import javax.annotation.Resource; 7 | import javax.servlet.*; 8 | import java.io.IOException; 9 | 10 | @Component 11 | public class MqFilter implements Filter { 12 | @Resource 13 | private StatService statService; 14 | 15 | @Override 16 | public void init(FilterConfig filterConfig) throws ServletException { 17 | 18 | } 19 | 20 | @Override 21 | public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { 22 | try { 23 | filterChain.doFilter(servletRequest,servletResponse); 24 | } catch (Exception e) { 25 | statService.start(); 26 | throw e; 27 | } 28 | } 29 | 30 | @Override 31 | public void destroy() { 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /mq-client/mq-client-springboot/src/main/resources/META-INF/spring.factories: -------------------------------------------------------------------------------- 1 | org.springframework.boot.autoconfigure.EnableAutoConfiguration=\ 2 | com.baracklee.mq.client.MqBootstrapScanConfig -------------------------------------------------------------------------------- /mq-client/mq-client-springboot/src/test/java/com/baracklee/mq/client/MqBootstrapScanConfigTest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.client; 2 | 3 | import com.baracklee.mq.client.stat.MqFilter; 4 | import org.junit.Test; 5 | import org.junit.runner.RunWith; 6 | import org.junit.runners.JUnit4; 7 | import org.springframework.boot.web.servlet.FilterRegistrationBean; 8 | 9 | import static org.junit.Assert.assertEquals; 10 | /** 11 | *@Author: Barack Lee 12 | */ 13 | 14 | @RunWith(JUnit4.class) 15 | public class MqBootstrapScanConfigTest { 16 | @Test 17 | public void test() { 18 | MqBootstrapScanConfig mqBootstrapScanConfig=new MqBootstrapScanConfig(); 19 | FilterRegistrationBean filterRegistrationBean=mqBootstrapScanConfig.clientMqFilter(new MqFilter()); 20 | assertEquals(1, filterRegistrationBean.getUrlPatterns().size()); 21 | } 22 | } -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/MqConst.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz; 2 | 3 | public class MqConst { 4 | public static final int ERROR=1; 5 | 6 | public static final int WARN=2; 7 | 8 | public static final int INFO=3; 9 | public static final int DEBUG=4; 10 | 11 | public static final int MAX_LENGTH=40000; 12 | public static String DEFAULT_SUBENV="default"; 13 | public static String MQ_SUB_ENV_KEY="mq_sub_env"; 14 | } 15 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/MqEnv.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz; 2 | 3 | import com.baracklee.mq.biz.common.util.Util; 4 | 5 | public enum MqEnv { 6 | 7 | LOCAL,DEV,FWS,FAT,UAT,PRE,LPT,PRO,TOOLS; 8 | 9 | public static MqEnv fromString(String envName){ 10 | if(Util.isEmpty(envName)) return null; 11 | switch (envName.trim().toUpperCase()){ 12 | case "LPT": 13 | return MqEnv.LPT; 14 | case "PRE": 15 | return MqEnv.PRE; 16 | case "FAT": 17 | case "FWS": 18 | return MqEnv.FAT; 19 | case "UAT": 20 | return MqEnv.UAT; 21 | case "PRO": 22 | case "PROD": // just in case 23 | return MqEnv.PRO; 24 | case "DEV": 25 | return MqEnv.DEV; 26 | case "LOCAL": 27 | return MqEnv.LOCAL; 28 | default: 29 | return null; 30 | } 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/common/metric/TagName.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.metric; 2 | 3 | 4 | import com.baracklee.mq.biz.common.util.Util; 5 | 6 | import java.util.Map; 7 | import java.util.concurrent.ConcurrentHashMap; 8 | 9 | public class TagName { 10 | 11 | private String name; 12 | private Map tags; 13 | 14 | public TagName(String name, Map tags) { 15 | this.name = name; 16 | this.tags = tags; 17 | } 18 | 19 | public String getName() { 20 | return name; 21 | } 22 | 23 | public Map getTags() { 24 | return tags; 25 | } 26 | 27 | public static TagName name(String name) { 28 | return new TagName(name, new ConcurrentHashMap<>()); 29 | } 30 | 31 | public TagName addTag(String name, String value) { 32 | if (Util.isEmpty(name) || Util.isEmpty(value)) { 33 | return this; 34 | } 35 | this.tags.put(name, value); 36 | return this; 37 | } 38 | 39 | @Override 40 | public String toString() { 41 | return TagNameUtil.format(this); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/common/trace/Trace.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.trace; 2 | 3 | //public abstract class Trace { 4 | // 5 | // 6 | //} 7 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/common/trace/TraceMessage.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.trace; 2 | 3 | import com.baracklee.mq.biz.common.util.Util; 4 | 5 | import java.util.Date; 6 | import java.util.concurrent.locks.ReentrantReadWriteLock; 7 | 8 | public class TraceMessage { 9 | private volatile int counter=0; 10 | private volatile TraceMessageItem[] data=new TraceMessageItem[100]; 11 | private String name; 12 | private transient ReentrantReadWriteLock lock=new ReentrantReadWriteLock(true); 13 | public TraceMessage(String name){ 14 | this.name=name; 15 | } 16 | 17 | // public void add(TraceMessageItem traceMessageItem) { 18 | // if (!TraceFactory.isEnabled(name)) { 19 | // 20 | // return; 21 | // } 22 | // if (Util.isEmpty(traceMessageItem.status)) { 23 | // traceMessageItem.status = "none"; 24 | // } 25 | // traceMessageItem.endTime = Util.formateDate(new Date(), Util.SSS_FORMATE); 26 | // doAdd(traceMessageItem); 27 | // } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/common/trace/TraceMessageItem.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.trace; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Date; 5 | 6 | public class TraceMessageItem { 7 | public String msg; 8 | public String status; 9 | public String startTime; 10 | public String endTime; 11 | 12 | private String setDate(){ 13 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss:SSS"); 14 | return sdf.format(new Date()); 15 | } 16 | private void start(){this.startTime=setDate();} 17 | public TraceMessageItem(){start();}; 18 | } 19 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/common/util/BrokerException.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.util; 2 | 3 | public class BrokerException extends Exception{ 4 | public BrokerException(String message){super(message);} 5 | } 6 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/common/util/ConsumerGroupUtil.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.util; 2 | 3 | public class ConsumerGroupUtil { 4 | public static String getBroadcastConsumerName(String consumerGroupName, String ip,long consumerId){ 5 | return String.format("%s_%s-%s", consumerGroupName, ip, consumerId); 6 | } 7 | public static String getOriginConsumerName(String consumerGroupName){ 8 | if(!consumerGroupName.contains("_")){ 9 | return consumerGroupName; 10 | }else { 11 | return consumerGroupName.substring(0,consumerGroupName.lastIndexOf("_")); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/common/util/IHttpClient.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.util; 2 | 3 | import okhttp3.Callback; 4 | 5 | import java.io.IOException; 6 | 7 | public interface IHttpClient { 8 | boolean check(String url); 9 | String post(String url, Object reqObj) throws IOException,BrokerException; 10 | T post(String url, Object request, Class class1) throws IOException,BrokerException; 11 | T get(String url, Class class1) throws IOException; 12 | void postAsyn(String var1, Object var2, Callback var3); 13 | void getAsyn(String url, Callback callback); 14 | String get(String url) throws IOException; 15 | } 16 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/BaseRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto; 2 | 3 | import com.baracklee.mq.biz.common.util.IPUtil; 4 | import com.baracklee.mq.biz.common.util.PropUtil; 5 | public class BaseRequest { 6 | private String lan; 7 | 8 | private String sdkVersion; 9 | 10 | private String clientIp= IPUtil.getLocalIP(); 11 | 12 | public BaseRequest(){ 13 | lan="java"; 14 | sdkVersion=PropUtil.getSdkVersion(); 15 | } 16 | 17 | public String getLan() { 18 | return lan; 19 | } 20 | 21 | public void setLan(String lan) { 22 | this.lan = lan; 23 | } 24 | 25 | public String getSdkVersion() { 26 | return sdkVersion; 27 | } 28 | 29 | public void setSdkVersion(String sdkVersion) { 30 | this.sdkVersion = sdkVersion; 31 | } 32 | 33 | public String getClientIp() { 34 | return clientIp; 35 | } 36 | 37 | public void setClientIp(String clientIp) { 38 | this.clientIp = clientIp; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/MqConstanst.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto; 2 | 3 | public class MqConstanst { 4 | public static final String YES="1"; 5 | public static final String NO="0"; 6 | public static final String CONSUMERPRE="/api/client/consumer"; 7 | public static final String TOOLPRE="/api/client/tool"; 8 | public static final String METAPRE="/api/server/meta"; 9 | } 10 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/base/ConsumerGroupDto.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.base; 2 | 3 | import java.util.Map; 4 | 5 | public class ConsumerGroupDto { 6 | private ConsumerGroupMetaDto meta; 7 | 8 | /* 9 | * key 为consumerId,value 为 queueId 10 | */ 11 | private Map> consumers; 12 | 13 | public ConsumerGroupMetaDto getMeta() { 14 | return meta; 15 | } 16 | 17 | public void setMeta(ConsumerGroupMetaDto meta) { 18 | this.meta = meta; 19 | } 20 | 21 | public Map> getConsumers() { 22 | return consumers; 23 | } 24 | 25 | public void setConsumers(Map> consumers) { 26 | this.consumers = consumers; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/base/ConsumerGroupMetaDto.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.base; 2 | 3 | public class ConsumerGroupMetaDto { 4 | private String name; 5 | 6 | private long rbVersion; 7 | 8 | private long metaVersion; 9 | 10 | private long version; 11 | 12 | public String getName() { 13 | return name; 14 | } 15 | 16 | public void setName(String name) { 17 | this.name = name; 18 | } 19 | 20 | public long getRbVersion() { 21 | return rbVersion; 22 | } 23 | 24 | public void setRbVersion(long rbVersion) { 25 | this.rbVersion = rbVersion; 26 | } 27 | 28 | public long getMetaVersion() { 29 | return metaVersion; 30 | } 31 | 32 | public void setMetaVersion(long metaVersion) { 33 | this.metaVersion = metaVersion; 34 | } 35 | 36 | public long getVersion() { 37 | return version; 38 | } 39 | 40 | public void setVersion(long version) { 41 | this.version = version; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/base/ConsumerGroupOneDto.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.base; 2 | 3 | import com.baracklee.mq.biz.dto.base.ConsumerGroupMetaDto; 4 | import com.baracklee.mq.biz.dto.base.ConsumerQueueDto; 5 | 6 | import java.util.Map; 7 | 8 | public class ConsumerGroupOneDto { 9 | private ConsumerGroupMetaDto meta; 10 | //key为queueid 11 | private Map queues; 12 | 13 | public ConsumerGroupMetaDto getMeta() { 14 | return meta; 15 | } 16 | 17 | public void setMeta(ConsumerGroupMetaDto meta) { 18 | this.meta = meta; 19 | } 20 | 21 | public Map getQueues() { 22 | return queues; 23 | } 24 | 25 | public void setQueues(Map queues) { 26 | this.queues = queues; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/base/MessageNotifyDto.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.base; 2 | 3 | public class MessageNotifyDto { 4 | private long queueId; 5 | private String consumeGroupName; 6 | 7 | public long getQueueId() { 8 | return queueId; 9 | } 10 | 11 | public void setQueueId(long queueId) { 12 | this.queueId = queueId; 13 | } 14 | 15 | public String getConsumeGroupName() { 16 | return consumeGroupName; 17 | } 18 | 19 | public void setConsumeGroupName(String consumeGroupName) { 20 | this.consumeGroupName = consumeGroupName; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/base/PartitionInfo.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.base; 2 | 3 | public class PartitionInfo { 4 | 5 | private long queueId; 6 | 7 | private int strictMode =1; 8 | 9 | public long getQueueId() { 10 | return queueId; 11 | } 12 | 13 | public void setQueueId(long queueId) { 14 | this.queueId = queueId; 15 | } 16 | 17 | public int getStrictMode() { 18 | return strictMode; 19 | } 20 | 21 | public void setStrictMode(int strictMode) { 22 | this.strictMode = strictMode; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/CommitOffsetRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | import com.baracklee.mq.biz.dto.base.ConsumerQueueVersionDto; 5 | 6 | import java.util.List; 7 | 8 | public class CommitOffsetRequest extends BaseRequest { 9 | private List queueOffsets; 10 | 11 | private int flag=0; 12 | 13 | public List getQueueOffsets() { 14 | return queueOffsets; 15 | } 16 | 17 | public void setQueueOffsets(List queueOffsets) { 18 | this.queueOffsets = queueOffsets; 19 | } 20 | 21 | public int getFlag() { 22 | return flag; 23 | } 24 | 25 | public void setFlag(int flag) { 26 | this.flag = flag; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/CommitOffsetResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | public class CommitOffsetResponse extends BaseResponse { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/ConsumerDeRegisterRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | 5 | import java.util.List; 6 | 7 | public class ConsumerDeRegisterRequest extends BaseRequest { 8 | private long id; 9 | private List consumerGroupNames; 10 | 11 | public long getId() { 12 | return id; 13 | } 14 | 15 | public void setId(long id) { 16 | this.id = id; 17 | } 18 | 19 | public List getConsumerGroupNames() { 20 | return consumerGroupNames; 21 | } 22 | 23 | public void setConsumerGroupNames(List consumerGroupNames) { 24 | this.consumerGroupNames = consumerGroupNames; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/ConsumerDeRegisterResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | public class ConsumerDeRegisterResponse extends BaseResponse { 6 | } 7 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/ConsumerGroupRegisterResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | import java.util.Map; 6 | 7 | public class ConsumerGroupRegisterResponse extends BaseResponse { 8 | private Map broadcastConsumerGroupName; 9 | 10 | private Map consumerGroupNameNew; 11 | 12 | public Map getBroadcastConsumerGroupName() { 13 | return broadcastConsumerGroupName; 14 | } 15 | 16 | public void setBroadcastConsumerGroupName(Map broadcastConsumerGroupName) { 17 | this.broadcastConsumerGroupName = broadcastConsumerGroupName; 18 | } 19 | 20 | public Map getConsumerGroupNameNew() { 21 | return consumerGroupNameNew; 22 | } 23 | 24 | public void setConsumerGroupNameNew(Map consumerGroupNameNew) { 25 | this.consumerGroupNameNew = consumerGroupNameNew; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/ConsumerRegisterRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | 5 | public class ConsumerRegisterRequest extends BaseRequest { 6 | 7 | private String name; 8 | 9 | public String getName() { 10 | return name; 11 | } 12 | 13 | public void setName(String name) { 14 | this.name = name; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/ConsumerRegisterResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | import com.baracklee.mq.biz.dto.BaseResponse; 5 | 6 | public class ConsumerRegisterResponse extends BaseResponse { 7 | private long id; 8 | 9 | public long getId() { 10 | return id; 11 | } 12 | 13 | public void setId(long id) { 14 | this.id = id; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/FailMsgPublishAndUpdateResultRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | 5 | import java.util.List; 6 | 7 | public class FailMsgPublishAndUpdateResultRequest extends BaseRequest { 8 | private List ids; 9 | 10 | private long queueId; 11 | 12 | private PublishMessageRequest failMsg; 13 | 14 | public List getIds() { 15 | return ids; 16 | } 17 | 18 | public void setIds(List ids) { 19 | this.ids = ids; 20 | } 21 | 22 | public long getQueueId() { 23 | return queueId; 24 | } 25 | 26 | public void setQueueId(long queueId) { 27 | this.queueId = queueId; 28 | } 29 | 30 | public PublishMessageRequest getFailMsg() { 31 | return failMsg; 32 | } 33 | 34 | public void setFailMsg(PublishMessageRequest failMsg) { 35 | this.failMsg = failMsg; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/FailMsgPublishAndUpdateResultResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | public class FailMsgPublishAndUpdateResultResponse extends BaseResponse { 6 | } 7 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetConsumerGroupRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | import java.util.Map; 6 | 7 | public class GetConsumerGroupRequest extends BaseResponse { 8 | private long consumerId; 9 | private Map consumerGroupVersion; 10 | 11 | public long getConsumerId() { 12 | return consumerId; 13 | } 14 | 15 | public void setConsumerId(long consumerId) { 16 | this.consumerId = consumerId; 17 | } 18 | 19 | public Map getConsumerGroupVersion() { 20 | return consumerGroupVersion; 21 | } 22 | 23 | public void setConsumerGroupVersion(Map consumerGroupVersion) { 24 | this.consumerGroupVersion = consumerGroupVersion; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetGroupTopicRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseRequest; 5 | 6 | import java.util.List; 7 | 8 | public class GetGroupTopicRequest extends BaseRequest { 9 | private List consumerGroupNames; 10 | 11 | public List getConsumerGroupNames() { 12 | return consumerGroupNames; 13 | } 14 | 15 | public void setConsumerGroupNames(List consumerGroupNames) { 16 | this.consumerGroupNames = consumerGroupNames; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetGroupTopicResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseResponse; 5 | 6 | import java.util.List; 7 | 8 | public class GetGroupTopicResponse extends BaseResponse { 9 | 10 | private List groupTopics; 11 | 12 | public List getGroupTopics() { 13 | return groupTopics; 14 | } 15 | 16 | public void setGroupTopics(List groupTopics) { 17 | this.groupTopics = groupTopics; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetMessageCountRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseRequest; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * 获取topic或者consumergroup剩余的消息的数量 10 | * 11 | */ 12 | public class GetMessageCountRequest extends BaseRequest { 13 | 14 | private String consumerGroupName; 15 | 16 | private List topics; 17 | 18 | public String getConsumerGroupName() { 19 | return consumerGroupName; 20 | } 21 | 22 | public void setConsumerGroupName(String consumerGroupName) { 23 | this.consumerGroupName = consumerGroupName; 24 | } 25 | 26 | public List getTopics() { 27 | return topics; 28 | } 29 | 30 | public void setTopics(List topics) { 31 | this.topics = topics; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetMessageCountResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseResponse; 5 | 6 | public class GetMessageCountResponse extends BaseResponse { 7 | 8 | private long count; 9 | 10 | public long getCount() { 11 | return count; 12 | } 13 | 14 | public void setCount(long count) { 15 | this.count = count; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetMetaGroupRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseRequest; 5 | 6 | public class GetMetaGroupRequest extends BaseRequest { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetMetaRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | 5 | public class GetMetaRequest extends BaseRequest { 6 | } 7 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetMetaResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | import java.util.List; 6 | 7 | public class GetMetaResponse extends BaseResponse { 8 | private List brokerIp; 9 | private int brokerMetaMode; 10 | 11 | public List getBrokerIp() { 12 | return brokerIp; 13 | } 14 | 15 | public void setBrokerIp(List brokerIp) { 16 | this.brokerIp = brokerIp; 17 | } 18 | 19 | public int getBrokerMetaMode() { 20 | return brokerMetaMode; 21 | } 22 | 23 | public void setBrokerMetaMode(int brokerMetaMode) { 24 | this.brokerMetaMode = brokerMetaMode; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetTopicQueueIdsRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | import com.baracklee.mq.biz.dto.BaseResponse; 5 | 6 | import java.util.List; 7 | 8 | public class GetTopicQueueIdsRequest extends BaseRequest { 9 | private List topicNames; 10 | 11 | public List getTopicNames() { 12 | return topicNames; 13 | } 14 | 15 | public void setTopicNames(List topicNames) { 16 | this.topicNames = topicNames; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetTopicQueueIdsResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | public class GetTopicQueueIdsResponse extends BaseResponse { 9 | private Map> topicQueues; 10 | 11 | public Map> getTopicQueues() { 12 | return topicQueues; 13 | } 14 | 15 | public void setTopicQueues(Map> topicQueues) { 16 | this.topicQueues = topicQueues; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetTopicRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseRequest; 5 | 6 | public class GetTopicRequest extends BaseRequest { 7 | 8 | private String consumerGroupName; 9 | 10 | public String getConsumerGroupName() { 11 | return consumerGroupName; 12 | } 13 | 14 | public void setConsumerGroupName(String consumerGroupName) { 15 | this.consumerGroupName = consumerGroupName; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GetTopicResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseResponse; 5 | 6 | import java.util.List; 7 | 8 | public class GetTopicResponse extends BaseResponse { 9 | 10 | private List topics; 11 | 12 | public List getTopics() { 13 | return topics; 14 | } 15 | 16 | public void setTopics(List topics) { 17 | this.topics = topics; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/GroupTopicDto.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import java.util.List; 4 | 5 | public class GroupTopicDto { 6 | 7 | private String consumerGroupName; 8 | private List topics; 9 | 10 | public String getConsumerGroupName() { 11 | return consumerGroupName; 12 | } 13 | public void setConsumerGroupName(String consumerGroupName) { 14 | this.consumerGroupName = consumerGroupName; 15 | } 16 | public List getTopics() { 17 | return topics; 18 | } 19 | public void setTopics(List topics) { 20 | this.topics = topics; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/HeartbeatRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | 5 | import java.util.List; 6 | 7 | public class HeartbeatRequest extends BaseRequest { 8 | private long consumerId; 9 | private List consumerIds; 10 | private int asyn = 1; 11 | 12 | public int getAsyn() { 13 | return asyn; 14 | } 15 | 16 | public void setAsyn(int asyn) { 17 | this.asyn = asyn; 18 | } 19 | 20 | 21 | public List getConsumerIds() { 22 | return consumerIds; 23 | } 24 | 25 | public void setConsumerIds(List consumerIds) { 26 | this.consumerIds = consumerIds; 27 | } 28 | 29 | public long getConsumerId() { 30 | return consumerId; 31 | } 32 | 33 | public void setConsumerId(long consumerId) { 34 | this.consumerId = consumerId; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/HeartbeatResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | public class HeartbeatResponse extends BaseResponse { 6 | private int heatbeatTime; 7 | private int deleted = 0; 8 | private String bakUrl=""; 9 | public String getBakUrl() { 10 | return bakUrl; 11 | } 12 | 13 | public void setBakUrl(String bakUrl) { 14 | this.bakUrl = bakUrl; 15 | } 16 | public int getDeleted() { 17 | return deleted; 18 | } 19 | 20 | public void setDeleted(int deleted) { 21 | this.deleted = deleted; 22 | } 23 | 24 | 25 | public int getHeatbeatTime() { 26 | return heatbeatTime; 27 | } 28 | 29 | public void setHeatbeatTime(int heatbeatTime) { 30 | this.heatbeatTime = heatbeatTime; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/LogResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.BaseResponse; 5 | 6 | public class LogResponse extends BaseResponse { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/MsgNotifyDto.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | public class MsgNotifyDto { 4 | private long queueId; 5 | private String consumerGroupname; 6 | 7 | public long getQueueId() { 8 | return queueId; 9 | } 10 | 11 | public void setQueueId(long queueId) { 12 | this.queueId = queueId; 13 | } 14 | 15 | public String getConsumerGroupname() { 16 | return consumerGroupname; 17 | } 18 | 19 | public void setConsumerGroupname(String consumerGroupname) { 20 | this.consumerGroupname = consumerGroupname; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/MsgNotifyRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import java.util.List; 4 | 5 | public class MsgNotifyRequest { 6 | private List msgNotifyDtos; 7 | 8 | public List getMsgNotifyDtos() { 9 | return msgNotifyDtos; 10 | } 11 | 12 | public void setMsgNotifyDtos(List msgNotifyDtos) { 13 | this.msgNotifyDtos = msgNotifyDtos; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/OpLogRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | 5 | public class OpLogRequest extends BaseRequest { 6 | private String consumerGroupName; 7 | 8 | private String content; 9 | 10 | private String consumerName; 11 | 12 | public String getConsumerGroupName() { 13 | return consumerGroupName; 14 | } 15 | 16 | public void setConsumerGroupName(String consumerGroupName) { 17 | this.consumerGroupName = consumerGroupName; 18 | } 19 | 20 | public String getContent() { 21 | return content; 22 | } 23 | 24 | public void setContent(String content) { 25 | this.content = content; 26 | } 27 | 28 | public String getConsumerName() { 29 | return consumerName; 30 | } 31 | 32 | public void setConsumerName(String consumerName) { 33 | this.consumerName = consumerName; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/PublishMessageResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | 5 | public class PublishMessageResponse extends BaseResponse { 6 | private long sleepTime; 7 | 8 | public long getSleepTime() { 9 | return sleepTime; 10 | } 11 | 12 | public void setSleepTime(long sleepTime) { 13 | this.sleepTime = sleepTime; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/PullDataResponse.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseResponse; 4 | import com.baracklee.mq.biz.dto.base.MessageDto; 5 | 6 | import java.util.List; 7 | 8 | public class PullDataResponse extends BaseResponse { 9 | private List msgs; 10 | 11 | public List getMsgs() { 12 | return msgs; 13 | } 14 | 15 | public void setMsgs(List msgs) { 16 | this.msgs = msgs; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/dto/client/UpdateMetaRequest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.dto.client; 2 | 3 | import com.baracklee.mq.biz.dto.BaseRequest; 4 | 5 | import java.util.List; 6 | 7 | public class UpdateMetaRequest extends BaseRequest { 8 | private List consumerGroupName; 9 | 10 | public List getConsumerGroupName() { 11 | return consumerGroupName; 12 | } 13 | 14 | public void setConsumerGroupName(List consumerGroupName) { 15 | this.consumerGroupName = consumerGroupName; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/IAsynSubscriber.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | 4 | 5 | import com.baracklee.mq.biz.dto.base.ConsumerQueueDto; 6 | import com.baracklee.mq.biz.dto.base.MessageDto; 7 | 8 | import java.util.List; 9 | 10 | public interface IAsynSubscriber { 11 | void onMessageReceived(List messages, ConsumerQueueDto consumerQueue); 12 | } 13 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/IAsynSubscriberSelector.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | public interface IAsynSubscriberSelector { 4 | IAsynSubscriber getSubscriber(String consumerGroupName, String topic); 5 | } 6 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/IMsgFilter.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | import com.baracklee.mq.biz.dto.base.MessageDto; 4 | 5 | public interface IMsgFilter { 6 | boolean onMsgFilter(MessageDto dto); 7 | } 8 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/IPartitionSelector.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | import com.baracklee.mq.biz.dto.base.PartitionInfo; 4 | import com.baracklee.mq.biz.dto.base.ProducerDataDto; 5 | 6 | import java.util.List; 7 | 8 | public interface IPartitionSelector { 9 | //如果没有返回0 10 | PartitionInfo getPartitionId(String topic, ProducerDataDto message, List partitionIds); 11 | } 12 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/ISubscriber.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.base.MessageDto; 5 | 6 | import java.util.List; 7 | 8 | public interface ISubscriber { 9 | List onMessageReceived(List messages); 10 | } 11 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/ISubscriberSelector.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | /* 4 | * 次类与ISubscriberResolver的区别是,此类是运行时获取相关的类, ISubscriberResolver是在初始化时决定的消费类, 5 | * 一个是在初始化时决定,一个是在运行过程中决定. 6 | * */ 7 | public interface ISubscriberSelector { 8 | ISubscriber getSubscriber(String consumerGroupName, String topic); 9 | } 10 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/PostHandleListener.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | import com.baracklee.mq.biz.dto.base.ConsumerQueueDto; 4 | 5 | public interface PostHandleListener { 6 | //如果返回False,表示暂停当前线程 7 | boolean postHandle(ConsumerQueueDto consumerQueueDto,Boolean isSuc); 8 | } 9 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/PreHandleListener.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | import com.baracklee.mq.biz.dto.base.ConsumerQueueDto; 4 | 5 | public interface PreHandleListener { 6 | 7 | //如果返回False,表示暂停当前线程 8 | boolean preHandle(ConsumerQueueDto consumerQueueDto); 9 | } 10 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/java/com/baracklee/mq/biz/event/PreSendListener.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.event; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.base.ProducerDataDto; 5 | 6 | //消息发送前事件 7 | public interface PreSendListener { 8 | void onPreSend(ProducerDataDto producerDataDto); 9 | } 10 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/main/resources/mqversion.properties: -------------------------------------------------------------------------------- 1 | application.version = ${project.version} 2 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/test/java/com/baracklee/mq/biz/AllCoreTest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz; 2 | 3 | import com.baracklee.mq.biz.common.util.*; 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.Suite; 6 | 7 | /** 8 | * @Author: Barack Lee 9 | */ 10 | @RunWith(Suite.class) 11 | @Suite.SuiteClasses({ ClassLoaderUtilTest.class, ConsumerGroupUtilTest.class, HttpClientTest.class, 12 | UtilTest.class }) 13 | public class AllCoreTest { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/test/java/com/baracklee/mq/biz/common/util/ClassLoaderUtilTest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.util; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.JUnit4; 6 | 7 | import static org.junit.Assert.assertEquals; 8 | 9 | @RunWith(JUnit4.class) 10 | public class ClassLoaderUtilTest { 11 | 12 | @Test 13 | public void getLoaderTest() { 14 | assertEquals(true, ClassLoaderUtil.getLoader() != null); 15 | } 16 | @Test 17 | public void getClassPathTest() { 18 | assertEquals(true, ClassLoaderUtil.getClassPath()!=null); 19 | } 20 | 21 | @Test 22 | public void isClassPresentTest() { 23 | assertEquals(false, ClassLoaderUtil.isClassPresent("tt.tt")); 24 | 25 | assertEquals(true, ClassLoaderUtil.isClassPresent("com.baracklee.mq.biz.common.util.ClassLoaderUtilTest")); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /mq-client/mq-core/src/test/java/com/baracklee/mq/biz/common/util/ConsumerGroupUtilTest.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.mq.biz.common.util; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.junit.runners.JUnit4; 6 | 7 | import static org.junit.Assert.assertEquals; 8 | 9 | @RunWith(JUnit4.class) 10 | public class ConsumerGroupUtilTest { 11 | 12 | @Test 13 | public void getBroadcastConsumerNameTest() { 14 | assertEquals("1_2-3", ConsumerGroupUtil.getBroadcastConsumerName("1", "2", 3)); 15 | } 16 | 17 | 18 | @Test 19 | public void getOriginConsumerNameTest() { 20 | assertEquals("2_1", ConsumerGroupUtil.getOriginConsumerName("2_1_2-3")); 21 | assertEquals("2-3", ConsumerGroupUtil.getOriginConsumerName("2-3")); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /mq-rest/src/main/java/com/baracklee/rest/mq/RestApplication.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.rest.mq; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; @SpringBootApplication @ServletComponentScan public class RestApplication { public static void main(String[] args) { SpringApplication.run(RestApplication.class); } } -------------------------------------------------------------------------------- /mq-rest/src/main/java/com/baracklee/rest/mq/boot/ReportService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.rest.mq.boot; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | import org.springframework.stereotype.Service; 6 | 7 | import java.lang.invoke.MethodHandles; 8 | 9 | @Service 10 | public class ReportService { 11 | private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); 12 | 13 | public void registerReport() { 14 | registerMetricReport(); 15 | } 16 | 17 | //if you have register Metrics 18 | private void registerMetricReport() { 19 | 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /mq-rest/src/main/java/com/baracklee/rest/mq/controller/client/ConsumerCommitController.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.rest.mq.controller.client; 2 | 3 | 4 | import com.baracklee.mq.biz.dto.MqConstanst; 5 | import com.baracklee.mq.biz.dto.client.CommitOffsetRequest; 6 | import com.baracklee.mq.biz.dto.client.CommitOffsetResponse; 7 | import com.baracklee.mq.biz.service.ConsumerCommitService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.web.bind.annotation.*; 10 | 11 | @RestController 12 | @RequestMapping(MqConstanst.CONSUMERPRE) 13 | public class ConsumerCommitController { 14 | @Autowired 15 | private ConsumerCommitService consumerCommitService; 16 | 17 | // 发送心跳,直接返回 18 | @PostMapping("/commitOffset") 19 | public CommitOffsetResponse commitOffset(@RequestBody CommitOffsetRequest request) { 20 | return consumerCommitService.commitOffset(request); 21 | } 22 | 23 | @GetMapping("/getCommitOffsetCache") 24 | public Object getCommitOffsetCache() { 25 | return consumerCommitService.getCache(); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /mq-rest/src/main/resources/META-INF/app.properties: -------------------------------------------------------------------------------- 1 | app.id=1000002533 -------------------------------------------------------------------------------- /mq-rest/src/main/resources/application-fat.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url = jdbc:mysql://localhost:3306/mq_basic?useUnicode=true&characterEncoding=utf8&useSSL=false 2 | spring.datasource.username = root 3 | spring.datasource.password = 123456 4 | spring.datasource.maxActive = 100 5 | spring.datasource.initialSize = 10 6 | spring.datasource.minIdle = 10 7 | spring.datasource.type = com.alibaba.druid.pool.DruidDataSource 8 | spring.datasource.filters = stat,wall 9 | 10 | email.enable = false 11 | email.host = *** 12 | email.port = 13 | email.auName = **** 14 | email.auPass = *** 15 | email.enableAuth = false 16 | 17 | admin.email = ****@***.com 18 | 19 | 20 | mq.env = fat 21 | 22 | mq.broker.url=http://localhost:8080 -------------------------------------------------------------------------------- /mq-rest/src/main/resources/application-pro.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url = jdbc:mysql://localhost:3306/mq_basic?useUnicode=true&characterEncoding=utf8&useSSL=false 2 | spring.datasource.username = root 3 | spring.datasource.password = root 4 | spring.datasource.maxActive = 100 5 | spring.datasource.initialSize = 10 6 | spring.datasource.minIdle = 10 7 | spring.datasource.type = com.alibaba.druid.pool.DruidDataSource 8 | spring.datasource.filters = stat,wall,log4j 9 | 10 | email.enable = true 11 | email.host = *** 12 | email.port = 13 | email.auName = **** 14 | email.auPass = *** 15 | email.enableAuth = false 16 | 17 | ###超级管理员邮件 18 | admin.email = ****@***.com 19 | 20 | ##当前环境 21 | mq.env = pro 22 | #全流程测试使用 23 | mq.broker.url=http://localhost:8080 -------------------------------------------------------------------------------- /mq-rest/src/main/resources/application-uat.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url = jdbc:mysql://localhost:3306/mq_basic?useUnicode=true&characterEncoding=utf8&useSSL=false 2 | spring.datasource.username = root 3 | spring.datasource.password = root 4 | spring.datasource.maxActive = 100 5 | spring.datasource.initialSize = 10 6 | spring.datasource.minIdle = 10 7 | spring.datasource.type = com.alibaba.druid.pool.DruidDataSource 8 | spring.datasource.filters = stat,wall,log4j 9 | 10 | email.enable = true 11 | email.host = *** 12 | email.port = 13 | email.auName = **** 14 | email.auPass = *** 15 | email.enableAuth = false 16 | 17 | ###超级管理员邮件 18 | admin.email = ****@***.com 19 | 20 | ##当前环境 21 | mq.env = uat 22 | #全流程测试使用 23 | mq.broker.url=http://localhost:8080 -------------------------------------------------------------------------------- /mq-rest/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 2 | spring.application.name=mqbroker 3 | logging.config=classpath:logback-rest.xml 4 | 5 | logging.level.com.baracklee.mq.biz.polling=warn 6 | logging.level.com.baracklee.mq.biz.cache=warn 7 | 8 | spring.profiles.active=fat 9 | spring.datasource.minEvictableIdleTimeMillis=30000 10 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/UiApplicationContext.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui; 2 | 3 | import nz.net.ultraq.thymeleaf.LayoutDialect; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | import org.springframework.boot.web.servlet.ServletComponentScan; 7 | import org.springframework.context.annotation.Bean; 8 | 9 | @SpringBootApplication 10 | @ServletComponentScan 11 | public class UiApplicationContext { 12 | public static void main(String[] args) { 13 | SpringApplication.run(UiApplicationContext.class); 14 | } 15 | @Bean 16 | public LayoutDialect layoutDialect() { 17 | return new LayoutDialect(); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/boot/DbReportService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.boot; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | /** 6 | * Author: BarackLee 7 | */ 8 | 9 | @Component 10 | public class DbReportService { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/boot/ReportService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.boot; 2 | 3 | import org.slf4j.Logger; 4 | import org.slf4j.LoggerFactory; 5 | import org.springframework.stereotype.Service; 6 | 7 | import java.lang.invoke.MethodHandles; 8 | 9 | /** 10 | * @Author: Barack Lee 11 | */ 12 | @Service 13 | public class ReportService { 14 | private static final Logger log= LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/controller/AuditLogController.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.controller; 2 | 3 | import com.baracklee.mq.biz.dto.request.AuditLogRequest; 4 | import com.baracklee.mq.biz.dto.response.AuditLogResponse; 5 | import com.baracklee.mq.biz.service.AuditLogService; 6 | import org.slf4j.Logger; 7 | import org.slf4j.LoggerFactory; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.web.bind.annotation.GetMapping; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.RestController; 12 | 13 | /** 14 | * @author Barack Lee 15 | */ 16 | @RestController 17 | @RequestMapping("/auditLog") 18 | public class AuditLogController { 19 | 20 | Logger log = LoggerFactory.getLogger(this.getClass().getName()); 21 | 22 | @Autowired 23 | AuditLogService uiAuditLogService; 24 | 25 | @GetMapping("/list") 26 | public AuditLogResponse auditLogList(AuditLogRequest auditLogRequest) { 27 | return uiAuditLogService.logList(auditLogRequest); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/controller/DepartmentController.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.controller; 2 | 3 | 4 | import com.baracklee.mq.biz.ui.dto.response.DepartmentReportResponse; 5 | import com.baracklee.ui.service.UiDepartmentService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RestController; 9 | 10 | 11 | @RestController 12 | @RequestMapping("/department") 13 | public class DepartmentController { 14 | @Autowired 15 | UiDepartmentService uiDepartmentService; 16 | 17 | @RequestMapping("/report") 18 | public DepartmentReportResponse getReport(){ 19 | return uiDepartmentService.getDepartmentReport(); 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/controller/RedundanceCheckController.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.controller; 2 | 3 | 4 | import com.baracklee.mq.biz.ui.dto.response.RedundanceCheckResponse; 5 | import com.baracklee.ui.service.UiRedundanceCheckService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RestController; 9 | 10 | 11 | @RestController 12 | @RequestMapping("/redundance") 13 | public class RedundanceCheckController { 14 | @Autowired 15 | private UiRedundanceCheckService uiRedundanceCheckService; 16 | 17 | @RequestMapping("/checkAll") 18 | public RedundanceCheckResponse checkAll() { 19 | return uiRedundanceCheckService.checkAll(); 20 | } 21 | 22 | @RequestMapping("/imitate") 23 | public RedundanceCheckResponse imitate(){ 24 | return uiRedundanceCheckService.imitate(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/spi/UserConfiguration.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.spi; 2 | 3 | import com.baracklee.ui.spi.ldap.UserProviderServiceImpl; 4 | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; 5 | import org.springframework.context.annotation.Bean; 6 | import org.springframework.context.annotation.Configuration; 7 | 8 | @Configuration 9 | public class UserConfiguration { 10 | 11 | @Bean 12 | @ConditionalOnMissingBean 13 | public UserProviderService ldapUserService() { 14 | return new UserProviderServiceImpl(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/spi/UserProviderService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.spi; 2 | 3 | import com.baracklee.mq.biz.dto.Organization; 4 | import com.baracklee.mq.biz.dto.UserInfo; 5 | 6 | import java.util.Map; 7 | 8 | /** 9 | * Author: BarackLee 10 | */ 11 | public interface UserProviderService { 12 | //获取部门 13 | Map getOrgs() ; 14 | //获取所有用户信息 15 | Map getUsers(); 16 | boolean login(String username, String password); 17 | } 18 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/spi/UserService.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.spi; 2 | 3 | import com.baracklee.mq.biz.dto.UserInfo; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * Author: BarackLee 9 | */ 10 | 11 | public interface UserService { 12 | 13 | List searchUsers(String keyword, int offset, int limit); 14 | 15 | List getDpts(); 16 | 17 | String getCurrentDpt(); 18 | 19 | UserInfo findByUserId(String userId); 20 | 21 | List findByUserIds(List userIds); 22 | 23 | String getNamesByUserIds(String userIdS); 24 | 25 | List getBizTypes(); 26 | 27 | boolean login(String username, String password); 28 | } 29 | -------------------------------------------------------------------------------- /mq-ui/src/main/java/com/baracklee/ui/util/SysFailSub.java: -------------------------------------------------------------------------------- 1 | package com.baracklee.ui.util; 2 | 3 | 4 | import com.baracklee.mq.biz.common.util.JsonUtil; 5 | import com.baracklee.mq.biz.dto.base.MessageDto; 6 | import com.baracklee.mq.biz.dto.client.PublishMessageRequest; 7 | import com.baracklee.mq.biz.event.ISubscriber; 8 | import com.baracklee.mq.client.MqClient; 9 | 10 | import java.util.List; 11 | 12 | public class SysFailSub implements ISubscriber { 13 | 14 | @Override 15 | public List onMessageReceived(List messages) { 16 | messages.forEach(message->{ 17 | MqClient.getContext().getMqResource().publish(JsonUtil.parseJson(message.getBody(), PublishMessageRequest.class)); 18 | }); 19 | return null; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /mq-ui/src/main/resources/application-pro.properties: -------------------------------------------------------------------------------- 1 | ###管理员用户ID,userid 列表 2 | mq.admin.user.ids = [] 3 | ###业务类型,逗号隔开,如["研发","研发1"] 4 | mq.biz.types = ["基础框架"] 5 | mq.ldap.url = LDAP://***** 6 | mq.ldap.path = OU=***,OU=***,DC=corp,DC=***,DC=com|OU=***,OU=***,DC=corp,DC=***,DC=com 7 | mq.ldap.user= 8 | mq.ldap.pass= 9 | spring.datasource.url = jdbc:mysql://localhost:3306/mq_basic?useUnicode=true&characterEncoding=utf8&useSSL=false 10 | spring.datasource.username = root 11 | spring.datasource.password = root 12 | spring.datasource.maxActive = 100 13 | spring.datasource.initialSize = 10 14 | spring.datasource.minIdle = 10 15 | spring.datasource.type = com.alibaba.druid.pool.DruidDataSource 16 | spring.datasource.filters = stat,wall,log4j 17 | 18 | email.enable = true 19 | email.host = **** 20 | email.port = *** 21 | email.auName = *** 22 | email.auPass = *** 23 | email.enableAuth = false 24 | 25 | ###超级管理员邮件 26 | admin.email = ******@***.com 27 | 28 | #全流程测试使用 29 | mq.broker.url=http://localhost:8080 30 | 31 | ##当前环境 32 | mq.env = pro -------------------------------------------------------------------------------- /mq-ui/src/main/resources/application-uat.properties: -------------------------------------------------------------------------------- 1 | ###管理员用户ID,userid 列表 2 | mq.admin.user.ids = [] 3 | ###业务类型,逗号隔开,如["研发","研发1"] 4 | mq.biz.types = ["基础框架"] 5 | mq.ldap.url = LDAP://***** 6 | mq.ldap.path = OU=***,OU=***,DC=corp,DC=***,DC=com|OU=***,OU=***,DC=corp,DC=***,DC=com 7 | mq.ldap.user= 8 | mq.ldap.pass= 9 | spring.datasource.url = jdbc:mysql://localhost:3306/mq_basic?useUnicode=true&characterEncoding=utf8&useSSL=false 10 | spring.datasource.username = root 11 | spring.datasource.password = root 12 | spring.datasource.maxActive = 100 13 | spring.datasource.initialSize = 10 14 | spring.datasource.minIdle = 10 15 | spring.datasource.type = com.alibaba.druid.pool.DruidDataSource 16 | spring.datasource.filters = stat,wall,log4j 17 | 18 | email.enable = true 19 | email.host = **** 20 | email.port = *** 21 | email.auName = *** 22 | email.auPass = *** 23 | email.enableAuth = false 24 | 25 | ###超级管理员邮件 26 | admin.email = ******@***.com 27 | 28 | #全流程测试使用 29 | mq.broker.url=http://localhost:8080 30 | 31 | ##当前环境 32 | mq.env = uat -------------------------------------------------------------------------------- /mq-ui/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8089 2 | spring.application.name=mqportal 3 | #logging.level.com.ctrip.framework.apollo=error 4 | spring.thymeleaf.prefix =classpath:/templates/ 5 | spring.thymeleaf.cache=false 6 | spring.thymeleaf.content-type=text/html 7 | spring.thymeleaf.mode =LEGACYHTML5 8 | logging.config=classpath:logback-ui.xml 9 | mq.db.initCount = 2 10 | mq.db.maxCount = 10 11 | spring.profiles.active=fat 12 | logging.level.com.ppdai.infrastructure.mq.biz.polling=debug 13 | logging.level.com.ppdai.infrastructure.mq.biz.cache=debug -------------------------------------------------------------------------------- /mq-ui/src/main/resources/messageQueue/messageQueue1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/assets/mq_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/assets/mq_m.png -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/common.css: -------------------------------------------------------------------------------- 1 | input:read-only { 2 | background: #eaeaea; 3 | color: gray; 4 | } 5 | 6 | input.layui-input.layui-unselect { 7 | background: white; 8 | color: black; 9 | } -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/font/font_tnyc012u2rlwstt9.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/css/font/font_tnyc012u2rlwstt9.eot -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/font/font_tnyc012u2rlwstt9.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/css/font/font_tnyc012u2rlwstt9.ttf -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/font/font_tnyc012u2rlwstt9.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/css/font/font_tnyc012u2rlwstt9.woff -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/css/font/iconfont.eot -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/css/font/iconfont.ttf -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/css/font/iconfont.woff -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/css/index.css: -------------------------------------------------------------------------------- 1 | .top-process { 2 | padding-top: 25px; 3 | margin-left: 250px; 4 | color: white; 5 | /*width: 400px;*/ 6 | } 7 | 8 | .process-bar { 9 | width: 100px; 10 | } 11 | 12 | .layui-progress-big .layui-progress-text { 13 | position: static; 14 | padding: 0 10px; 15 | color: #666; 16 | } 17 | .visualHidden{ 18 | visibility: hidden; 19 | } -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/code.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/code.jpg -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/face.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/face.jpg -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/favicon.ico -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/log.png -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/login-bg1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/login-bg1.jpg -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/login-bg2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/login-bg2.jpg -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/login-bg3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/login-bg3.jpg -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/mq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/mq.png -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/readOnly.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/readOnly.jpg -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/images/readWrite.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/images/readWrite.jpg -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/js/auditLog.js: -------------------------------------------------------------------------------- 1 | layui.use(['element', 'table', 'jquery', 'layer', 'form'], function () { 2 | var table = layui.table; 3 | var form = layui.form; 4 | table.render({ 5 | request: { 6 | tbName: '', 7 | refId: '', 8 | page:'', 9 | limit:'' 10 | } 11 | }); 12 | 13 | $("body").on('click','#auditSearchList_btn',function(){ 14 | getListData($("#tableName").val(),$("#refId").val()); 15 | }); 16 | 17 | table.on('tool(auditTable)', function (obj) { 18 | var data = obj.data; //获得当前行数据 19 | var layEvent = obj.event; //获得 lay-event 对应的值(也可以是表头的 event 参数对应的值) 20 | if(layEvent=="detail"){ 21 | 22 | } 23 | }); 24 | 25 | function getListData(tbName,refId) { 26 | table.reload("auditTable", { 27 | where: { 28 | tbName : tbName, 29 | refId : refId 30 | } 31 | }); 32 | } 33 | }) -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/js/config.js: -------------------------------------------------------------------------------- 1 | layui.config({ 2 | base: '/js/' 3 | }).extend({ 4 | mySelect2: 'mySelect2' 5 | }); -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/js/panel.js: -------------------------------------------------------------------------------- 1 | layui.use(['table'], function () { 2 | var table = layui.table; 3 | 4 | table.render(); 5 | }); -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/font/iconfont.eot -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/font/iconfont.woff -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/font/iconfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/font/iconfont.woff2 -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/0.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/1.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/10.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/11.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/12.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/13.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/14.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/15.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/16.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/17.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/18.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/19.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/2.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/20.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/21.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/22.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/23.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/24.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/25.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/26.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/27.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/28.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/29.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/3.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/30.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/31.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/32.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/33.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/34.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/35.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/36.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/37.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/38.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/39.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/4.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/40.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/41.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/42.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/43.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/44.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/45.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/46.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/47.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/48.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/49.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/5.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/50.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/51.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/52.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/53.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/54.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/55.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/56.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/57.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/58.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/59.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/6.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/60.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/61.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/62.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/63.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/64.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/65.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/66.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/67.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/68.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/69.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/7.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/70.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/71.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/8.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/static/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iambiglee/catmq/4b8ac6dfbdebe237cc949785ea1cca2538337d48/mq-ui/src/main/resources/static/layui/images/face/9.gif -------------------------------------------------------------------------------- /mq-ui/src/main/resources/templates/dbNode/analysis.html: -------------------------------------------------------------------------------- 1 |

-------------------------------------------------------------------------------- /mq-ui/src/main/resources/templates/dbNode/changeStatus.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 | 6 |
7 | 8 |
9 | 10 | 11 | 12 |
13 |
14 | 15 |
16 |
17 | 18 |
19 |
20 | 21 |
-------------------------------------------------------------------------------- /mq-ui/src/main/resources/templates/dbNode/confirmCreateSql.html: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |
6 | 7 |
8 | 9 |
10 |
11 | 12 |
13 |
14 | 15 | 16 |
17 |
18 | 19 |
-------------------------------------------------------------------------------- /mq-ui/src/main/resources/templates/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
    6 |
  • 堆积统计
  • 7 |
8 |
9 |
10 | 11 |
12 |
13 |
14 | 15 | 16 |
17 | 18 | 19 | --------------------------------------------------------------------------------