use of org.apache.geode.cache.DiskWriteAttributes in project geode by apache.
the class DiskWriteAttributesJUnitTest method testGetDefaultNonRollingAsync.
/**
* Test method for 'org.apache.geode.cache.DiskWriteAttributes.getDefaultNonRollingAsync()'
*/
@Test
public void testGetDefaultNonRollingAsync() {
DiskWriteAttributesFactory dwaf = new DiskWriteAttributesFactory();
dwaf.setRollOplogs(false);
DiskWriteAttributes dwa = dwaf.create();
assertTrue(!dwa.isSynchronous());
assertTrue(!dwa.isRollOplogs());
}
use of org.apache.geode.cache.DiskWriteAttributes in project geode by apache.
the class DiskWriteAttributesJUnitTest method testGetDefaultRollingSync.
/**
* Test method for 'org.apache.geode.cache.DiskWriteAttributes.getDefaultRollingSync()'
*/
@Test
public void testGetDefaultRollingSync() {
DiskWriteAttributesFactory dwaf = new DiskWriteAttributesFactory();
dwaf.setSynchronous(true);
DiskWriteAttributes dwa = dwaf.create();
assertTrue(dwa.isSynchronous());
assertTrue(dwa.isRollOplogs());
}
use of org.apache.geode.cache.DiskWriteAttributes in project geode by apache.
the class DiskWriteAttributesJUnitTest method testGetDefaultRollingAsync.
/**
* Test method for 'org.apache.geode.cache.DiskWriteAttributes.getDefaultRollingAsync()'
*/
@Test
public void testGetDefaultRollingAsync() {
DiskWriteAttributesFactory dwaf = new DiskWriteAttributesFactory();
DiskWriteAttributes dwa = dwaf.create();
assertTrue(!dwa.isSynchronous());
assertTrue(dwa.isRollOplogs());
}
use of org.apache.geode.cache.DiskWriteAttributes in project geode by apache.
the class DiskWriteAttributesJUnitTest method testGetDefaultSync.
/**
* Test method for 'org.apache.geode.cache.DiskWriteAttributes.getDefaultSync()'
*/
@Test
public void testGetDefaultSync() {
DiskWriteAttributesFactory dwaf = new DiskWriteAttributesFactory();
dwaf.setSynchronous(true);
DiskWriteAttributes dwa = dwaf.create();
assertTrue(dwa.isSynchronous());
assertTrue(dwa.isRollOplogs());
}
use of org.apache.geode.cache.DiskWriteAttributes in project geode by apache.
the class CacheXmlParser method endDiskWriteAttributes.
/**
* When a <code>disk-write-attributes</code> element is finished, the {@link DiskWriteAttributes}
* is on top of the stack followed by the {@link RegionAttributesCreation} to which the expiration
* attributes are assigned.
*/
private void endDiskWriteAttributes() {
DiskWriteAttributes dwa = (DiskWriteAttributes) stack.pop();
RegionAttributesCreation attrs = peekRegionAttributesContext(DISK_WRITE_ATTRIBUTES);
attrs.setDiskWriteAttributes(dwa);
}
Aggregations