/** * @throws Exception If failed. */ @Test public void testReplicated() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(REPLICATED, 1, ATOMIC, false)); }
/** {@inheritDoc} */ @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception { IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName); if (igniteInstanceName.endsWith(CLIENT)) { cfg.setClientMode(true); FailedTcpCommunicationSpi spi = new FailedTcpCommunicationSpi(true, false); cfg.setCommunicationSpi(spi); } else if (igniteInstanceName.endsWith(SERVER2)) cfg.setCommunicationSpi(new FailedTcpCommunicationSpi(false, true)); else cfg.setCommunicationSpi(new FailedTcpCommunicationSpi(false, false)); return cfg; } }
/** * @throws Exception If failed. */ @Test public void testPartition() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 1, ATOMIC, false)); }
/** * @throws Exception If failed. */ @Test public void testPartitionMvccTxNoBackupWithFilter() throws Exception { filterOn.set(true); checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 0, TRANSACTIONAL_SNAPSHOT, true)); }
/** * @throws Exception If failed. */ @Test public void testPartitionTxNoBackup() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 0, TRANSACTIONAL, false)); }
/** * @throws Exception If failed. */ @Test public void testReplicatedTx() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(REPLICATED, 1, TRANSACTIONAL, false)); }
/** * @throws Exception If failed. */ @Test public void testPartitionMvccTx() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 1, TRANSACTIONAL_SNAPSHOT, false)); }
/** * @throws Exception If failed. */ @Test public void testPartitionTxWithFilter() throws Exception { filterOn.set(true); checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 1, TRANSACTIONAL, true)); }
/** * @throws Exception If failed. */ @Test public void testPartitionMvccTxWithFilter() throws Exception { filterOn.set(true); checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 1, TRANSACTIONAL_SNAPSHOT, true)); }
/** * @throws Exception If failed. */ @Test public void testPartitionNoBackups() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 0, ATOMIC, false)); }
/** * @throws Exception If failed. */ @Test public void testPartitionTx() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 1, TRANSACTIONAL, false)); }
/** * @throws Exception If failed. */ @Test public void testPartitionMvccTxNoBackup() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 0, TRANSACTIONAL_SNAPSHOT, false)); }
/** * @throws Exception If failed. */ @Test public void testReplicatedMvccTx() throws Exception { checkBackupAcknowledgeMessage(cacheConfiguration(REPLICATED, 1, TRANSACTIONAL_SNAPSHOT, false)); }
/** * @throws Exception If failed. */ @Test public void testPartitionWithFilter() throws Exception { filterOn.set(true); checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 1, ATOMIC, true)); }
/** * @throws Exception If failed. */ @Test public void testPartitionTxNoBackupWithFilter() throws Exception { filterOn.set(true); checkBackupAcknowledgeMessage(cacheConfiguration(PARTITIONED, 0, TRANSACTIONAL, true)); }
/** * @throws Exception If failed. */ @Test public void testReplicatedTxWithFilter() throws Exception { filterOn.set(true); checkBackupAcknowledgeMessage(cacheConfiguration(REPLICATED, 1, TRANSACTIONAL, true)); }
/** * @throws Exception If failed. */ @Test public void testReplicatedMvccTxWithFilter() throws Exception { filterOn.set(true); checkBackupAcknowledgeMessage(cacheConfiguration(REPLICATED, 1, TRANSACTIONAL_SNAPSHOT, true)); }