-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add remoting service and move models into common module
- Loading branch information
1 parent
1dfc379
commit 413ba11
Showing
99 changed files
with
2,417 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...dashboard-common/src/main/java/org/apache/eventmesh/dashboard/common/enums/StoreType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.dashboard.common.enums; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
public enum StoreType { | ||
|
||
STANDALONE(0, "Standalone"), | ||
ROCKETMQ(1, "RocketMQ"), | ||
KAFKA(2, "Kafka"), | ||
PULSAR(3, "Pulsar"), | ||
RABBITMQ(4, "RabbitMQ"), | ||
REDIS(5, "Redis"); | ||
|
||
@Getter | ||
private final Integer number; | ||
@Getter | ||
private final String name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...in/java/org/apache/eventmesh/dashboard/common/enums/metadata/MetadataServiceTypeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.dashboard.common.enums.metadata; | ||
|
||
public enum MetadataServiceTypeEnum { | ||
|
||
RUNTIME, | ||
|
||
CENTER_ETCD, | ||
|
||
META_NACOS, | ||
|
||
TOPIC, | ||
|
||
CLUSTER, | ||
|
||
CLIENT, | ||
|
||
GROUP, | ||
|
||
CONNECTION, | ||
|
||
|
||
} |
37 changes: 37 additions & 0 deletions
37
.../src/main/java/org/apache/eventmesh/dashboard/common/enums/metadata/MetadataTypeEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.dashboard.common.enums.metadata; | ||
|
||
public enum MetadataTypeEnum { | ||
|
||
CENTER, | ||
|
||
CLUSTER, | ||
|
||
RUNTIME, | ||
|
||
TOPIC, | ||
|
||
GROUP, | ||
|
||
SUBSCRIPTION, | ||
|
||
STORE | ||
; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...ommon/src/main/java/org/apache/eventmesh/dashboard/common/model/metadata/AclMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.dashboard.common.model.metadata; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class AclMetadata { | ||
|
||
private Long clusterId; | ||
private String principal; | ||
private Integer operation; | ||
private String permissionType; | ||
private String host; | ||
private String resourceType; | ||
private String resourceName; | ||
private Integer patternType; | ||
} |
54 changes: 54 additions & 0 deletions
54
...on/src/main/java/org/apache/eventmesh/dashboard/common/model/metadata/ClientMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.dashboard.common.model.metadata; | ||
|
||
import org.apache.eventmesh.dashboard.common.enums.metadata.MetadataServiceTypeEnum; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class ClientMetadata extends MetadataConfig { | ||
|
||
|
||
{ | ||
this.setServiceTypeEnums(MetadataServiceTypeEnum.CLIENT); | ||
} | ||
|
||
private String name; | ||
|
||
private String platform; | ||
|
||
/** | ||
* programing language of client | ||
*/ | ||
private String language; | ||
|
||
/** | ||
* process id | ||
*/ | ||
private Long pid; | ||
|
||
private String host; | ||
|
||
private Integer port; | ||
|
||
/** | ||
* protocol used to connect to runtime. | ||
*/ | ||
private String protocol; | ||
} |
55 changes: 55 additions & 0 deletions
55
...n/src/main/java/org/apache/eventmesh/dashboard/common/model/metadata/ClusterMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.dashboard.common.model.metadata; | ||
|
||
import org.apache.eventmesh.dashboard.common.enums.StoreType; | ||
import org.apache.eventmesh.dashboard.common.enums.metadata.MetadataServiceTypeEnum; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class ClusterMetadata extends MetadataConfig { | ||
|
||
{ | ||
this.setServiceTypeEnums(MetadataServiceTypeEnum.CLUSTER); | ||
} | ||
|
||
private String clusterName; | ||
|
||
private String registryAddress; | ||
|
||
private String bootstrapServers; | ||
|
||
private String eventmeshVersion; | ||
|
||
private String clientProperties; | ||
|
||
private String jmxProperties; | ||
|
||
private String regProperties; | ||
|
||
private Integer authType; | ||
|
||
private Integer runState; | ||
|
||
private Integer status; | ||
|
||
private StoreType storeType; | ||
|
||
private String description; | ||
} |
Oops, something went wrong.