public void setDiskStoreName(String diskStoreName) { if (hasOverflowDirectory()) { throw new IllegalStateException(LocalizedStrings.DiskStore_Deprecated_API_0_Cannot_Mix_With_DiskStore_1 .toLocalizedString(new Object[] {"setDiskStoreName", this.getDiskStoreName()})); } this.diskStoreName = diskStoreName; } public boolean hasOverflowDirectory()
/** * @deprecated as of prPersistSprint2 */ public void setOverflowDirectory(String overflowDirectory){ if (this.getDiskStoreName() != null) { throw new IllegalStateException(LocalizedStrings.DiskStore_Deprecated_API_0_Cannot_Mix_With_DiskStore_1 .toLocalizedString(new Object[] {"setOverflowDirectory", this.getDiskStoreName()})); } this.overflowDirectory = overflowDirectory; setHasOverflowDirectory(true); }
/** * When a <code>client-subscription</code> element is first encountered, * create a new {@link ClientSubscriptionConfig } to store the * <code>eviction-policy</code>,<p> * <code>capacity</code> and * <code>overflow-directory</code>, then pass these values to Bridge Server * * @since 5.7 */ private void startClientHaQueue(Attributes atts) { ClientHaQueueCreation clientHaQueue = new ClientHaQueueCreation(); String haEvictionPolicy = atts.getValue(CLIENT_SUBSCRIPTION_EVICTION_POLICY); if (haEvictionPolicy != null) { clientHaQueue.setEvictionPolicy(haEvictionPolicy); } String haCapacity = atts.getValue(CLIENT_SUBSCRIPTION_CAPACITY); if (haCapacity != null) { clientHaQueue.setCapacity(Integer.parseInt(haCapacity)); } String diskStoreName = atts.getValue(DISK_STORE_NAME); if (diskStoreName != null) { clientHaQueue.setDiskStoreName(diskStoreName); } else { String haOverflowDirectory = atts.getValue(OVERFLOW_DIRECTORY); if (haOverflowDirectory != null) { clientHaQueue.setOverflowDirectory(haOverflowDirectory); } } this.stack.push(clientHaQueue); }
String diskStoreName = haCreation.getDiskStoreName(); if (diskStoreName!=null) { csc.setDiskStoreName(diskStoreName); } else { csc.setOverflowDirectory(haCreation.getOverflowDirectory()==null?ClientSubscriptionConfig.DEFAULT_OVERFLOW_DIRECTORY:haCreation.getOverflowDirectory()); csc.setCapacity(haCreation.getCapacity()); csc.setEvictionPolicy(haCreation.getEvictionPolicy());
/** * @deprecated as of prPersistSprint2 */ public String getOverflowDirectory(){ if (this.getDiskStoreName() != null) { throw new IllegalStateException(LocalizedStrings.DiskStore_Deprecated_API_0_Cannot_Mix_With_DiskStore_1 .toLocalizedString(new Object[] {"getOverflowDirectory", this.getDiskStoreName()})); } return this.overflowDirectory; }
/** * When a <code>client-subscription</code> element is first encountered, * create a new {@link ClientSubscriptionConfig } to store the * <code>eviction-policy</code>,<p> * <code>capacity</code> and * <code>overflow-directory</code>, then pass these values to Bridge Server * * @since 5.7 */ private void startClientHaQueue(Attributes atts) { ClientHaQueueCreation clientHaQueue = new ClientHaQueueCreation(); String haEvictionPolicy = atts.getValue(CLIENT_SUBSCRIPTION_EVICTION_POLICY); if (haEvictionPolicy != null) { clientHaQueue.setEvictionPolicy(haEvictionPolicy); } String haCapacity = atts.getValue(CLIENT_SUBSCRIPTION_CAPACITY); if (haCapacity != null) { clientHaQueue.setCapacity(Integer.parseInt(haCapacity)); } String diskStoreName = atts.getValue(DISK_STORE_NAME); if (diskStoreName != null) { clientHaQueue.setDiskStoreName(diskStoreName); } else { String haOverflowDirectory = atts.getValue(OVERFLOW_DIRECTORY); if (haOverflowDirectory != null) { clientHaQueue.setOverflowDirectory(haOverflowDirectory); } } this.stack.push(clientHaQueue); }
String diskStoreName = haCreation.getDiskStoreName(); if (diskStoreName!=null) { csc.setDiskStoreName(diskStoreName); } else { csc.setOverflowDirectory(haCreation.getOverflowDirectory()==null?ClientSubscriptionConfig.DEFAULT_OVERFLOW_DIRECTORY:haCreation.getOverflowDirectory()); csc.setCapacity(haCreation.getCapacity()); csc.setEvictionPolicy(haCreation.getEvictionPolicy());
/** * @deprecated as of prPersistSprint2 */ public String getOverflowDirectory(){ if (this.getDiskStoreName() != null) { throw new IllegalStateException(LocalizedStrings.DiskStore_Deprecated_API_0_Cannot_Mix_With_DiskStore_1 .toLocalizedString(new Object[] {"getOverflowDirectory", this.getDiskStoreName()})); } return this.overflowDirectory; }
public void setDiskStoreName(String diskStoreName) { if (hasOverflowDirectory()) { throw new IllegalStateException(LocalizedStrings.DiskStore_Deprecated_API_0_Cannot_Mix_With_DiskStore_1 .toLocalizedString(new Object[] {"setDiskStoreName", this.getDiskStoreName()})); } this.diskStoreName = diskStoreName; } public boolean hasOverflowDirectory()
/** * @deprecated as of prPersistSprint2 */ public void setOverflowDirectory(String overflowDirectory){ if (this.getDiskStoreName() != null) { throw new IllegalStateException(LocalizedStrings.DiskStore_Deprecated_API_0_Cannot_Mix_With_DiskStore_1 .toLocalizedString(new Object[] {"setOverflowDirectory", this.getDiskStoreName()})); } this.overflowDirectory = overflowDirectory; setHasOverflowDirectory(true); }