edu.usc.bg.base
Class Client

java.lang.Object
  extended by edu.usc.bg.base.Client

public class Client
extends java.lang.Object

Main class for executing BG.


Field Summary
static java.lang.String ActsTillFirstDeath
           
static java.lang.String CONFPERC_COUNT_PROPERTY
           
static java.lang.String DB_CLIENT_PROPERTY
           
static java.lang.String DB_CLIENT_PROPERTY_DEFAULT
           
static java.lang.String DISTRITYPE_PROPERTY
           
static java.lang.String DISTRITYPE_PROPERTY_DEFAULT
           
static java.lang.String ENFORCE_FRIENDSHIP_PROPERTY
           
static java.lang.String ENFORCE_FRIENDSHIP_PROPERTY_DEFAULT
           
static java.lang.String EXPECTED_AVAILABILITY_PROPERTY
           
static java.lang.String EXPECTED_AVAILABILITY_PROPERTY_DEFAULT
           
static java.lang.String EXPECTED_LATENCY_PROPERTY
           
static java.lang.String EXPECTED_LATENCY_PROPERTY_DEFAULT
           
static java.lang.String EXPORT_FILE_PROPERTY
           
static java.lang.String FEED_LOAD_DEFAULT_PROPERTY
           
static java.lang.String FEED_LOAD_PROPERTY
           
static java.lang.String FreshnessConfidence
           
static java.lang.String FRIENDSHIP_COUNT_PROPERTY
           
static java.lang.String FRIENDSHIP_COUNT_PROPERTY_DEFAULT
           
static java.lang.String FRIENDSHIP_WORKLOAD_PROPERTY
           
static java.lang.String IMAGE_SIZE_PROPERTY
           
static java.lang.String IMAGE_SIZE_PROPERTY_DEFAULT
           
static java.lang.String INIT_FRND_COUNT_PROPERTY
           
static java.lang.String INIT_FRND_COUNT_PROPERTY_DEFAULT
           
static java.lang.String INIT_PEND_COUNT_PROPERTY
           
static java.lang.String INIT_RES_COUNT_PROPERTY
           
static java.lang.String INIT_RES_COUNT_PROPERTY_DEFAULT
           
static java.lang.String INIT_STATS_REQ_APPROACH_PROPERTY
           
static java.lang.String INIT_USER_COUNT_PROPERTY
           
static java.lang.String INIT_USER_COUNT_PROPERTY_DEFAULT
           
static java.lang.String INSERT_IMAGE_PROPERTY
           
static java.lang.String INSERT_IMAGE_PROPERTY_DEFAULT
           
static java.lang.String INTERARRIVAL_TIME_PROPERTY
           
static java.lang.String INTERARRIVAL_TIME_PROPERTY_DEFAULT
           
static java.lang.String LAMBDA_PROPERTY
           
static java.lang.String LAMBDA_PROPERTY_DEFAULT
           
static java.lang.String LOG_DIR_PROPERTY
           
static java.lang.String LOG_DIR_PROPERTY_DEFAULT
           
static java.lang.String MACHINE_ID_PROPERTY
           
static java.lang.String MACHINE_ID_PROPERTY_DEFAULT
           
static int machineid
           
static java.lang.String MAX_EXECUTION_TIME
          The maximum amount of time (in seconds) for which the benchmark will be run.
static java.lang.String MAX_EXECUTION_TIME_DEFAULT
           
static java.lang.String MONITOR_DURATION_PROPERTY
           
static java.lang.String MONITOR_DURATION_PROPERTY_DEFAULT
           
static java.lang.String NUM_BG_PROPERTY
           
static java.lang.String NUM_BG_PROPERTY_DEFAULT
           
static java.lang.String NUM_LOAD_THREAD_PROPERTY
           
static int numBGClients
           
static java.lang.String NumProcessedOps
           
static java.lang.String NumPrunedOps
           
static java.lang.String NumReadOps
           
static java.lang.String NumStaleOps
           
