Searched refs:capacity (Results 1 - 25 of 89) sorted by relevance

1234

/forgerock/opendj-b2.6/src/server/org/opends/server/loggers/
H A DAsynchronousTextWriter.java59 /** The capacity for the queue. */
60 private final int capacity; field in class:AsynchronousTextWriter
72 * @param capacity the size of the queue before it gets flushed.
77 public AsynchronousTextWriter(String name, int capacity, boolean autoFlush, argument
84 this.queue = new LinkedBlockingQueue<String>(capacity);
85 this.capacity = capacity;
111 ArrayList<String> drainList = new ArrayList<String>(capacity);
117 queue.drainTo(drainList, capacity);
/forgerock/opendj2/src/server/org/opends/server/loggers/
H A DAsynchronousTextWriter.java54 /** The capacity for the queue. */
55 private final int capacity; field in class:AsynchronousTextWriter
67 * @param capacity the size of the queue before it gets flushed.
72 public AsynchronousTextWriter(String name, int capacity, boolean autoFlush, argument
79 this.queue = new LinkedBlockingQueue<String>(capacity);
80 this.capacity = capacity;
108 ArrayList<String> drainList = new ArrayList<String>(capacity);
114 queue.drainTo(drainList, capacity);
/forgerock/opendj2.6.2/src/server/org/opends/server/loggers/
H A DAsynchronousTextWriter.java59 /** The capacity for the queue. */
60 private final int capacity; field in class:AsynchronousTextWriter
72 * @param capacity the size of the queue before it gets flushed.
77 public AsynchronousTextWriter(String name, int capacity, boolean autoFlush, argument
84 this.queue = new LinkedBlockingQueue<String>(capacity);
85 this.capacity = capacity;
111 ArrayList<String> drainList = new ArrayList<String>(capacity);
117 queue.drainTo(drainList, capacity);
/forgerock/opendj2-jel-hg/src/server/org/opends/server/loggers/
H A DAsynchronousTextWriter.java59 /** The capacity for the queue. */
60 private final int capacity; field in class:AsynchronousTextWriter
72 * @param capacity the size of the queue before it gets flushed.
77 public AsynchronousTextWriter(String name, int capacity, boolean autoFlush, argument
84 this.queue = new LinkedBlockingQueue<String>(capacity);
85 this.capacity = capacity;
111 ArrayList<String> drainList = new ArrayList<String>(capacity);
117 queue.drainTo(drainList, capacity);
/forgerock/opendj2-hg/src/server/org/opends/server/loggers/
H A DAsynchronousTextWriter.java54 /** The capacity for the queue. */
55 private final int capacity; field in class:AsynchronousTextWriter
67 * @param capacity the size of the queue before it gets flushed.
72 public AsynchronousTextWriter(String name, int capacity, boolean autoFlush, argument
79 this.queue = new LinkedBlockingQueue<String>(capacity);
80 this.capacity = capacity;
108 ArrayList<String> drainList = new ArrayList<String>(capacity);
114 queue.drainTo(drainList, capacity);
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/loggers/
H A DAsynchronousTextWriter.java54 /** The capacity for the queue. */
55 private final int capacity; field in class:AsynchronousTextWriter
67 * @param capacity the size of the queue before it gets flushed.
72 public AsynchronousTextWriter(String name, int capacity, boolean autoFlush, argument
79 this.queue = new LinkedBlockingQueue<>(capacity);
80 this.capacity = capacity;
108 ArrayList<String> drainList = new ArrayList<>(capacity);
114 queue.drainTo(drainList, capacity);
/forgerock/opendj-b2.6/src/server/org/opends/server/protocols/asn1/
H A DByteSequenceOutputStream.java51 * The threshold capacity beyond which internal cached buffers used
111 * empty, and also has a capacity which is not too big.
115 if (buffer.capacity() > maxInternalBufferSize)
/forgerock/opendj2/src/server/org/opends/server/protocols/asn1/
H A DByteSequenceOutputStream.java50 * The threshold capacity beyond which internal cached buffers used
110 * empty, and also has a capacity which is not too big.
114 if (buffer.capacity() > maxInternalBufferSize)
/forgerock/opendj2.6.2/src/server/org/opends/server/protocols/asn1/
H A DByteSequenceOutputStream.java51 * The threshold capacity beyond which internal cached buffers used
111 * empty, and also has a capacity which is not too big.
115 if (buffer.capacity() > maxInternalBufferSize)
/forgerock/opendj2-jel-hg/src/server/org/opends/server/protocols/asn1/
H A DByteSequenceOutputStream.java51 * The threshold capacity beyond which internal cached buffers used
111 * empty, and also has a capacity which is not too big.
115 if (buffer.capacity() > maxInternalBufferSize)
/forgerock/opendj2-hg/src/server/org/opends/server/protocols/asn1/
H A DByteSequenceOutputStream.java50 * The threshold capacity beyond which internal cached buffers used
110 * empty, and also has a capacity which is not too big.
114 if (buffer.capacity() > maxInternalBufferSize)
/forgerock/opendj-b2.6/src/server/org/opends/server/types/
H A DByteStringBuilder.java336 * Creates a new byte string builder with an initial capacity of 32
349 * capacity.
351 * @param capacity
352 * The initial capacity.
354 * If the {@code capacity} is negative.
356 public ByteStringBuilder(int capacity) argument
359 if (capacity < 0)
364 this.buffer = new byte[capacity];
821 * Returns the current capacity of this byte string builder. The capacity ma
826 public int capacity() method in class:ByteStringBuilder
891 clear(int capacity) argument
[all...]
/forgerock/opendj2/src/server/org/opends/server/types/
H A DByteStringBuilder.java337 * Creates a new byte string builder with an initial capacity of 32
350 * capacity.
352 * @param capacity
353 * The initial capacity.
355 * If the {@code capacity} is negative.
357 public ByteStringBuilder(int capacity) argument
360 if (capacity < 0)
365 this.buffer = new byte[capacity];
849 * Returns the current capacity of this byte string builder. The capacity ma
854 public int capacity() method in class:ByteStringBuilder
919 clear(int capacity) argument
[all...]
/forgerock/opendj2.6.2/src/server/org/opends/server/types/
H A DByteStringBuilder.java336 * Creates a new byte string builder with an initial capacity of 32
349 * capacity.
351 * @param capacity
352 * The initial capacity.
354 * If the {@code capacity} is negative.
356 public ByteStringBuilder(int capacity) argument
359 if (capacity < 0)
364 this.buffer = new byte[capacity];
821 * Returns the current capacity of this byte string builder. The capacity ma
826 public int capacity() method in class:ByteStringBuilder
891 clear(int capacity) argument
[all...]
/forgerock/opendj2-jel-hg/src/server/org/opends/server/types/
H A DByteStringBuilder.java336 * Creates a new byte string builder with an initial capacity of 32
349 * capacity.
351 * @param capacity
352 * The initial capacity.
354 * If the {@code capacity} is negative.
356 public ByteStringBuilder(int capacity) argument
359 if (capacity < 0)
364 this.buffer = new byte[capacity];
821 * Returns the current capacity of this byte string builder. The capacity ma
826 public int capacity() method in class:ByteStringBuilder
891 clear(int capacity) argument
[all...]
/forgerock/opendj2-hg/src/server/org/opends/server/types/
H A DByteStringBuilder.java337 * Creates a new byte string builder with an initial capacity of 32
350 * capacity.
352 * @param capacity
353 * The initial capacity.
355 * If the {@code capacity} is negative.
357 public ByteStringBuilder(int capacity) argument
360 if (capacity < 0)
365 this.buffer = new byte[capacity];
849 * Returns the current capacity of this byte string builder. The capacity ma
854 public int capacity() method in class:ByteStringBuilder
919 clear(int capacity) argument
[all...]
/forgerock/openam-v13/openam-shared/src/main/java/com/iplanet/am/util/
H A DCache.java75 * performance: <i>capacity</i> and <i>load factor</i>. The
76 * <i>capacity</i> is the number of <i>buckets</i> in the hash table, and the
77 * <i>capacity</i> is simply the capacity at the time the hash table
81 * table is allowed to get before its capacity is automatically increased.
83 * factor and the current capacity, the capacity is increased by calling the
91 * The capacity controls a tradeoff between wasted space and the
94 * capacity is greater than the maximum number of entries the
96 * setting the capacity to
185 Cache(int capacity, float loadFactor) argument
212 Cache(int capacity) argument
[all...]
/forgerock/openam/openam-shared/src/main/java/com/iplanet/am/util/
H A DCache.java75 * performance: <i>capacity</i> and <i>load factor</i>. The
76 * <i>capacity</i> is the number of <i>buckets</i> in the hash table, and the
77 * <i>capacity</i> is simply the capacity at the time the hash table
81 * table is allowed to get before its capacity is automatically increased.
83 * factor and the current capacity, the capacity is increased by calling the
91 * The capacity controls a tradeoff between wasted space and the
94 * capacity is greater than the maximum number of entries the
96 * setting the capacity to
185 Cache(int capacity, float loadFactor) argument
212 Cache(int capacity) argument
[all...]
/forgerock/opendj2/src/server/org/opends/server/replication/protocol/
H A DByteArrayBuilder.java64 * @param capacity
65 * the capacity of the underlying ByteStringBuilder
67 public ByteArrayBuilder(int capacity) argument
69 builder = new ByteStringBuilder(capacity);
/forgerock/opendj2-hg/src/server/org/opends/server/replication/protocol/
H A DByteArrayBuilder.java64 * @param capacity
65 * the capacity of the underlying ByteStringBuilder
67 public ByteArrayBuilder(int capacity) argument
69 builder = new ByteStringBuilder(capacity);
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/replication/protocol/
H A DByteArrayBuilder.java64 * @param capacity
65 * the capacity of the underlying ByteStringBuilder
67 public ByteArrayBuilder(int capacity) argument
69 builder = new ByteStringBuilder(capacity);
/forgerock/web-agents-v4/tests/
H A Dtest_policy_cache.c359 int capacity = test_size; local
366 printf("test_cache_with_seed: capacity is %d\n", i);
367 capacity = i;
376 for(i = 0; i < capacity; i++) {
389 for(i = 0; i < capacity; i++) {
405 return capacity;
476 int capacity; local
496 capacity = test_cache(test_size, &request, result);
497 assert_int_equal(am_purge_caches(0, time(NULL) + cache_valid_secs + 1), capacity);
506 const int test_size = 4096 * 10000; // must be beyond the capacity
[all...]
/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/types/
H A DByteStringBuilderTest.java163 Assert.assertEquals(bs.capacity(), 123);
190 Assert.assertTrue(bsb.capacity() > 8);
192 Assert.assertEquals(bsb.capacity(), 8);
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/types/
H A DByteStringBuilderTest.java162 Assert.assertEquals(bs.capacity(), 123);
189 Assert.assertTrue(bsb.capacity() > 8);
191 Assert.assertEquals(bsb.capacity(), 8);
/forgerock/opendj2.6.2/tests/unit-tests-testng/src/server/org/opends/server/types/
H A DByteStringBuilderTest.java163 Assert.assertEquals(bs.capacity(), 123);
190 Assert.assertTrue(bsb.capacity() > 8);
192 Assert.assertEquals(bsb.capacity(), 8);

Completed in 145 milliseconds

1234