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);
}
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();
}
Aggregations