Skip to content

Commit

Permalink
[INLONG-2193] optimize inlong manager structure (#2195)
Browse files Browse the repository at this point in the history
  • Loading branch information
kipshi authored Jan 20, 2022
1 parent 013b31e commit 75a21cd
Show file tree
Hide file tree
Showing 168 changed files with 1,873 additions and 644 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.dao;
package org.apache.inlong.manager.common.dao;

import org.apache.inlong.manager.workflow.model.instance.EventLog;
import org.apache.inlong.manager.workflow.model.view.EventLogQuery;
import org.apache.inlong.manager.common.model.instance.EventLog;
import org.apache.inlong.manager.common.model.view.EventLogQuery;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.dao;
package org.apache.inlong.manager.common.dao;

import org.apache.inlong.manager.workflow.model.instance.ProcessInstance;
import org.apache.inlong.manager.workflow.model.view.CountByKey;
import org.apache.inlong.manager.workflow.model.view.ProcessQuery;
import org.apache.inlong.manager.workflow.model.view.ProcessSummaryQuery;
import org.apache.inlong.manager.common.model.instance.ProcessInstance;
import org.apache.inlong.manager.common.model.view.CountByKey;
import org.apache.inlong.manager.common.model.view.ProcessQuery;
import org.apache.inlong.manager.common.model.view.ProcessSummaryQuery;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.dao;
package org.apache.inlong.manager.common.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.inlong.manager.workflow.model.TaskState;
import org.apache.inlong.manager.workflow.model.instance.TaskInstance;
import org.apache.inlong.manager.workflow.model.view.CountByKey;
import org.apache.inlong.manager.workflow.model.view.TaskQuery;
import org.apache.inlong.manager.workflow.model.view.TaskSummaryQuery;
import org.apache.inlong.manager.common.model.TaskState;
import org.apache.inlong.manager.common.model.instance.TaskInstance;
import org.apache.inlong.manager.common.model.view.CountByKey;
import org.apache.inlong.manager.common.model.view.TaskQuery;
import org.apache.inlong.manager.common.model.view.TaskSummaryQuery;

/**
* Task instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event;
package org.apache.inlong.manager.common.event;

import org.apache.inlong.manager.workflow.exception.WorkflowListenerException;
import org.apache.inlong.manager.workflow.model.WorkflowContext;
import org.apache.inlong.manager.common.exceptions.WorkflowListenerException;
import org.apache.inlong.manager.common.model.WorkflowContext;

/**
* Process event listener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event;
package org.apache.inlong.manager.common.event;

import org.apache.inlong.manager.workflow.dao.EventLogStorage;
import org.apache.inlong.manager.common.dao.EventLogStorage;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event;
package org.apache.inlong.manager.common.event;

import org.apache.inlong.manager.workflow.model.WorkflowContext;
import org.apache.inlong.manager.common.model.WorkflowContext;

/**
* Process event listener notifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event;
package org.apache.inlong.manager.common.event;

/**
* Event listener register
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event;
package org.apache.inlong.manager.common.event;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event;
package org.apache.inlong.manager.common.event;

import java.util.Date;
import java.util.Optional;
import lombok.extern.slf4j.Slf4j;
import org.apache.inlong.manager.common.util.JsonUtils;
import org.apache.inlong.manager.common.util.NetworkUtils;
import org.apache.inlong.manager.workflow.dao.EventLogStorage;
import org.apache.inlong.manager.workflow.exception.WorkflowListenerException;
import org.apache.inlong.manager.workflow.model.EventState;
import org.apache.inlong.manager.workflow.model.WorkflowContext;
import org.apache.inlong.manager.workflow.model.definition.Element;
import org.apache.inlong.manager.workflow.model.instance.EventLog;
import org.apache.inlong.manager.workflow.model.instance.ProcessInstance;
import org.apache.inlong.manager.common.dao.EventLogStorage;
import org.apache.inlong.manager.common.exceptions.WorkflowListenerException;
import org.apache.inlong.manager.common.model.EventState;
import org.apache.inlong.manager.common.model.WorkflowContext;
import org.apache.inlong.manager.common.model.definition.Element;
import org.apache.inlong.manager.common.model.instance.EventLog;
import org.apache.inlong.manager.common.model.instance.ProcessInstance;

/**
* Event listener with logging function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event;
package org.apache.inlong.manager.common.event;

/**
* Workflow event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.process;
package org.apache.inlong.manager.common.event.process;

import org.apache.inlong.manager.workflow.core.event.LogableEventListener;
import org.apache.inlong.manager.workflow.dao.EventLogStorage;
import org.apache.inlong.manager.common.event.LogableEventListener;
import org.apache.inlong.manager.common.dao.EventLogStorage;

/**
* Listener of logable process event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.process;
package org.apache.inlong.manager.common.event.process;

import org.apache.inlong.manager.workflow.core.event.WorkflowEvent;
import org.apache.inlong.manager.common.event.WorkflowEvent;

/**
* Process event type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.process;
package org.apache.inlong.manager.common.event.process;

import com.google.common.collect.Lists;

import org.apache.inlong.manager.workflow.core.event.EventListener;
import org.apache.inlong.manager.common.event.EventListener;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.process;
package org.apache.inlong.manager.common.event.process;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import org.apache.inlong.manager.workflow.core.WorkflowDataAccessor;
import org.apache.inlong.manager.workflow.core.event.EventListenerManager;
import org.apache.inlong.manager.workflow.dao.EventLogStorage;
import org.apache.inlong.manager.workflow.exception.WorkflowListenerException;
import org.apache.inlong.manager.common.workflow.WorkflowDataAccessor;
import org.apache.inlong.manager.common.event.EventListenerManager;
import org.apache.inlong.manager.common.dao.EventLogStorage;
import org.apache.inlong.manager.common.exceptions.WorkflowListenerException;

import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.process;
package org.apache.inlong.manager.common.event.process;

import org.apache.inlong.manager.workflow.core.QueryService;
import org.apache.inlong.manager.workflow.core.event.EventListenerManager;
import org.apache.inlong.manager.workflow.core.event.EventListenerRegister;
import org.apache.inlong.manager.workflow.model.WorkflowConfig;
import org.apache.inlong.manager.common.workflow.QueryService;
import org.apache.inlong.manager.common.event.EventListenerManager;
import org.apache.inlong.manager.common.event.EventListenerRegister;
import org.apache.inlong.manager.common.model.WorkflowConfig;

/**
* Register of process event listener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.process;
package org.apache.inlong.manager.common.event.process;

import com.google.common.util.concurrent.ThreadFactoryBuilder;

import org.apache.inlong.manager.workflow.core.event.EventListenerManager;
import org.apache.inlong.manager.workflow.core.event.EventListenerNotifier;
import org.apache.inlong.manager.workflow.core.event.LogableEventListener;
import org.apache.inlong.manager.workflow.model.WorkflowContext;
import org.apache.inlong.manager.workflow.model.definition.Process;
import org.apache.inlong.manager.common.event.EventListenerManager;
import org.apache.inlong.manager.common.event.EventListenerNotifier;
import org.apache.inlong.manager.common.event.LogableEventListener;
import org.apache.inlong.manager.common.model.WorkflowContext;
import org.apache.inlong.manager.common.model.definition.Process;

import java.util.Optional;
import java.util.concurrent.ExecutorService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.task;
package org.apache.inlong.manager.common.event.task;

import org.apache.inlong.manager.workflow.core.event.LogableEventListener;
import org.apache.inlong.manager.workflow.dao.EventLogStorage;
import org.apache.inlong.manager.workflow.model.WorkflowContext;
import org.apache.inlong.manager.workflow.model.instance.EventLog;
import org.apache.inlong.manager.workflow.model.instance.TaskInstance;
import org.apache.inlong.manager.common.event.LogableEventListener;
import org.apache.inlong.manager.common.dao.EventLogStorage;
import org.apache.inlong.manager.common.model.WorkflowContext;
import org.apache.inlong.manager.common.model.instance.EventLog;
import org.apache.inlong.manager.common.model.instance.TaskInstance;

/**
* Listener of logable task event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.task;
package org.apache.inlong.manager.common.event.task;

import org.apache.inlong.manager.workflow.core.event.WorkflowEvent;
import org.apache.inlong.manager.common.event.WorkflowEvent;

/**
* Task event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.task;
package org.apache.inlong.manager.common.event.task;

import com.google.common.collect.Lists;

import org.apache.inlong.manager.workflow.core.event.EventListener;
import org.apache.inlong.manager.common.event.EventListener;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.task;
package org.apache.inlong.manager.common.event.task;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

import org.apache.inlong.manager.workflow.core.WorkflowDataAccessor;
import org.apache.inlong.manager.workflow.core.event.EventListenerManager;
import org.apache.inlong.manager.workflow.dao.EventLogStorage;
import org.apache.inlong.manager.workflow.exception.WorkflowListenerException;
import org.apache.inlong.manager.common.workflow.WorkflowDataAccessor;
import org.apache.inlong.manager.common.event.EventListenerManager;
import org.apache.inlong.manager.common.dao.EventLogStorage;
import org.apache.inlong.manager.common.exceptions.WorkflowListenerException;

import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.task;
package org.apache.inlong.manager.common.event.task;

import org.apache.inlong.manager.workflow.core.QueryService;
import org.apache.inlong.manager.workflow.core.event.EventListenerManager;
import org.apache.inlong.manager.workflow.core.event.EventListenerRegister;
import org.apache.inlong.manager.workflow.model.WorkflowConfig;
import org.apache.inlong.manager.common.workflow.QueryService;
import org.apache.inlong.manager.common.event.EventListenerManager;
import org.apache.inlong.manager.common.event.EventListenerRegister;
import org.apache.inlong.manager.common.model.WorkflowConfig;

/**
* Register task event listener
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.core.event.task;
package org.apache.inlong.manager.common.event.task;

import com.google.common.util.concurrent.ThreadFactoryBuilder;

import org.apache.inlong.manager.workflow.core.event.EventListenerManager;
import org.apache.inlong.manager.workflow.core.event.EventListenerNotifier;
import org.apache.inlong.manager.workflow.core.event.LogableEventListener;
import org.apache.inlong.manager.workflow.model.WorkflowContext;
import org.apache.inlong.manager.workflow.model.definition.Task;
import org.apache.inlong.manager.common.event.EventListenerManager;
import org.apache.inlong.manager.common.event.EventListenerNotifier;
import org.apache.inlong.manager.common.event.LogableEventListener;
import org.apache.inlong.manager.common.model.WorkflowContext;
import org.apache.inlong.manager.common.model.definition.Task;

import java.util.Optional;
import java.util.concurrent.ExecutorService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.exception;
package org.apache.inlong.manager.common.exceptions;

/**
* Process form parsing exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.exception;
package org.apache.inlong.manager.common.exceptions;

/**
* Form validation exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.exception;
package org.apache.inlong.manager.common.exceptions;

/**
* Workflow exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.inlong.manager.workflow.exception;
package org.apache.inlong.manager.common.exceptions;

/**
* Workflow event listener exception
Expand Down
Loading

0 comments on commit 75a21cd

Please sign in to comment.