|
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.importing.state.objectstore.StateStoreConfiguration
public class StateStoreConfiguration
configuration for ObjectStoreStateService. Main purpose is creation of configurable entry key so that it's possible to optimize the StateService for varying numbers of entries and to adapt it to underlying objectstore implementations.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_KEYPATTERN
property name to the {@link String#format(String, Object...) pattern that combines shard part and segmented rest of digest into an entry key. |
static java.lang.String |
KEY_SEGMENTCOUNT
property name to configure the count of the segments in the remaining part of the entry key. |
static java.lang.String |
KEY_SEGMENTLENGTH
property name to configure the length of the segments in the remaining part of the entry key. |
static java.lang.String |
KEY_SHARDLENGTH
property name to configure the length of the "shard" part of the entry key. |
| Constructor Summary | |
|---|---|
StateStoreConfiguration(java.util.Properties properties)
create configuration from properties. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEntryKey(java.lang.String idDigest)
compute entry key from id digest according to configuration properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_SHARDLENGTH
public static final java.lang.String KEY_SEGMENTLENGTH
public static final java.lang.String KEY_SEGMENTCOUNT
public static final java.lang.String KEY_KEYPATTERN
| Constructor Detail |
|---|
public StateStoreConfiguration(java.util.Properties properties)
| Method Detail |
|---|
public java.lang.String getEntryKey(java.lang.String idDigest)
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||