From 85eed99dc29d3d7c557db102eea9d0441a9c665c Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Wed, 23 Jul 2014 14:40:02 +0000
Subject: [PATCH] OPENDJ-1074 (CR-4030) Implement combined add/del rate tool Adding an add/del rate tool named addrate. -opendj-core ** EntryGenerator.java: * Changing the subtemplate parsing behavior, add the "generated branches" options ** TemplateFile.java * Adding the "generated branches" options ** addrate.template * New template used to generate entries
---
opendj-ldap-toolkit/src/main/resources/com/forgerock/opendj/ldap/tools/tools.properties | 45 +++++++++++++++++++++++++++++++++++++++------
1 files changed, 39 insertions(+), 6 deletions(-)
diff --git a/opendj-ldap-toolkit/src/main/resources/com/forgerock/opendj/ldap/tools/tools.properties b/opendj-ldap-toolkit/src/main/resources/com/forgerock/opendj/ldap/tools/tools.properties
index 02ecc68..41bcb5a 100755
--- a/opendj-ldap-toolkit/src/main/resources/com/forgerock/opendj/ldap/tools/tools.properties
+++ b/opendj-ldap-toolkit/src/main/resources/com/forgerock/opendj/ldap/tools/tools.properties
@@ -22,7 +22,7 @@
#
#
# Copyright 2010 Sun Microsystems, Inc.
-# Portions copyright 2012 ForgeRock AS.
+# Portions copyright 2012-2014 ForgeRock AS.
#
#
# Utility messages
@@ -429,6 +429,15 @@
user-defined searches.\n\n\
Example:\n\n\ \ searchrate -p 1389 -D "cn=directory manager" -w password \\\n\
\ \ \ \ -F -c 4 -t 4 -b "dc=example,dc=com" -g "rand(0,2000)" "(uid=user.%%d)"
+INFO_ADDRATE_TOOL_DESCRIPTION=This utility can be used to measure \
+ add and optionally delete throughput and response time of a directory server using \
+ user-defined entries.\n\
+ \nExamples:\n \ This example is adding entries and randomly deleting them while \
+ the number of entries added is greater than 10,000: \n \
+ addrate -p 1389 -f -c 10 -d rand -s 10000 addrate.template \n \
+ This example adds entries and starts to delete them in the same \
+ order if their age is greater than a certain time: \n \
+ addrate -p 1389 -f -c 10 -d fifo -a 2 addrate.template
INFO_SEARCHRATE_TOOL_DESCRIPTION_BASEDN=Base DN format string.
INFO_MODRATE_TOOL_DESCRIPTION=This utility can be used to measure \
modify throughput and response time of a directory service using \
@@ -471,6 +480,14 @@
files and report the differences in LDIF format
INFO_LDIFSEARCH_TOOL_DESCRIPTION=This utility can be used to perform search \
operations against entries contained in an LDIF file
+ERR_LDIF_GEN_TOOL_EXCEPTION_DURING_PARSE=An error occurred while \
+ parsing template file: %s
+ERR_LDIF_GEN_TOOL_NO_SUCH_RESOURCE_DIRECTORY=The specified resource \
+ directory %s does not exist
+ERR_TOOL_NOT_ENOUGH_ITERATIONS=%s argument must be greater than or equal to %s \
+ (%s per %s)
+ERR_TOOL_ARG_NEEDED_WHEN_USING_ARG=%s must be used when using %s
+ERR_TOOL_ARG_MUST_BE_USED_WHEN_ARG_CONDITION=%s must be used if %s is %s
#
# MakeLDIF tool
#
@@ -487,18 +504,34 @@
INFO_MAKELDIF_DESCRIPTION_HELP=Show this usage information
INFO_MAKELDIF_DESCRIPTION_RESOURCE_PATH=Path to look for \
MakeLDIF resources (e.g., data files)
-ERR_MAKELDIF_NO_SUCH_RESOURCE_DIRECTORY=The specified resource \
- directory %s could not be found
INFO_MAKELDIF_PROCESSED_N_ENTRIES=Processed %d entries
INFO_MAKELDIF_PROCESSING_COMPLETE=LDIF processing complete. %d entries \
written
-ERR_MAKELDIF_EXCEPTION_DURING_PARSE=An error occurred while \
- parsing template file : %s
ERR_MAKELDIF_UNABLE_TO_CREATE_LDIF=An error occurred while \
attempting to open LDIF file %s for writing: %s
ERR_MAKELDIF_ERROR_WRITING_LDIF=An error occurred while writing data \
to LDIF file %s: %s
ERR_MAKELDIF_EXCEPTION_DURING_PROCESSING=An error occurred while \
processing : %s
-ERR_CONSTANT_ARG_CANNOT_DECODE=Unable to parse a constant argument, \
+ERR_CONSTANT_ARG_CANNOT_DECODE=Unable to parse a constant argument \
expecting name=value but got %s
+#
+# AddRate Tool
+#
+INFO_ADDRATE_DESCRIPTION_RESOURCE_PATH=Path to look for template resources (e.g. data files)
+INFO_ADDRATE_DESCRIPTION_SEED=The seed to use for initializing the random number generator
+INFO_ADDRATE_DESCRIPTION_CONSTANT=A constant that overrides the value set in the template file
+INFO_ADDRATE_DESCRIPTION_DELETEMODE=The algorithm used for selecting entries to be deleted which \
+ must be one of "fifo", "random", or "off".
+INFO_ADDRATE_DESCRIPTION_DELETESIZETHRESHOLD=Specifies the number of entries \
+ to be added before deletion begins
+INFO_ADDRATE_DESCRIPTION_DELETEAGETHRESHOLD=Specifies the age at which added entries \
+ will become candidates for deletion
+INFO_DELETEMODE_PLACEHOLDER={fifo | random | off}
+INFO_DELETESIZETHRESHOLD_PLACEHOLDER={count}
+INFO_DELETEAGETHRESHOLD_PLACEHOLDER={seconds}
+ERR_ADDRATE_DELMODE_OFF_THRESHOLD_ON=A deletion threshold should not be specified when deletion is disabled
+ERR_ADDRATE_THRESHOLD_SIZE_AND_AGE=Size and age based deletion thresholds were both \
+ specified, but only only one at a time is supported
+ERR_ADDRATE_DELMODE_RAND_THRESHOLD_AGE=A age based deletion threshold should not be used \
+ with a random deletion mode
--
Gitblit v1.10.0