|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.bulkbuilder.internal.BulkbuilderConfig
public class BulkbuilderConfig
Helper class for reading bulk builder configuration.
| Field Summary | |
|---|---|
static long |
MILLISECONDS_MULTIPLIER
Constant for the multiplier to convert from seconds to milliseconds. |
| Constructor Summary | |
|---|---|
BulkbuilderConfig()
create instance with default values. |
|
| Method Summary | |
|---|---|
protected long |
getDataSizeProperty(java.lang.String propName,
java.lang.String defaultValue)
parse a datasize value from a property. |
long |
getLimitSize()
|
long |
getLimitTime()
|
long |
getLimitTimeMillis()
|
long |
getMaxParallelMicroBulks()
|
void |
readConfiguration()
read configuration from config file. |
void |
setFrom(java.util.Properties properties)
set values from given properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long MILLISECONDS_MULTIPLIER
| Constructor Detail |
|---|
public BulkbuilderConfig()
| Method Detail |
|---|
public long getLimitTime()
public long getLimitTimeMillis()
public long getLimitSize()
public long getMaxParallelMicroBulks()
public void readConfiguration()
throws java.io.IOException
java.io.IOException - error reading the file or missing required properties.public void setFrom(java.util.Properties properties)
properties - properties
protected long getDataSizeProperty(java.lang.String propName,
java.lang.String defaultValue)
propName - property name.defaultValue - default value.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||