static java.lang.String NumWriteOps
           
static java.lang.String OPERATION_COUNT_PROPERTY
           
static java.lang.String OPERATION_COUNT_PROPERTY_DEFAULT
           
static java.lang.String OpsTillFirstDeath
           
static java.lang.String PORT_PROPERTY
           
static java.lang.String PORT_PROPERTY_DEFAULT
           
static java.lang.String PROBS_PROPERTY
           
static java.lang.String PROBS_PROPERTY_DEFAULT
           
static java.lang.String RATING_MODE_PROPERTY
           
static java.lang.String RATING_MODE_PROPERTY_DEFAULT
           
static java.lang.String RESOURCE_COUNT_PROPERTY
           
static java.lang.String RESOURCE_COUNT_PROPERTY_DEFAULT
           
static java.lang.String RESOURCE_WORKLOAD_PROPERTY
           
static java.lang.String SIM_WARMUP_TIME_PROPERTY
           
static java.lang.String SIM_WARMUP_TIME_PROPERTY_DEFAULT
           
static java.lang.String SIMTYPE_PROPERTY
           
static java.lang.String SIMTYPE_PROPERTY_DEFAULT
           
static java.lang.String TARGET__PROPERTY
           
static java.lang.String TARGET_PROPERTY_DEFAULT
           
static java.lang.String THINK_TIME_PROPERTY
           
static java.lang.String THINK_TIME_PROPERTY_DEFAULT
           
static java.lang.String THREAD_CNT_PROPERTY
           
static java.lang.String THREAD_CNT_PROPERTY_DEFAULT
           
static java.lang.String TimeTillFirstDeath
           
static java.lang.String USER_COUNT_PROPERTY
           
static java.lang.String USER_COUNT_PROPERTY_DEFAULT
           
static java.lang.String USER_OFFSET_PROPERTY
           
static java.lang.String USER_OFFSET_PROPERTY_DEFAULT
           
static java.lang.String USER_WORKLOAD_PROPERTY
           
static java.lang.String ValidationTime
           
static java.lang.String WARMUP_OP_PROPERTY
           
static java.lang.String WARMUP_OP_PROPERTY_DEFAULT
           
static java.lang.String WARMUP_THREADS_PROPERTY
           
static java.lang.String WARMUP_THREADS_PROPERTY_DEFAULT
           
static Workload workload
           
static java.lang.String WORKLOAD_PROPERTY
           
 
Constructor Summary
Client()
           
 
Method Summary
static boolean checkRequiredProperties(java.util.Properties props, boolean dotransactions, boolean doSchema, boolean doTestDB, boolean doStats)
          check if the workload parameters exist
 void runBG(java.lang.String[] args, java.net.Socket listenerConnection)
           
static void usageMessage()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATION_COUNT_PROPERTY

public static final java.lang.String OPERATION_COUNT_PROPERTY
See Also:
Constant Field Values

OPERATION_COUNT_PROPERTY_DEFAULT

public static final java.lang.String OPERATION_COUNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

NUM_LOAD_THREAD_PROPERTY

public static final java.lang.String NUM_LOAD_THREAD_PROPERTY
See Also:
Constant Field Values

USER_COUNT_PROPERTY

public static final java.lang.String USER_COUNT_PROPERTY
See Also:
Constant Field Values

USER_COUNT_PROPERTY_DEFAULT

public static final java.lang.String USER_COUNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

USER_OFFSET_PROPERTY

public static final java.lang.String USER_OFFSET_PROPERTY
See Also:
Constant Field Values

USER_OFFSET_PROPERTY_DEFAULT

public static final java.lang.String USER_OFFSET_PROPERTY_DEFAULT
See Also:
Constant Field Values

RESOURCE_COUNT_PROPERTY

public static final java.lang.String RESOURCE_COUNT_PROPERTY
See Also:
Constant Field Values

RESOURCE_COUNT_PROPERTY_DEFAULT

public static final java.lang.String RESOURCE_COUNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

