Skip to content

Commit

Permalink
fix license and checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
sodaRyCN committed Jul 30, 2024
1 parent 3759561 commit 98799be
Show file tree
Hide file tree
Showing 21 changed files with 226 additions and 167 deletions.
22 changes: 16 additions & 6 deletions eventmesh-admin-server/conf/eventmesh.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 8.0.36 - MySQL Community Server - GPL
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 11.3.0.6295
-- --------------------------------------------------------
-- 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.

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* TableName event_mesh_data_source
*/
@TableName(value ="event_mesh_data_source")
@TableName(value = "event_mesh_data_source")
@Data
public class EventMeshDataSource implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* TableName event_mesh_job_info
*/
@TableName(value ="event_mesh_job_info")
@TableName(value = "event_mesh_job_info")
@Data
public class EventMeshJobInfo implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* TableName event_mesh_mysql_position
*/
@TableName(value ="event_mesh_mysql_position")
@TableName(value = "event_mesh_mysql_position")
@Data
public class EventMeshMysqlPosition implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@

package org.apache.eventmesh.admin.server.web.db.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* TableName event_mesh_position_reporter_history
*/
@TableName(value ="event_mesh_position_reporter_history")
@TableName(value = "event_mesh_position_reporter_history")
@Data
public class EventMeshPositionReporterHistory implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@

package org.apache.eventmesh.admin.server.web.db.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* TableName event_mesh_runtime_heartbeat
*/
@TableName(value ="event_mesh_runtime_heartbeat")
@TableName(value = "event_mesh_runtime_heartbeat")
@Data
public class EventMeshRuntimeHeartbeat implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@

package org.apache.eventmesh.admin.server.web.db.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
* TableName event_mesh_runtime_history
*/
@TableName(value ="event_mesh_runtime_history")
@TableName(value = "event_mesh_runtime_history")
@Data
public class EventMeshRuntimeHistory implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* TableName event_mesh_task_info
*/
@TableName(value ="event_mesh_task_info")
@TableName(value = "event_mesh_task_info")
@Data
public class EventMeshTaskInfo implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* TableName event_mesh_verify
*/
@TableName(value ="event_mesh_verify")
@TableName(value = "event_mesh_verify")
@Data
public class EventMeshVerify implements Serializable {
@TableId(type = IdType.AUTO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* etx operator for table event_mesh_job_info
*/
@Mapper
public interface EventMeshJobInfoExtMapper extends BaseMapper<EventMeshJobInfo> {
@Insert("insert into event_mesh_job_info(`taskID`,`state`,`jobType`) values"
+ "<foreach collection= 'jobs' item='job' separator=','>(#{job.taskID},#{job.state},#{job.jobType})</foreach>")
@Options(useGeneratedKeys = true, keyProperty = "jobID")
int saveBatch(@Param("jobs")List<EventMeshJobInfo> jobInfoList);
int saveBatch(@Param("jobs") List<EventMeshJobInfo> jobInfoList);
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/*
* 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.
*/
* 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.admin.server.web.db.mapper;

Expand All @@ -24,9 +24,9 @@
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* event_mesh_task_info
* Entity org.apache.eventmesh.admin.server.web.db.entity.EventMeshTaskInfo
*/
* event_mesh_task_info
* Entity org.apache.eventmesh.admin.server.web.db.entity.EventMeshTaskInfo
*/
@Mapper
public interface EventMeshTaskInfoMapper extends BaseMapper<EventMeshTaskInfo> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/*
* 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.
*/
* 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.admin.server.web.db.mapper;

Expand All @@ -24,9 +24,9 @@
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* event_mesh_verify
* Entity org.apache.eventmesh.admin.server.web.db.entity.EventMeshVerify
*/
* event_mesh_verify
* Entity org.apache.eventmesh.admin.server.web.db.entity.EventMeshVerify
*/
@Mapper
public interface EventMeshVerifyMapper extends BaseMapper<EventMeshVerify> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
/*
* 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.admin.server.web.db.service;

import org.apache.eventmesh.admin.server.web.db.entity.EventMeshJobInfo;

import java.util.List;

/**
* ext operator for table event_mesh_job
*/
public interface EventMeshJobInfoExtService {
int batchSave(List<EventMeshJobInfo> jobs);
}
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
/*
* 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.
*/
* 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.admin.server.web.db.service;

import org.apache.eventmesh.admin.server.web.db.entity.EventMeshJobInfo;

import com.baomidou.mybatisplus.extension.service.IService;

/**
* event_mesh_job_info
*/
* event_mesh_job_info
*/
public interface EventMeshJobInfoService extends IService<EventMeshJobInfo> {

}
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
/*
* 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.
*/
* 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.admin.server.web.db.service;

import org.apache.eventmesh.admin.server.web.db.entity.EventMeshTaskInfo;

import com.baomidou.mybatisplus.extension.service.IService;

/**
* event_mesh_task_info
*/
* event_mesh_task_info
*/
public interface EventMeshTaskInfoService extends IService<EventMeshTaskInfo> {

}
Loading

0 comments on commit 98799be

Please sign in to comment.