Search in sources :

Example 1 with IndexIncrStatus

use of com.qlangtech.tis.coredefine.module.action.IndexIncrStatus in project tis by qlangtech.

the class TestGenerateDAOAndIncrScript method testCompileAndPackageStreamCode.

public void testCompileAndPackageStreamCode() throws Exception {
    IControlMsgHandler msgHandler = new DefaultMessageHandler();
    IndexStreamCodeGenerator indexStreamCodeGenerator = getIndexStreamCodeGenerator();
    GenerateDAOAndIncrScript generateDAOAndIncrScript = new GenerateDAOAndIncrScript(msgHandler, indexStreamCodeGenerator);
    DefaultContext context = new DefaultContext();
    IndexIncrStatus incrStatus = new IndexIncrStatus();
    Map<Integer, Long> /**
     * timestamp ver
     */
    dependencyDbs = Maps.newHashMap();
    // order
    dependencyDbs.put(58, 20200227124059l);
    // member
    dependencyDbs.put(61, 20200227124200l);
    // cardcenter
    dependencyDbs.put(62, 20200227124220l);
    // shop
    dependencyDbs.put(63, 20200227124231l);
    generateDAOAndIncrScript.generate(context, incrStatus, true, dependencyDbs);
}
Also used : IndexIncrStatus(com.qlangtech.tis.coredefine.module.action.IndexIncrStatus) IControlMsgHandler(com.qlangtech.tis.runtime.module.misc.IControlMsgHandler) DefaultContext(com.alibaba.citrus.turbine.impl.DefaultContext)

Aggregations

DefaultContext (com.alibaba.citrus.turbine.impl.DefaultContext)1 IndexIncrStatus (com.qlangtech.tis.coredefine.module.action.IndexIncrStatus)1 IControlMsgHandler (com.qlangtech.tis.runtime.module.misc.IControlMsgHandler)1