package edu.brown.hstore;
import org.voltdb.VoltTable;
public abstract class HStoreConstants {
// ----------------------------------------------------------------------------
// STANDARD LOG MESSAGES
// ----------------------------------------------------------------------------
/**
* When an HStoreSite is ready to start processing transactions, it will print
* this message. The BenchmarkController will be waiting for this output.
*/
public static final String SITE_READY_MSG = "Site is ready for action";
/**
* This message will get printed when the first non-sysproc transaction request
* arrives at an HStoreSite. Makes it easier to search through the logs.
*/
public static final String SITE_FIRST_TXN = "First non-sysproc transaction request recieved";
/**
* The first partition id to use when initializing a cluster
*/
public static final int FIRST_PARTITION_ID = 0;
// ----------------------------------------------------------------------------
// NETWORK STUFF
// ----------------------------------------------------------------------------
/**
* The default port number for H-Store cluster instances.
*/
public static final int DEFAULT_PORT = 21212;
public static final int MESSENGER_PORT_OFFSET = 10000;
// ----------------------------------------------------------------------------
// THREAD NAMES
// ----------------------------------------------------------------------------
public static final String THREAD_NAME_PERIODIC = "periodic";
public static final String THREAD_NAME_LISTEN = "listen";
public static final String THREAD_NAME_COORDINATOR = "coord";
public static final String THREAD_NAME_PREPROCESSOR = "pre";
public static final String THREAD_NAME_POSTPROCESSOR = "post";
public static final String THREAD_NAME_HELPER = "help";
public static final String THREAD_NAME_QUEUE_MGR = "queuemgr";
public static final String THREAD_NAME_QUEUE_INIT = "queueinit";
public static final String THREAD_NAME_QUEUE_RESTART = "queuerestart";
public static final String THREAD_NAME_COMMANDLOGGER = "cmdlg";
public static final String THREAD_NAME_ANTICACHE = "anticache";
public static final String THREAD_NAME_LOGGING = "logging";
public static final String THREAD_NAME_MAPREDUCE = "mr";
public static final String THREAD_NAME_DEBUGSTATUS = "status";
public static final String THREAD_NAME_TXNCLEANER = "cleaner";
public static final String THREAD_NAME_VOLTNETWORK = "voltnetwork";
public static final String THREAD_NAME_INCOMINGNETWORK= "incoming";
// ----------------------------------------------------------------------------
// EXECUTION STUFF
// ----------------------------------------------------------------------------
/**
* Just an empty VoltTable array that we can reuse all around the system
*/
public static final VoltTable EMPTY_RESULT[] = new VoltTable[0];
/**
* Null Dependency Id
*/
public static final int NULL_DEPENDENCY_ID = -1;
/**
* Null Partition Id
*/
public static final int NULL_PARTITION_ID = -1;
/**
* Default token used to indicate that a txn is not using undo buffers
* when executing PlanFragments in the EE
*/
public static final long DISABLE_UNDO_LOGGING_TOKEN = Long.MAX_VALUE;
public static final long NULL_UNDO_LOGGING_TOKEN = -1;
/**
* H-Store's ant build.xml will add this prefix in front of all the configuration
* parameters listed in the benchmark-specific properties files
*/
public static final String BENCHMARK_PARAM_PREFIX = "benchmark.";
/**
* The default name of the Statement given for single-statement (i.e., non-Java) Procedures
*/
public static final String ANON_STMT_NAME = "sql";
// ----------------------------------------------------------------------------
// MISCELLANEOUS STUFF
// ----------------------------------------------------------------------------
public static final String HSTORE_WEBSITE = "http://hstore.cs.brown.edu";
/** Dtxn requires 1 dependency response per partition */
public static final int MULTIPARTITION_DEPENDENCY = 0x40000000;
}