diff --git a/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/ActionType.java b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/ActionType.java new file mode 100644 index 00000000000..7db8634bc3e --- /dev/null +++ b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/ActionType.java @@ -0,0 +1,24 @@ +/* + * 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.inlong.agent.core.instance; + +public enum ActionType { + ADD, + FINISH, + DELETE +} diff --git a/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceAction.java b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceAction.java new file mode 100644 index 00000000000..424c5f6eaaf --- /dev/null +++ b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceAction.java @@ -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.inlong.agent.core.instance; + +import org.apache.inlong.agent.conf.InstanceProfile; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +public class InstanceAction { + + private ActionType actionType; + private InstanceProfile profile; +} \ No newline at end of file diff --git a/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/ActionType.java b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/ActionType.java new file mode 100644 index 00000000000..4345b353367 --- /dev/null +++ b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/ActionType.java @@ -0,0 +1,24 @@ +/* + * 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.inlong.agent.core.task; + +public enum ActionType { + ADD, + FINISH, + DELETE +} diff --git a/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskAction.java b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskAction.java new file mode 100644 index 00000000000..60855f709a1 --- /dev/null +++ b/inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskAction.java @@ -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.inlong.agent.core.task; + +import org.apache.inlong.agent.conf.TaskProfile; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +public class TaskAction { + + private ActionType actionType; + private TaskProfile profile; +} \ No newline at end of file