org.compass.needle.terracotta.transaction.processor
Class TerracottaTransactionProcessorEnvironment

java.lang.Object
  extended by org.compass.needle.terracotta.transaction.processor.TerracottaTransactionProcessorEnvironment

public class TerracottaTransactionProcessorEnvironment
extends Object

Settings that apply to TerracottaTransactionProcessorFactory.

Author:
kimchy

Field Summary
static String ALIASES
          A comma separated list of aliases that the processor node (worker) will process against the index.
static String BATCH_JOBS_SIZE
          Once a transaction is identified as needed to be processed asynchronously, it can try and wait for more transactions to happen in order to process all of them in one go.
static String BATCH_JOBS_TIMEOUT
          Once a transaction is identified as needed to be processed asynchronously, it can try and wait for more transactions to happen in order to process all of them in one go.
static String MAINTAIN_ORDER
          Allows to control if order between concurrent transactions within a single JVM or across JVMs on the sub index level will have to be ordered or not.
static String NAME
          The name of the processor.
static String NON_BLOCKING_BATCH_JOBS_SIZE
          Once a transaction is identified as needed to be processed, this setting controls the number of additional transactions the processor will try to get in a non blocking fashion.
static String PROCESS
          true if this terracotta processor will also act as worker and processor transactional jobs, false if this is just a client node that only submits transactions to be processed by worker nodes.
static String SUB_INDEXES
          A comma separated list of sub indexs that the processor node (worker) will process against the index.
 
Constructor Summary
TerracottaTransactionProcessorEnvironment()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
The name of the processor.

See Also:
Constant Field Values

MAINTAIN_ORDER

public static final String MAINTAIN_ORDER
Allows to control if order between concurrent transactions within a single JVM or across JVMs on the sub index level will have to be ordered or not. If they are ordered, a lock will be obtained once a dirty operation is perfomed against the sub index, and it will only be released once the transaction commits / rolls back. Default value is true.

See Also:
Constant Field Values

PROCESS

public static final String PROCESS
true if this terracotta processor will also act as worker and processor transactional jobs, false if this is just a client node that only submits transactions to be processed by worker nodes. Defaults to true.

See Also:
Constant Field Values

SUB_INDEXES

public static final String SUB_INDEXES
A comma separated list of sub indexs that the processor node (worker) will process against the index. Defaults to all sub indexes.

See Also:
Constant Field Values

ALIASES

public static final String ALIASES
A comma separated list of aliases that the processor node (worker) will process against the index. Defaults to all aliases.

See Also:
Constant Field Values

NON_BLOCKING_BATCH_JOBS_SIZE

public static final String NON_BLOCKING_BATCH_JOBS_SIZE
Once a transaction is identified as needed to be processed, this setting controls the number of additional transactions the processor will try to get in a non blocking fashion.

Defaults to 5.

See Also:
Constant Field Values

BATCH_JOBS_SIZE

public static final String BATCH_JOBS_SIZE
Once a transaction is identified as needed to be processed asynchronously, it can try and wait for more transactions to happen in order to process all of them in one go. This settings controls how many additional transactions will be accumalated by blocking for them. The blocking time is controlled using BATCH_JOBS_TIMEOUT.

While there is an additional job within the timeout, transactions will be accumelated until the configured size. If there is none within the timeout, the processor will break and won't wait for more in order to process the jobs.

Defaults to 5.

See Also:
Constant Field Values

BATCH_JOBS_TIMEOUT

public static final String BATCH_JOBS_TIMEOUT
Once a transaction is identified as needed to be processed asynchronously, it can try and wait for more transactions to happen in order to process all of them in one go. This settings controls how long to wait for each additional transaction.

While there is an additional job within the timeout, transactions will be accumelated until the configured size. If there is none within the timeout, the processor will break and won't wait for more in order to process the jobs.

Defaults to 100 milliseconds.

See Also:
Constant Field Values
Constructor Detail

TerracottaTransactionProcessorEnvironment

public TerracottaTransactionProcessorEnvironment()


Copyright (c) 2004-2009 The Compass Project.