FRIENDSHIP_COUNT_PROPERTY

public static final java.lang.String FRIENDSHIP_COUNT_PROPERTY
See Also:
Constant Field Values

FRIENDSHIP_COUNT_PROPERTY_DEFAULT

public static final java.lang.String FRIENDSHIP_COUNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

CONFPERC_COUNT_PROPERTY

public static final java.lang.String CONFPERC_COUNT_PROPERTY
See Also:
Constant Field Values

RATING_MODE_PROPERTY

public static final java.lang.String RATING_MODE_PROPERTY
See Also:
Constant Field Values

RATING_MODE_PROPERTY_DEFAULT

public static final java.lang.String RATING_MODE_PROPERTY_DEFAULT
See Also:
Constant Field Values

EXPECTED_LATENCY_PROPERTY

public static final java.lang.String EXPECTED_LATENCY_PROPERTY
See Also:
Constant Field Values

EXPECTED_LATENCY_PROPERTY_DEFAULT

public static final java.lang.String EXPECTED_LATENCY_PROPERTY_DEFAULT
See Also:
Constant Field Values

EXPECTED_AVAILABILITY_PROPERTY

public static final java.lang.String EXPECTED_AVAILABILITY_PROPERTY
See Also:
Constant Field Values

EXPECTED_AVAILABILITY_PROPERTY_DEFAULT

public static final java.lang.String EXPECTED_AVAILABILITY_PROPERTY_DEFAULT
See Also:
Constant Field Values

EXPORT_FILE_PROPERTY

public static final java.lang.String EXPORT_FILE_PROPERTY
See Also:
Constant Field Values

FEED_LOAD_PROPERTY

public static final java.lang.String FEED_LOAD_PROPERTY
See Also:
Constant Field Values

FEED_LOAD_DEFAULT_PROPERTY

public static final java.lang.String FEED_LOAD_DEFAULT_PROPERTY
See Also:
Constant Field Values

WORKLOAD_PROPERTY

public static final java.lang.String WORKLOAD_PROPERTY
See Also:
Constant Field Values

USER_WORKLOAD_PROPERTY

public static final java.lang.String USER_WORKLOAD_PROPERTY
See Also:
Constant Field Values

FRIENDSHIP_WORKLOAD_PROPERTY

public static final java.lang.String FRIENDSHIP_WORKLOAD_PROPERTY
See Also:
Constant Field Values

RESOURCE_WORKLOAD_PROPERTY

public static final java.lang.String RESOURCE_WORKLOAD_PROPERTY
See Also:
Constant Field Values

INIT_STATS_REQ_APPROACH_PROPERTY

public static final java.lang.String INIT_STATS_REQ_APPROACH_PROPERTY
See Also:
Constant Field Values

INIT_USER_COUNT_PROPERTY

public static final java.lang.String INIT_USER_COUNT_PROPERTY
See Also:
Constant Field Values

INIT_USER_COUNT_PROPERTY_DEFAULT

public static final java.lang.String INIT_USER_COUNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

INIT_FRND_COUNT_PROPERTY

public static final java.lang.String INIT_FRND_COUNT_PROPERTY
See Also:
Constant Field Values

INIT_PEND_COUNT_PROPERTY

public static final java.lang.String INIT_PEND_COUNT_PROPERTY
See Also:
Constant Field Values

INIT_FRND_COUNT_PROPERTY_DEFAULT

public static final java.lang.String INIT_FRND_COUNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

INIT_RES_COUNT_PROPERTY

public static final java.lang.String INIT_RES_COUNT_PROPERTY
See Also:
Constant Field Values

INIT_RES_COUNT_PROPERTY_DEFAULT

public static final java.lang.String INIT_RES_COUNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

INSERT_IMAGE_PROPERTY

public static final java.lang.String INSERT_IMAGE_PROPERTY
See Also:
Constant Field Values

INSERT_IMAGE_PROPERTY_DEFAULT

