/** * Sets the HDFS write only attribute. if the region * is configured to be write only to HDFS, events that have * been evicted from memory cannot be read back from HDFS. * Events are written to HDFS in the order in which they occurred. */ public RegionFactory<K,V> setHDFSWriteOnly(boolean writeOnly) { this.attrsFactory.setHDFSWriteOnly(writeOnly); return this; }
final public void persistenceHDFSDefinition(AttributesFactory afact, boolean[] repPartPersFlags) throws ParseException, StandardException {String hdfsStoreName, prevHDFSStore = null; jj_consume_token(HDFSSTORE); jj_consume_token(LEFT_PAREN); hdfsStoreName = identifier(Limits.MAX_IDENTIFIER_LENGTH, true); jj_consume_token(RIGHT_PAREN); repPartPersFlags[5] = true; if (hdfsStoreName != null) { if (prevHDFSStore != null) { {if (true) throw StandardException.newException(SQLState.LANG_SYNTAX_ERROR, "HDFS Store '"+ prevHDFSStore +"' already set");} } prevHDFSStore = hdfsStoreName; afact.setHDFSStoreName(hdfsStoreName); } switch (jj_nt.kind) { case WRITEONLY:{ jj_consume_token(WRITEONLY); afact.setHDFSWriteOnly(true); break; } default: jj_la1[313] = jj_gen; ; } }
final public void persistenceHDFSDefinition(AttributesFactory afact, boolean[] repPartPersFlags) throws ParseException, StandardException {String hdfsStoreName, prevHDFSStore = null; jj_consume_token(HDFSSTORE); jj_consume_token(LEFT_PAREN); hdfsStoreName = identifier(Limits.MAX_IDENTIFIER_LENGTH, true); jj_consume_token(RIGHT_PAREN); repPartPersFlags[5] = true; if (hdfsStoreName != null) { if (prevHDFSStore != null) { {if (true) throw StandardException.newException(SQLState.LANG_SYNTAX_ERROR, "HDFS Store '"+ prevHDFSStore +"' already set");} } prevHDFSStore = hdfsStoreName; afact.setHDFSStoreName(hdfsStoreName); } switch (jj_nt.kind) { case WRITEONLY:{ jj_consume_token(WRITEONLY); afact.setHDFSWriteOnly(true); break; } default: jj_la1[313] = jj_gen; ; } }
final public void persistenceHDFSDefinition(AttributesFactory afact, boolean[] repPartPersFlags) throws ParseException, StandardException {String hdfsStoreName, prevHDFSStore = null; jj_consume_token(HDFSSTORE); jj_consume_token(LEFT_PAREN); hdfsStoreName = identifier(Limits.MAX_IDENTIFIER_LENGTH, true); jj_consume_token(RIGHT_PAREN); repPartPersFlags[5] = true; if (hdfsStoreName != null) { if (prevHDFSStore != null) { {if (true) throw StandardException.newException(SQLState.LANG_SYNTAX_ERROR, "HDFS Store '"+ prevHDFSStore +"' already set");} } prevHDFSStore = hdfsStoreName; afact.setHDFSStoreName(hdfsStoreName); } switch (jj_nt.kind) { case WRITEONLY:{ jj_consume_token(WRITEONLY); afact.setHDFSWriteOnly(true); break; } default: jj_la1[319] = jj_gen; ; } }
f.setHDFSWriteOnly(rd.getHDFSWriteOnly().booleanValue());
f.setHDFSStoreName(this.getHDFSStoreDescription().getName()); f.setHDFSWriteOnly(this.getHDFSWriteOnly().booleanValue()); f.setIgnoreJTA(this.getIgnoreJTA().booleanValue()); f.setIndexMaintenanceSynchronous(this.getIndexMaintenanceSynchronous().booleanValue());
af.setHDFSWriteOnly(writeonly); af.setEnableOffHeapMemory(true);; Region r = createRootRegion(uniqueName, af.create());
af.setHDFSWriteOnly(writeonly); Region r = createRootRegion(uniqueName, af.create()); ((LocalRegion)r).setIsTest();
af.setHDFSWriteOnly(writeonly); Region r = createRootRegion(uniqueName, af.create()); ((LocalRegion)r).setIsTest();
public Object call() throws Exception { AttributesFactory af = new AttributesFactory(); af.setDataPolicy(DataPolicy.HDFS_PARTITION); PartitionAttributesFactory paf = new PartitionAttributesFactory(); paf.setTotalNumBuckets(totalnumOfBuckets); paf.setRedundantCopies(1); af.setPartitionAttributes(paf.create()); HDFSEventQueueAttributesFactory hqf= new HDFSEventQueueAttributesFactory(); hqf.setBatchSizeMB(batchSize); hqf.setBatchTimeInterval(batchInterval); hqf.setPersistent(false); hqf.setMaximumQueueMemory(1); HDFSStoreFactory hsf = getCache().createHDFSStoreFactory(); hsf.setHDFSEventQueueAttributes(hqf.create()); hsf.setHomeDir(folderPath); hsf.create(uniqueName); af.setEvictionAttributes(EvictionAttributes.createLRUEntryAttributes(maximumEntries, EvictionAction.LOCAL_DESTROY)); af.setHDFSWriteOnly(false); af.setHDFSStoreName(uniqueName); createRootRegion(uniqueName, af.create()); return 0; } };
public Object call() throws Exception { AttributesFactory af = new AttributesFactory(); af.setDataPolicy(DataPolicy.HDFS_PARTITION); PartitionAttributesFactory paf = new PartitionAttributesFactory(); paf.setTotalNumBuckets(totalnumOfBuckets); paf.setRedundantCopies(1); af.setPartitionAttributes(paf.create()); HDFSEventQueueAttributesFactory hqf= new HDFSEventQueueAttributesFactory(); hqf.setBatchSizeMB(batchSize); hqf.setBatchTimeInterval(batchInterval); hqf.setPersistent(true); hqf.setDiskStoreName(uniqueName + vm.getPid()); HDFSStoreFactory hsf = getCache().createHDFSStoreFactory(); hsf.setHomeDir(folderPath); hsf.setHDFSEventQueueAttributes(hqf.create()); DiskStore ds = getCache().createDiskStoreFactory().create(uniqueName + vm.getPid()); af.setEvictionAttributes(EvictionAttributes.createLRUEntryAttributes(maximumEntries, EvictionAction.LOCAL_DESTROY)); af.setHDFSStoreName(uniqueName); af.setHDFSWriteOnly(false); hsf.create(uniqueName); createRootRegion(uniqueName, af.create()); return 0; } };
af.setEvictionAttributes(EvictionAttributes.createLRUEntryAttributes(maximumEntries, EvictionAction.LOCAL_DESTROY)); af.setHDFSWriteOnly(writeonly); Region r1 = createRootRegion(uniqueName + "-r1", af.create());
afact.setDataPolicy(ra.getDataPolicy()); afact.setHDFSStoreName(ra.getHDFSStoreName()); afact.setHDFSWriteOnly(ra.getHDFSWriteOnly());
afact.setDataPolicy(ra.getDataPolicy()); afact.setHDFSStoreName(ra.getHDFSStoreName()); afact.setHDFSWriteOnly(ra.getHDFSWriteOnly());
afact.setDataPolicy(ra.getDataPolicy()); afact.setHDFSStoreName(ra.getHDFSStoreName()); afact.setHDFSWriteOnly(ra.getHDFSWriteOnly());
af.setPartitionAttributes(paf.create()); af.setEvictionAttributes(EvictionAttributes.createLRUHeapAttributes(null, EvictionAction.OVERFLOW_TO_DISK)); af.setHDFSWriteOnly(false); c.setRegionAttributes(pra.toString(), af.create()); break; af.setPartitionAttributes(paf.create()); af.setEvictionAttributes(EvictionAttributes.createLRUHeapAttributes(null, EvictionAction.OVERFLOW_TO_DISK)); af.setHDFSWriteOnly(false); c.setRegionAttributes(pra.toString(), af.create()); break; af.setPartitionAttributes(paf.create()); af.setEvictionAttributes(EvictionAttributes.createLRUHeapAttributes(null, EvictionAction.OVERFLOW_TO_DISK)); af.setHDFSWriteOnly(true); c.setRegionAttributes(pra.toString(), af.create()); break; af.setPartitionAttributes(paf.create()); af.setEvictionAttributes(EvictionAttributes.createLRUHeapAttributes(null, EvictionAction.OVERFLOW_TO_DISK)); af.setHDFSWriteOnly(true); c.setRegionAttributes(pra.toString(), af.create()); break;