org.frameworkset.tran.DataTranPlugin Maven / Gradle / Ivy
Show all versions of bboss-datatran-core Show documentation
package org.frameworkset.tran;
/**
* Copyright 2008 biaoping.yin
*
* Licensed 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.
*/
import com.frameworkset.orm.annotation.BatchContext;
import org.frameworkset.tran.config.DynamicParamContext;
import org.frameworkset.tran.context.Context;
import org.frameworkset.tran.context.ImportContext;
import org.frameworkset.tran.schedule.ScheduleEndCall;
import org.frameworkset.tran.metrics.DataTranPluginMetricsLogAPI;
import org.frameworkset.tran.plugin.InputPlugin;
import org.frameworkset.tran.plugin.OutputPlugin;
import org.frameworkset.tran.schedule.*;
import org.frameworkset.tran.status.*;
import org.frameworkset.util.ResourceEnd;
import org.frameworkset.util.ResourceStart;
import java.util.List;
import java.util.Map;
/**
*
Description:
*
* Copyright (c) 2018
* @Date 2019/10/9 14:34
* @author biaoping.yin
* @version 1.0
*/
public interface DataTranPlugin extends DataTranPluginMetricsLogAPI {
public StatusManager getStatusManager();
// public boolean onlyUseBatchExecute();
/**
* 识别任务是否已经完成
* @param status
* @return
*/
public boolean isComplete(Status status);
public boolean isSingleLastValueType();
public DestroyPolicy getDestroyPolicy();
public boolean hasJobInputParamGroups();
public void initLastValueStatus(Status currentStatus, BaseStatusManager baseStatusManager) throws Exception;
/**
* Number ts = (Number)lastValue.getLastValue();
* Number nts = (Number)taskMetrics.getLastValue().getLastValue();
* if(nts.longValue() > ts.longValue())
* this.lastValue = taskMetrics.getLastValue();
* @param oldValue
* @param newValue
* @return
*/
public LastValueWrapper maxNumberLastValue(LastValueWrapper oldValue, LastValueWrapper newValue);
public boolean needUpdateLastValueWrapper(Integer lastValueType, LastValueWrapper oldValue,LastValueWrapper newValue);
public LastValueWrapper maxLastValue(LastValueWrapper oldValue, Record record);
public List