public static final java.lang.String INSERT_IMAGE_PROPERTY_DEFAULT
See Also:
Constant Field Values

IMAGE_SIZE_PROPERTY

public static final java.lang.String IMAGE_SIZE_PROPERTY
See Also:
Constant Field Values

IMAGE_SIZE_PROPERTY_DEFAULT

public static final java.lang.String IMAGE_SIZE_PROPERTY_DEFAULT
See Also:
Constant Field Values

THREAD_CNT_PROPERTY

public static final java.lang.String THREAD_CNT_PROPERTY
See Also:
Constant Field Values

THREAD_CNT_PROPERTY_DEFAULT

public static final java.lang.String THREAD_CNT_PROPERTY_DEFAULT
See Also:
Constant Field Values

THINK_TIME_PROPERTY

public static final java.lang.String THINK_TIME_PROPERTY
See Also:
Constant Field Values

THINK_TIME_PROPERTY_DEFAULT

public static final java.lang.String THINK_TIME_PROPERTY_DEFAULT
See Also:
Constant Field Values

INTERARRIVAL_TIME_PROPERTY

public static final java.lang.String INTERARRIVAL_TIME_PROPERTY
See Also:
Constant Field Values

INTERARRIVAL_TIME_PROPERTY_DEFAULT

public static final java.lang.String INTERARRIVAL_TIME_PROPERTY_DEFAULT
See Also:
Constant Field Values

WARMUP_OP_PROPERTY

public static final java.lang.String WARMUP_OP_PROPERTY
See Also:
Constant Field Values

WARMUP_OP_PROPERTY_DEFAULT

public static final java.lang.String WARMUP_OP_PROPERTY_DEFAULT
See Also:
Constant Field Values

WARMUP_THREADS_PROPERTY

public static final java.lang.String WARMUP_THREADS_PROPERTY
See Also:
Constant Field Values

WARMUP_THREADS_PROPERTY_DEFAULT

public static final java.lang.String WARMUP_THREADS_PROPERTY_DEFAULT
See Also:
Constant Field Values

PORT_PROPERTY

public static final java.lang.String PORT_PROPERTY
See Also:
Constant Field Values

PORT_PROPERTY_DEFAULT

public static final java.lang.String PORT_PROPERTY_DEFAULT
See Also:
Constant Field Values

DB_CLIENT_PROPERTY

public static final java.lang.String DB_CLIENT_PROPERTY
See Also:
Constant Field Values

DB_CLIENT_PROPERTY_DEFAULT

public static final java.lang.String DB_CLIENT_PROPERTY_DEFAULT
See Also:
Constant Field Values

MACHINE_ID_PROPERTY

public static final java.lang.String MACHINE_ID_PROPERTY
See Also:
Constant Field Values

MACHINE_ID_PROPERTY_DEFAULT

public static final java.lang.String MACHINE_ID_PROPERTY_DEFAULT
See Also:
Constant Field Values

NUM_BG_PROPERTY

public static final java.lang.String NUM_BG_PROPERTY
See Also:
Constant Field Values

NUM_BG_PROPERTY_DEFAULT

public static final java.lang.String NUM_BG_PROPERTY_DEFAULT
See Also:
Constant Field Values

MONITOR_DURATION_PROPERTY

public static final java.lang.String MONITOR_DURATION_PROPERTY
See Also:
Constant Field Values

MONITOR_DURATION_PROPERTY_DEFAULT

public static final java.lang.String MONITOR_DURATION_PROPERTY_DEFAULT
See Also:
Constant Field Values

TARGET__PROPERTY

public static final java.lang.String TARGET__PROPERTY
See Also:
Constant Field Values

TARGET_PROPERTY_DEFAULT

public static final java.lang.String TARGET_PROPERTY_DEFAULT
See Also:
Constant Field Values

LOG_DIR_PROPERTY

public static final java.lang.String LOG_DIR_PROPERTY
See Also:
Constant Field Values

LOG_DIR_PROPERTY_DEFAULT

