Search in sources :

Example 1 with FileHandlingCallBack

use of com.aws.iot.edgeconnectorforkvs.diskmanager.callback.FileHandlingCallBack in project aws-iot-greengrass-edge-connector-for-kinesis-video-stream by awslabs.

the class FileHandlingCallBackTest method setUp.

@BeforeEach
public void setUp() {
    diskManagerUtil = new DiskManagerUtil();
    fileHandlingCallBack = new FileHandlingCallBack();
    edgeConnectorForKVSConfiguration = new EdgeConnectorForKVSConfiguration();
    edgeConnectorForKVSConfiguration.setStreamManager(streamManager);
    when(streamManager.pushData(any(), any(), any(), any())).thenReturn(0L);
}
Also used : FileHandlingCallBack(com.aws.iot.edgeconnectorforkvs.diskmanager.callback.FileHandlingCallBack) EdgeConnectorForKVSConfiguration(com.aws.iot.edgeconnectorforkvs.model.EdgeConnectorForKVSConfiguration) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with FileHandlingCallBack

use of com.aws.iot.edgeconnectorforkvs.diskmanager.callback.FileHandlingCallBack in project aws-iot-greengrass-edge-connector-for-kinesis-video-stream by awslabs.

the class EdgeConnectorForKVSService method initDiskManagement.

private void initDiskManagement() {
    DiskManager diskManager = new DiskManager(edgeConnectorForKVSConfigurationList, new DiskManagerUtil(), Executors.newCachedThreadPool(), Executors.newScheduledThreadPool(1), new FileHandlingCallBack());
    diskManager.initDiskManager();
    diskManager.setupDiskManagerThread();
}
Also used : FileHandlingCallBack(com.aws.iot.edgeconnectorforkvs.diskmanager.callback.FileHandlingCallBack) DiskManager(com.aws.iot.edgeconnectorforkvs.diskmanager.DiskManager) DiskManagerUtil(com.aws.iot.edgeconnectorforkvs.diskmanager.DiskManagerUtil)

Aggregations

FileHandlingCallBack (com.aws.iot.edgeconnectorforkvs.diskmanager.callback.FileHandlingCallBack)2 DiskManager (com.aws.iot.edgeconnectorforkvs.diskmanager.DiskManager)1 DiskManagerUtil (com.aws.iot.edgeconnectorforkvs.diskmanager.DiskManagerUtil)1 EdgeConnectorForKVSConfiguration (com.aws.iot.edgeconnectorforkvs.model.EdgeConnectorForKVSConfiguration)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1