/** * 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); }
/** * 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); }
DiskWriteAttributesFactory dwaf = new DiskWriteAttributesFactory(); dwaf.setSynchronous(true); attrs.setDiskWriteAttributes(dwaf.create()); root.createSubregion("sync", attrs); dwaf.setTimeInterval(123L); dwaf.setBytesThreshold(456L); attrs.setDiskWriteAttributes(dwaf.create()); root.createSubregion("async", attrs);
dwaf.setSynchronous(true); dwaf.setMaxOplogSize(1); attrs.setDiskWriteAttributes(dwaf.create()); root.createSubregion("sync", attrs); dwaf.setBytesThreshold(456L); dwaf.setMaxOplogSize(1); attrs.setDiskWriteAttributes(dwaf.create()); root.createSubregion("async", attrs);
dwaf.setSynchronous(true); dwaf.setRollOplogs(true); attrs.setDiskWriteAttributes(dwaf.create()); root.createSubregion("sync", attrs); dwaf.setBytesThreshold(456L); dwaf.setRollOplogs(false); attrs.setDiskWriteAttributes(dwaf.create()); root.createSubregion("async", attrs);
attr.setPersistBackup(regDef.getPersistBackup().booleanValue()); if (regDef.getIsSynchronous() != null) attr.setDiskWriteAttributes(regDef.getDiskWriteAttributes()); if (regDef.getNumDiskDirs() != null) attr.setDiskDirs(regDef.getDiskDirFileArr());
if (parentIsUserSpecified) { if (parentWithHas.hasDiskWriteAttributes()) { setDiskWriteAttributes(parent.getDiskWriteAttributes()); setDiskWriteAttributes(parent.getDiskWriteAttributes());
if (parentIsUserSpecified) { if (parentWithHas.hasDiskWriteAttributes()) { setDiskWriteAttributes(parent.getDiskWriteAttributes()); setDiskWriteAttributes(parent.getDiskWriteAttributes());