public class Cumulus
extends java.lang.Object
CumulusStart()
method to initialize the Cumulus Java
Classes library. Call the CumulusStop()
method when you are finished using the Cumulus Java Classes. To start a new session
call the newSession()
method.CumulusSession
Modifier and Type | Field and Description |
---|---|
static int |
FindAfter
Token ID for the "after" find token.
|
static int |
FindAnd
Token ID for the "and" find token.
|
static int |
FindBoolFalse
Token ID for the "false" find token.
|
static int |
FindBoolTrue
Token ID for the "true" find token.
|
static int |
FindCategoriesField
Token ID for the "Categories" field name find token.
|
static int |
FindContains
Token ID for the "contains" find token.
|
static int |
FindDoesntContain
Token ID for the "doesn't cont." find token.
|
static int |
FindFrom
Token ID for the "from" find token.
|
static int |
FindHasNoValue
Token ID for the "has no value to" find token.
|
static int |
FindHasValue
Token ID for the "has value to" find token.
|
static int |
FindIs
Token ID for the "is" find token.
|
static int |
FindIsNot
Token ID for the "is not" find token.
|
static int |
FindOr
Token ID for the "or" find token.
|
static int |
FindOver
Token ID for the "over" find token.
|
static int |
FindPriorTo
Token ID for the "prior to" find token.
|
static int |
FindStartsWith
Token ID for the "starts with" find token.
|
static int |
FindThumbNotSimilar
Token ID for the "not similar to" find token.
|
static int |
FindThumbSimilar
Token ID for the "similar to" find token.
|
static int |
FindUnder
Token ID for the "under" find token.
|
static int |
FindUpTo
Token ID for the "up to" find token.
|
static int |
IndexKindContentIndexed
Field index kind value for fields that are indexed for contain searching only.
|
static int |
IndexKindNotIndexed
Field index kind value for fields that are not indexed.
|
static int |
IndexKindOptionalFlagSegmentedIndex
Field index kind flag for segmented indices.
|
static int |
IndexKindOptionalFlagSolrIndex
Field index kind flag for Solr-based indices.
|
static int |
IndexKindOptionalFlagWithoutWordBreak
Field index kind flag for content indices without word break.
|
static int |
IndexKindSortContentIndexed
Field index kind value for fields that are indexed for sorting and contain searching.
|
static int |
IndexKindSortIndexed
Field index kind value for fields that are indexed for sorting only.
|
static int |
IndexKindWordIndexed
Field index kind value for fields that are word indexed.
|
static java.lang.String |
READ_ONLY_SERIAL_NUMBER
The Toolbox Runtime RO serial number to provide for read-only access in the
Server.openConnection(boolean, String,
String, String) method. |
static java.lang.String |
READ_WRITE_SERIAL_NUMBER
The Toolbox Runtime RW serial number to provide for read-write access in the
Server.openConnection(boolean, String,
String, String) connectToServer} method. |
static java.lang.String |
TABLE_NAME_ASSET_RECORDS |
static java.lang.String |
TABLE_NAME_CATEGORIES |
static int |
VERSION_NUMBER_10_0
Constant value for version 10.0.
|
static int |
VERSION_NUMBER_10_0_1
Constant value for version 10.0.1.
|
static int |
VERSION_NUMBER_10_0_2
Constant value for version 10.0.2.
|
static int |
VERSION_NUMBER_10_0_3
Constant value for version 10.0.3.
|
static int |
VERSION_NUMBER_10_1
Constant value for version 10.1.
|
static int |
VERSION_NUMBER_10_1_1
Constant value for version 10.1.1.
|
static int |
VERSION_NUMBER_10_1_2
Constant value for version 10.1.2.
|
static int |
VERSION_NUMBER_10_1_3
Constant value for version 10.1.3.
|
static int |
VERSION_NUMBER_10_2
Constant value for version 10.2.
|
static int |
VERSION_NUMBER_10_2_1
Constant value for version 10.2.1.
|
static int |
VERSION_NUMBER_10_2_2
Constant value for version 10.2.2.
|
static int |
VERSION_NUMBER_10_2_3
Constant value for version 10.2.3.
|
static int |
VERSION_NUMBER_10_2_4
Constant value for version 10.2.4.
|
static int |
VERSION_NUMBER_10_2_5
Constant value for version 10.2.5.
|
static int |
VERSION_NUMBER_10_2_6
Constant value for version 10.2.6.
|
static int |
VERSION_NUMBER_10_2_7
Constant value for version 10.2.7.
|
static int |
VERSION_NUMBER_11_0
Constant value for version 11.0.
|
static int |
VERSION_NUMBER_11_0_1
Constant value for version 11.0.1.
|
static int |
VERSION_NUMBER_11_0_2
Constant value for version 11.0.2.
|
static int |
VERSION_NUMBER_11_0_3
Constant value for version 11.0.3.
|
static int |
VERSION_NUMBER_11_0_4
Constant value for version 11.0.4.
|
static int |
VERSION_NUMBER_11_1
Constant value for version 11.1.
|
static int |
VERSION_NUMBER_11_1_1
Constant value for version 11.1.1.
|
static int |
VERSION_NUMBER_11_1_2
Constant value for version 11.1.2.
|
static int |
VERSION_NUMBER_11_1_3
Constant value for version 11.1.3.
|
static int |
VERSION_NUMBER_11_1_4
Constant value for version 11.1.4.
|
static int |
VERSION_NUMBER_11_1_5
Constant value for version 11.1.5.
|
static int |
VERSION_NUMBER_11_1_6
Constant value for version 11.1.6.
|
static int |
VERSION_NUMBER_11_1_7
Constant value for version 11.1.7.
|
static int |
VERSION_NUMBER_6_0
Constant value for version 6.0.
|
static int |
VERSION_NUMBER_7_0
Constant value for version 7.0.
|
static int |
VERSION_NUMBER_7_5
Constant value for version 7.5.
|
static int |
VERSION_NUMBER_7_5_3
Constant value for version 7.5.3.
|
static int |
VERSION_NUMBER_7_5_4
Constant value for version 7.5.4.
|
static int |
VERSION_NUMBER_7_6
Constant value for version 7.6.
|
static int |
VERSION_NUMBER_8_0
Constant value for version 8.0.0.
|
static int |
VERSION_NUMBER_8_0_1
Constant value for version 8.0.1.
|
static int |
VERSION_NUMBER_8_0_2
Constant value for version 8.0.2.
|
static int |
VERSION_NUMBER_8_1
Constant value for version 8.1.
|
static int |
VERSION_NUMBER_8_1_1
Constant value for version 8.1.
|
static int |
VERSION_NUMBER_8_5
Constant value for version 8.5.
|
static int |
VERSION_NUMBER_8_5_2
Constant value for version 8.5.2.
|
static int |
VERSION_NUMBER_8_6
Constant value for version 8.6.
|
static int |
VERSION_NUMBER_9_0
Constant value for version 9.0.
|
static int |
VERSION_NUMBER_9_0_1
Constant value for version 9.0.1.
|
static int |
VERSION_NUMBER_9_1
Constant value for version 9.1.
|
static int |
VERSION_NUMBER_9_2
Constant value for version 9.2.
|
static int |
VERSION_NUMBER_9_2_1
Constant value for version 9.2.1.
|
static int |
VERSION_NUMBER_9_2_2
Constant value for version 9.2.2.
|
static int |
VERSION_NUMBER_9_2_3
Constant value for version 9.2.3.
|
static int |
VERSION_NUMBER_9_2_4
Constant value for version 9.2.4.
|
static int |
VERSION_NUMBER_9_2_6
Constant value for version 9.2.6.
|
static int |
VERSION_NUMBER_9_2_7
Constant value for version 9.2.7.
|
static int |
WriteMetadataNever
Value of the catalog property for writing metadata back to an asset.
|
static int |
WriteMetadataSilent
Value of the catalog property for writing metadata back to an asset.
|
static int |
WriteMetadataWithUI
Value of the catalog property for writing metadata back to an asset.
|
Constructor and Description |
---|
Cumulus() |
Modifier and Type | Method and Description |
---|---|
static void |
addStartStopListener(StartStopListener listener)
Adds a new
StartStopListener to the Cumulus environment. |
static void |
CumulusStart()
Initializes the Cumulus Java Classes.
|
static void |
CumulusStart(java.lang.String CumulusPath)
Initializes the Cumulus Java Classes to run a specific Cumulus Java Classes installation.
|
static void |
CumulusStop()
Terminates the Cumulus Java Classes.
|
static java.lang.String |
findToken(int id)
Returns a language-dependent token string using a language-independent ID.
|
static java.lang.String |
getInstallPath()
Returns the path name of the Cumulus Java Classes installation directory.
|
static int |
getLanguageID()
Returns the default language that is used for new sessions.
|
static int |
getTokenID(java.lang.String token)
Returns the language-independent ID for the given language-dependent token string.
|
static java.lang.String |
getVersion()
Returns the current version of this Cumulus Java Classes implementation as a
String . |
static int |
getVersionNumber()
Returns the current version number of this Cumulus Java Classes implementation as an
int . |
static CumulusSession |
newSession()
Create a new session to work with the Cumulus Java Classes.
|
static void |
removeStartStopListener(StartStopListener listener)
Removes a
StartStopListener from the Cumulus environment. |
static void |
requestGarbageCollection()
Request a memory optimization (garbage collection).
|
static void |
setAutomaticGarbageCollection(int objectsCreated)
Setup automatic call of the
System.gc() and System.runFinalization() methods when the given number of Cumulus Java Classes objects are
created. |
static void |
setAutomaticGarbageCollectionInterval(int seconds)
Setup automatic call of the
System.gc() and System.runFinalization() methods when the given time is elapsed. |
static void |
setMaxTools(int maxTools)
Sets the maximum number of
CumulusTool processes that can be started. |
static void |
setToolTimeout(int milliseconds)
Sets the timeout (in milliseconds) that the Cumulus Java Classes waits for a CumulusTool processes to finish.
|
public static final int VERSION_NUMBER_6_0
getVersionNumber()
.public static final int VERSION_NUMBER_7_0
getVersionNumber()
.public static final int VERSION_NUMBER_7_5
getVersionNumber()
.public static final int VERSION_NUMBER_7_5_3
getVersionNumber()
.public static final int VERSION_NUMBER_7_5_4
getVersionNumber()
.public static final int VERSION_NUMBER_7_6
getVersionNumber()
.public static final int VERSION_NUMBER_8_0
getVersionNumber()
.public static final int VERSION_NUMBER_8_0_1
getVersionNumber()
.public static final int VERSION_NUMBER_8_0_2
getVersionNumber()
.public static final int VERSION_NUMBER_8_1
getVersionNumber()
.public static final int VERSION_NUMBER_8_1_1
getVersionNumber()
.public static final int VERSION_NUMBER_8_5
getVersionNumber()
.public static final int VERSION_NUMBER_8_5_2
getVersionNumber()
.public static final int VERSION_NUMBER_8_6
getVersionNumber()
.public static final int VERSION_NUMBER_9_0
getVersionNumber()
.public static final int VERSION_NUMBER_9_0_1
getVersionNumber()
.public static final int VERSION_NUMBER_9_1
getVersionNumber()
.public static final int VERSION_NUMBER_9_2
getVersionNumber()
.public static final int VERSION_NUMBER_9_2_1
getVersionNumber()
.public static final int VERSION_NUMBER_9_2_2
getVersionNumber()
.public static final int VERSION_NUMBER_9_2_3
getVersionNumber()
.public static final int VERSION_NUMBER_9_2_4
getVersionNumber()
.public static final int VERSION_NUMBER_9_2_6
getVersionNumber()
.public static final int VERSION_NUMBER_9_2_7
getVersionNumber()
.public static final int VERSION_NUMBER_10_0
getVersionNumber()
.public static final int VERSION_NUMBER_10_0_1
getVersionNumber()
.public static final int VERSION_NUMBER_10_0_2
getVersionNumber()
.public static final int VERSION_NUMBER_10_0_3
getVersionNumber()
.public static final int VERSION_NUMBER_10_1
getVersionNumber()
.public static final int VERSION_NUMBER_10_1_1
getVersionNumber()
.public static final int VERSION_NUMBER_10_1_2
getVersionNumber()
.public static final int VERSION_NUMBER_10_1_3
getVersionNumber()
.public static final int VERSION_NUMBER_10_2
getVersionNumber()
.public static final int VERSION_NUMBER_10_2_1
getVersionNumber()
.public static final int VERSION_NUMBER_10_2_2
getVersionNumber()
.public static final int VERSION_NUMBER_10_2_3
getVersionNumber()
.public static final int VERSION_NUMBER_10_2_4
getVersionNumber()
.public static final int VERSION_NUMBER_10_2_5
getVersionNumber()
.public static final int VERSION_NUMBER_10_2_6
getVersionNumber()
.public static final int VERSION_NUMBER_10_2_7
getVersionNumber()
.public static final int VERSION_NUMBER_11_0
getVersionNumber()
.public static final int VERSION_NUMBER_11_0_1
getVersionNumber()
.public static final int VERSION_NUMBER_11_0_2
getVersionNumber()
.public static final int VERSION_NUMBER_11_0_3
getVersionNumber()
.public static final int VERSION_NUMBER_11_0_4
getVersionNumber()
.public static final int VERSION_NUMBER_11_1
getVersionNumber()
.public static final int VERSION_NUMBER_11_1_1
getVersionNumber()
.public static final int VERSION_NUMBER_11_1_2
getVersionNumber()
.public static final int VERSION_NUMBER_11_1_3
getVersionNumber()
.public static final int VERSION_NUMBER_11_1_4
getVersionNumber()
.public static final int VERSION_NUMBER_11_1_5
getVersionNumber()
.public static final int VERSION_NUMBER_11_1_6
getVersionNumber()
.public static final int VERSION_NUMBER_11_1_7
getVersionNumber()
.public static final java.lang.String READ_WRITE_SERIAL_NUMBER
Server.openConnection(boolean, String,
String, String)
connectToServer} method.public static final java.lang.String READ_ONLY_SERIAL_NUMBER
Server.openConnection(boolean, String,
String, String)
method.public static final int WriteMetadataNever
public static final int WriteMetadataSilent
public static final int WriteMetadataWithUI
public static final int IndexKindNotIndexed
public static final int IndexKindSortIndexed
public static final int IndexKindContentIndexed
public static final int IndexKindSortContentIndexed
public static final int IndexKindWordIndexed
public static final int IndexKindOptionalFlagWithoutWordBreak
FieldDefinition.getIndexing()
,
Constant Field Valuespublic static final int IndexKindOptionalFlagSegmentedIndex
FieldDefinition.getIndexing()
,
Constant Field Valuespublic static final int IndexKindOptionalFlagSolrIndex
FieldDefinition.getIndexing()
,
Constant Field Valuespublic static final int FindContains
findToken(int)
,
Constant Field Valuespublic static final int FindStartsWith
findToken(int)
,
Constant Field Valuespublic static final int FindIs
findToken(int)
,
Constant Field Valuespublic static final int FindIsNot
findToken(int)
,
Constant Field Valuespublic static final int FindDoesntContain
findToken(int)
,
Constant Field Valuespublic static final int FindUnder
findToken(int)
,
Constant Field Valuespublic static final int FindUpTo
findToken(int)
,
Constant Field Valuespublic static final int FindFrom
findToken(int)
,
Constant Field Valuespublic static final int FindOver
findToken(int)
,
Constant Field Valuespublic static final int FindPriorTo
findToken(int)
,
Constant Field Valuespublic static final int FindAfter
findToken(int)
,
Constant Field Valuespublic static final int FindThumbSimilar
findToken(int)
,
Constant Field Valuespublic static final int FindThumbNotSimilar
findToken(int)
,
Constant Field Valuespublic static final int FindHasNoValue
findToken(int)
,
Constant Field Valuespublic static final int FindHasValue
findToken(int)
,
Constant Field Valuespublic static final int FindBoolTrue
findToken(int)
,
Constant Field Valuespublic static final int FindBoolFalse
findToken(int)
,
Constant Field Valuespublic static final int FindAnd
findToken(int)
,
Constant Field Valuespublic static final int FindOr
findToken(int)
,
Constant Field Valuespublic static final int FindCategoriesField
findToken(int)
,
Constant Field Valuespublic static final java.lang.String TABLE_NAME_ASSET_RECORDS
public static final java.lang.String TABLE_NAME_CATEGORIES
public static void CumulusStart()
public static void CumulusStart(java.lang.String CumulusPath)
CumulusPath
- the Cumulus Java Classes installation directory. If the parameter is null
the Cumulus installation directory will be
determined from the System property "com.canto.cumulus.path" or from the location of the CumulusJC.jar file found in either the System
property "java.class.path" or the CLASSPATH environment variable. If this fails the current directory is used.public static void requestGarbageCollection()
public static java.lang.String getInstallPath()
public static CumulusSession newSession()
CumulusSession
object.public static void CumulusStop()
public static int getLanguageID()
public static java.lang.String findToken(int id)
FieldDefinition
object. String sRecName = myCollection.getCatalog().getRecordLayout().getFieldDefinitions().getFieldDefinitionByID(GUID.UID_REC_RECORD_NAME).getName(); // Only works with Cumulus english version String sQueryEnglish = "Record Name\tstarts with\tA"; // Always works String sQuery = sRecName + "\t" + Cumulus.findToken(Cumulus.FindStartsWith) + "\t" + "A";
id
- the token's ID. Possible values are: public static int getTokenID(java.lang.String token)
token
- language-dependent token stringpublic static java.lang.String getVersion()
String
.public static void addStartStopListener(StartStopListener listener)
StartStopListener
to the Cumulus environment. You can (and should) add this event listener before the first call to CumulusStart()
.listener
- a StartStopListener
.public static void removeStartStopListener(StartStopListener listener)
StartStopListener
from the Cumulus environment.listener
- a StartStopListener
.public static void setMaxTools(int maxTools)
CumulusTool
processes that can be started. The Cumulus Java Classes use external CumulusTool
processes to
perform cataloging, updating and converting tasks. It starts a new CumulusTool
when it can not find a running inactive process for the same
server, user name, and catalog. Default is 10, minimum is 1, maximum is 1000.maxTools
- the maximum number of CumulusTool
processes that can be started.public static void setToolTimeout(int milliseconds)
milliseconds
- the timeout in milliseconds.public static void setAutomaticGarbageCollection(int objectsCreated)
System.gc()
and System.runFinalization()
methods when the given number of Cumulus Java Classes objects are
created. When the trigger value is reached the Cumulus Java Classes automatically trigger the Java garbage collector for the next time interval and reset
the internal counter. The Cumulus Java Classes library starts up with a value of 10000 which seems to be the optimum for smooth operation.objectsCreated
- the number of Cumulus Java Classes objects created before garbage collection is done. A value of 0
switches off automatic
garbage collection on object creation.public static void setAutomaticGarbageCollectionInterval(int seconds)
System.gc()
and System.runFinalization()
methods when the given time is elapsed. The time is given in
seconds. The Cumulus Java Classes library starts up with a value of 60 seconds which seems to be the optimum for smooth operation.seconds
- the number of seconds between two automatic garbage collections. A value of 0
switches off automatic garbage collection.public static int getVersionNumber()
int
. The highest byte contains the major version while the
others contain the minor, bug fix and build version respectively. You can check whether the Cumulus Java Classes are at least version 7.5.1 by testing
whether this value is >= 0x07050100. You can also use the following version constants (e.g. VERSION_NUMBER_7_5
).www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.