forked from apache/eventmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eventmesh-function' of https://github.com/xwm1992/Event…
…Mesh into eventmesh-function
- Loading branch information
Showing
34 changed files
with
533 additions
and
36 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
11 changes: 6 additions & 5 deletions
11
eventmesh-admin-server/src/main/java/com/apache/eventmesh/admin/server/AdminException.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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.apache.eventmesh.admin.server; | ||
|
||
import lombok.Getter; | ||
|
||
public class AdminException extends RuntimeException { | ||
public AdminException(String message) { | ||
@Getter | ||
private final int code; | ||
public AdminException(int code, String message) { | ||
super(message); | ||
} | ||
|
||
public AdminException(String message, Throwable cause) { | ||
super(message, cause); | ||
this.code = code; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
eventmesh-admin-server/src/main/java/com/apache/eventmesh/admin/server/AdminServer.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
11 changes: 11 additions & 0 deletions
11
...mesh-admin-server/src/main/java/com/apache/eventmesh/admin/server/ExampleAdminServer.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,11 @@ | ||
package com.apache.eventmesh.admin.server; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication(scanBasePackages = "com.apache.eventmesh.admin.server") | ||
public class ExampleAdminServer { | ||
public static void main(String[] args) { | ||
SpringApplication.run(ExampleAdminServer.class); | ||
} | ||
} |
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
25 changes: 25 additions & 0 deletions
25
...er/src/main/java/com/apache/eventmesh/admin/server/web/db/entity/EventMeshDataSource.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,25 @@ | ||
package com.apache.eventmesh.admin.server.web.db.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @TableName event_mesh_data_source | ||
*/ | ||
@TableName(value ="event_mesh_data_source") | ||
@Data | ||
public class EventMeshDataSource implements Serializable { | ||
private Integer id; | ||
|
||
private Integer type; | ||
|
||
private String address; | ||
|
||
private String desc; | ||
|
||
private String configuration; | ||
|
||
private static final long serialVersionUID = 1L; | ||
} |
30 changes: 30 additions & 0 deletions
30
...ver/src/main/java/com/apache/eventmesh/admin/server/web/db/entity/EventMeshHeartbeat.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,30 @@ | ||
package com.apache.eventmesh.admin.server.web.db.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
/** | ||
* @TableName event_mesh_heartbeat | ||
*/ | ||
@TableName(value ="event_mesh_heartbeat") | ||
@Data | ||
public class EventMeshHeartbeat implements Serializable { | ||
private Integer id; | ||
|
||
private String adminAddr; | ||
|
||
private String runtimeAddr; | ||
|
||
private Integer jobID; | ||
|
||
private Integer positionID; | ||
|
||
private Date reportTime; | ||
|
||
private Date updateTime; | ||
|
||
private static final long serialVersionUID = 1L; | ||
} |
38 changes: 38 additions & 0 deletions
38
...erver/src/main/java/com/apache/eventmesh/admin/server/web/db/entity/EventMeshJobInfo.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,38 @@ | ||
package com.apache.eventmesh.admin.server.web.db.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
/** | ||
* @TableName event_mesh_job_info | ||
*/ | ||
@TableName(value ="event_mesh_job_info") | ||
@Data | ||
public class EventMeshJobInfo implements Serializable { | ||
private Integer jobID; | ||
|
||
private Integer transportType; | ||
|
||
private Integer sourceData; | ||
|
||
private Integer targetData; | ||
|
||
private Integer state; | ||
|
||
private Integer type; | ||
|
||
private Integer position; | ||
|
||
private Integer createUid; | ||
|
||
private Integer updateUid; | ||
|
||
private Date createTime; | ||
|
||
private Date updateTime; | ||
|
||
private static final long serialVersionUID = 1L; | ||
} |
28 changes: 28 additions & 0 deletions
28
...r/src/main/java/com/apache/eventmesh/admin/server/web/db/entity/EventMeshJobPosition.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,28 @@ | ||
package com.apache.eventmesh.admin.server.web.db.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.TableName; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
/** | ||
* @TableName event_mesh_job_position | ||
*/ | ||
@TableName(value ="event_mesh_job_position") | ||
@Data | ||
public class EventMeshJobPosition implements Serializable { | ||
private Integer id; | ||
|
||
private Integer jobID; | ||
|
||
private String address; | ||
|
||
private Long position; | ||
|
||
private Date createTime; | ||
|
||
private Date updateTime; | ||
|
||
private static final long serialVersionUID = 1L; | ||
} |
18 changes: 18 additions & 0 deletions
18
.../main/java/com/apache/eventmesh/admin/server/web/db/mapper/EventMeshDataSourceMapper.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,18 @@ | ||
package com.apache.eventmesh.admin.server.web.db.mapper; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshDataSource; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_data_source】的数据库操作Mapper | ||
* @createDate 2024-05-06 10:57:45 | ||
* @Entity generator.entity.EventMeshDataSource | ||
*/ | ||
public interface EventMeshDataSourceMapper extends BaseMapper<EventMeshDataSource> { | ||
|
||
} | ||
|
||
|
||
|
||
|
18 changes: 18 additions & 0 deletions
18
...c/main/java/com/apache/eventmesh/admin/server/web/db/mapper/EventMeshHeartbeatMapper.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,18 @@ | ||
package com.apache.eventmesh.admin.server.web.db.mapper; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshHeartbeat; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_heartbeat】的数据库操作Mapper | ||
* @createDate 2024-05-06 10:57:45 | ||
* @Entity generator.entity.EventMeshHeartbeat | ||
*/ | ||
public interface EventMeshHeartbeatMapper extends BaseMapper<EventMeshHeartbeat> { | ||
|
||
} | ||
|
||
|
||
|
||
|
18 changes: 18 additions & 0 deletions
18
...src/main/java/com/apache/eventmesh/admin/server/web/db/mapper/EventMeshJobInfoMapper.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,18 @@ | ||
package com.apache.eventmesh.admin.server.web.db.mapper; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshJobInfo; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_job_info】的数据库操作Mapper | ||
* @createDate 2024-05-06 10:57:45 | ||
* @Entity generator.entity.EventMeshJobInfo | ||
*/ | ||
public interface EventMeshJobInfoMapper extends BaseMapper<EventMeshJobInfo> { | ||
|
||
} | ||
|
||
|
||
|
||
|
18 changes: 18 additions & 0 deletions
18
...main/java/com/apache/eventmesh/admin/server/web/db/mapper/EventMeshJobPositionMapper.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,18 @@ | ||
package com.apache.eventmesh.admin.server.web.db.mapper; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshJobPosition; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_job_position】的数据库操作Mapper | ||
* @createDate 2024-05-06 10:57:45 | ||
* @Entity generator.entity.EventMeshJobPosition | ||
*/ | ||
public interface EventMeshJobPositionMapper extends BaseMapper<EventMeshJobPosition> { | ||
|
||
} | ||
|
||
|
||
|
||
|
13 changes: 13 additions & 0 deletions
13
...ain/java/com/apache/eventmesh/admin/server/web/db/service/EventMeshDataSourceService.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,13 @@ | ||
package com.apache.eventmesh.admin.server.web.db.service; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshDataSource; | ||
import com.baomidou.mybatisplus.extension.service.IService; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_data_source】的数据库操作Service | ||
* @createDate 2024-05-06 10:57:45 | ||
*/ | ||
public interface EventMeshDataSourceService extends IService<EventMeshDataSource> { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...main/java/com/apache/eventmesh/admin/server/web/db/service/EventMeshHeartbeatService.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,13 @@ | ||
package com.apache.eventmesh.admin.server.web.db.service; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshHeartbeat; | ||
import com.baomidou.mybatisplus.extension.service.IService; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_heartbeat】的数据库操作Service | ||
* @createDate 2024-05-06 10:57:45 | ||
*/ | ||
public interface EventMeshHeartbeatService extends IService<EventMeshHeartbeat> { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...c/main/java/com/apache/eventmesh/admin/server/web/db/service/EventMeshJobInfoService.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,13 @@ | ||
package com.apache.eventmesh.admin.server.web.db.service; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshJobInfo; | ||
import com.baomidou.mybatisplus.extension.service.IService; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_job_info】的数据库操作Service | ||
* @createDate 2024-05-06 10:57:45 | ||
*/ | ||
public interface EventMeshJobInfoService extends IService<EventMeshJobInfo> { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...in/java/com/apache/eventmesh/admin/server/web/db/service/EventMeshJobPositionService.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,13 @@ | ||
package com.apache.eventmesh.admin.server.web.db.service; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshJobPosition; | ||
import com.baomidou.mybatisplus.extension.service.IService; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_job_position】的数据库操作Service | ||
* @createDate 2024-05-06 10:57:45 | ||
*/ | ||
public interface EventMeshJobPositionService extends IService<EventMeshJobPosition> { | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
...com/apache/eventmesh/admin/server/web/db/service/impl/EventMeshDataSourceServiceImpl.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,22 @@ | ||
package com.apache.eventmesh.admin.server.web.db.service.impl; | ||
|
||
import com.apache.eventmesh.admin.server.web.db.entity.EventMeshDataSource; | ||
import com.apache.eventmesh.admin.server.web.db.mapper.EventMeshDataSourceMapper; | ||
import com.apache.eventmesh.admin.server.web.db.service.EventMeshDataSourceService; | ||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
import org.springframework.stereotype.Service; | ||
|
||
/** | ||
* @author sodafang | ||
* @description 针对表【event_mesh_data_source】的数据库操作Service实现 | ||
* @createDate 2024-05-06 10:57:45 | ||
*/ | ||
@Service | ||
public class EventMeshDataSourceServiceImpl extends ServiceImpl<EventMeshDataSourceMapper, EventMeshDataSource> | ||
implements EventMeshDataSourceService { | ||
|
||
} | ||
|
||
|
||
|
||
|
Oops, something went wrong.