Search in sources :

Example 1 with LogFile

use of org.apache.hyracks.control.common.logs.LogFile in project asterixdb by apache.

the class JobManagerTest method mockClusterControllerService.

private ClusterControllerService mockClusterControllerService() {
    ClusterControllerService ccs = mock(ClusterControllerService.class);
    CCServiceContext ccServiceCtx = mock(CCServiceContext.class);
    LogFile logFile = mock(LogFile.class);
    INodeManager nodeManager = mockNodeManager();
    when(ccs.getContext()).thenReturn(ccServiceCtx);
    when(ccs.getJobLogFile()).thenReturn(logFile);
    when(ccs.getNodeManager()).thenReturn(nodeManager);
    when(ccs.getCCConfig()).thenReturn(ccConfig);
    return ccs;
}
Also used : LogFile(org.apache.hyracks.control.common.logs.LogFile) INodeManager(org.apache.hyracks.control.cc.cluster.INodeManager) CCServiceContext(org.apache.hyracks.control.cc.application.CCServiceContext) ClusterControllerService(org.apache.hyracks.control.cc.ClusterControllerService)

Aggregations

ClusterControllerService (org.apache.hyracks.control.cc.ClusterControllerService)1 CCServiceContext (org.apache.hyracks.control.cc.application.CCServiceContext)1 INodeManager (org.apache.hyracks.control.cc.cluster.INodeManager)1 LogFile (org.apache.hyracks.control.common.logs.LogFile)1