Search in sources :

Example 1 with NoOpHotRestartService

use of com.hazelcast.internal.hotrestart.NoOpHotRestartService in project hazelcast by hazelcast.

the class NoopHotRestartServicesTest method testNoOpHotRestartService.

@Test
public void testNoOpHotRestartService() {
    final NoOpHotRestartService service = new NoOpHotRestartService();
    service.backup();
    service.backup(0);
    service.getBackupTaskStatus();
    service.interruptBackupTask();
    service.interruptLocalBackupTask();
    assertFalse(service.isHotBackupEnabled());
    assertEquals(new BackupTaskStatus(BackupTaskState.NO_TASK, 0, 0), service.getBackupTaskStatus());
    assertNull(service.getBackupDirectory());
}
Also used : BackupTaskStatus(com.hazelcast.persistence.BackupTaskStatus) NoOpHotRestartService(com.hazelcast.internal.hotrestart.NoOpHotRestartService) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

NoOpHotRestartService (com.hazelcast.internal.hotrestart.NoOpHotRestartService)1 BackupTaskStatus (com.hazelcast.persistence.BackupTaskStatus)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Test (org.junit.Test)1