/** * This method does the cleanup of any threads, sockets, connection that are held up * by the queue. Note that this cleanup doesn't clean the data held by the queue. */ public void cleanUp() { if (this.removalThread != null) { this.removalThread.shutdown(); } if (conflationExecutor != null) { cleanupConflationThreadPool(); } }
public long getNumEntriesOverflowOnDiskTestOnly() { return ((ParallelGatewaySenderQueue)(processors[0].getQueue())).getNumEntriesOverflowOnDiskTestOnly(); } }
public long estimateMemoryFootprint(SingleObjectSizer sizer) { long size = 0; for(int i=0; i< processors.length; i++) size += ((ParallelGatewaySenderQueue)this.processors[i].getQueue()).estimateMemoryFootprint(sizer); return size; }
public BlockingQueue<GatewaySenderEventImpl> getBucketTmpQueue(int bucketId) { return getPGSProcessor(bucketId).getBucketTmpQueue(bucketId); }
public void clear(PartitionedRegion pr, int bucketId) { getPGSProcessor(bucketId).clear(pr, bucketId); }
public HDFSBucketRegionQueue getBucketRegionQueue(PartitionedRegion region, int bucketId) throws ForceReattemptException { return getPGSProcessor(bucketId).getBucketRegionQueue(region, bucketId); }
public HDFSGatewayEventImpl get(PartitionedRegion region, byte[] regionKey, int bucketId) throws ForceReattemptException { return getPGSProcessor(bucketId).get(region, regionKey, bucketId); }
public void conflateEvent(Conflatable conflatableObject, int bucketId, Long tailKey) { getPGSProcessor(bucketId).conflateEvent(conflatableObject, bucketId, tailKey); }
public void notifyEventProcessorIfRequired(int bucketId) { getPGSProcessor( bucketId).notifyEventProcessorIfRequired(bucketId); }
public long getNumEntriesInVMTestOnly() { return ((ParallelGatewaySenderQueue)(processors[0].getQueue())).getNumEntriesInVMTestOnly(); }
public long getNumEntriesOverflowOnDiskTestOnly() { return ((ParallelGatewaySenderQueue)(processors[0].getQueue())).getNumEntriesOverflowOnDiskTestOnly(); } }
public long estimateMemoryFootprint(SingleObjectSizer sizer) { long size = 0; for(int i=0; i< processors.length; i++) size += ((ParallelGatewaySenderQueue)this.processors[i].getQueue()).estimateMemoryFootprint(sizer); return size; }
public BlockingQueue<GatewaySenderEventImpl> getBucketTmpQueue(int bucketId) { return getPGSProcessor(bucketId).getBucketTmpQueue(bucketId); }
public void clear(PartitionedRegion pr, int bucketId) { getPGSProcessor(bucketId).clear(pr, bucketId); }
public HDFSBucketRegionQueue getBucketRegionQueue(PartitionedRegion region, int bucketId) throws ForceReattemptException { return getPGSProcessor(bucketId).getBucketRegionQueue(region, bucketId); }
public HDFSGatewayEventImpl get(PartitionedRegion region, byte[] regionKey, int bucketId) throws ForceReattemptException { return getPGSProcessor(bucketId).get(region, regionKey, bucketId); }