public static final java.lang.String LOG_DIR_PROPERTY_DEFAULT
See Also:
Constant Field Values

PROBS_PROPERTY

public static final java.lang.String PROBS_PROPERTY
See Also:
Constant Field Values

PROBS_PROPERTY_DEFAULT

public static final java.lang.String PROBS_PROPERTY_DEFAULT
See Also:
Constant Field Values

ENFORCE_FRIENDSHIP_PROPERTY

public static final java.lang.String ENFORCE_FRIENDSHIP_PROPERTY
See Also:
Constant Field Values

ENFORCE_FRIENDSHIP_PROPERTY_DEFAULT

public static final java.lang.String ENFORCE_FRIENDSHIP_PROPERTY_DEFAULT
See Also:
Constant Field Values

workload

public static Workload workload

SIMTYPE_PROPERTY

public static final java.lang.String SIMTYPE_PROPERTY
See Also:
Constant Field Values

DISTRITYPE_PROPERTY

public static final java.lang.String DISTRITYPE_PROPERTY
See Also:
Constant Field Values

LAMBDA_PROPERTY

public static final java.lang.String LAMBDA_PROPERTY
See Also:
Constant Field Values

SIM_WARMUP_TIME_PROPERTY

public static final java.lang.String SIM_WARMUP_TIME_PROPERTY
See Also:
Constant Field Values

SIMTYPE_PROPERTY_DEFAULT

public static final java.lang.String SIMTYPE_PROPERTY_DEFAULT
See Also:
Constant Field Values

DISTRITYPE_PROPERTY_DEFAULT

public static final java.lang.String DISTRITYPE_PROPERTY_DEFAULT
See Also:
Constant Field Values

LAMBDA_PROPERTY_DEFAULT

public static final java.lang.String LAMBDA_PROPERTY_DEFAULT
See Also:
Constant Field Values

SIM_WARMUP_TIME_PROPERTY_DEFAULT

public static final java.lang.String SIM_WARMUP_TIME_PROPERTY_DEFAULT
See Also:
Constant Field Values

TimeTillFirstDeath

public static final java.lang.String TimeTillFirstDeath
See Also:
Constant Field Values

OpsTillFirstDeath

public static final java.lang.String OpsTillFirstDeath
See Also:
Constant Field Values

ActsTillFirstDeath

public static final java.lang.String ActsTillFirstDeath
See Also:
Constant Field Values

NumStaleOps

public static final java.lang.String NumStaleOps
See Also:
Constant Field Values

NumReadOps

public static final java.lang.String NumReadOps
See Also:
Constant Field Values

NumPrunedOps

public static final java.lang.String NumPrunedOps
See Also:
Constant Field Values

ValidationTime

public static final java.lang.String ValidationTime
See Also:
Constant Field Values

FreshnessConfidence

public static final java.lang.String FreshnessConfidence
See Also:
Constant Field Values

NumWriteOps

public static final java.lang.String NumWriteOps
See Also:
Constant Field Values

NumProcessedOps

public static final java.lang.String NumProcessedOps
See Also:
Constant Field Values

MAX_EXECUTION_TIME

public static final java.lang.String MAX_EXECUTION_TIME
The maximum amount of time (in seconds) for which the benchmark will be run.

See Also:
Constant Field Values

MAX_EXECUTION_TIME_DEFAULT

public static final java.lang.String MAX_EXECUTION_TIME_DEFAULT
See Also:
Constant Field Values

machineid

public static int machineid

numBGClients

public static int numBGClients
Constructor Detail

Client

public Client()
Method Detail

usageMessage

public static void usageMessage()

checkRequiredProperties

public static boolean checkRequiredProperties(java.util.Properties props,
                                              boolean dotransactions,
                                              boolean doSchema,
                                              boolean doTestDB,
                                              boolean doStats)
check if the workload parameters exist


runBG

public void runBG(java.lang.String[] args,
                  java.net.Socket listenerConnection)