|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.kernel.configuration.Config
public class Config
This class holds the overall configuration of a Neo4j database instance. Use the accessors
to convert the internal key-value settings to other types.
Users can assume that old settings have been migrated to their new counterparts, and that defaults
have been applied.
UI's can change configuration by calling applyChanges. Any listener, such as services that use
this configuration, can be notified of changes by implementing the ConfigurationChangeListener
interface.
Constructor Summary | |
---|---|
Config()
|
|
Config(Map<String,String> inputParams)
|
|
Config(Map<String,String> inputParams,
Class<?>... settingsClasses)
|
|
Config(Map<String,String> inputParams,
Iterable<Class<?>> settingsClasses)
|
Method Summary | ||
---|---|---|
void |
acceptDiagnosticsVisitor(Object visitor)
Accept a visitor that may or may not be capable of visiting this object. |
|
void |
addConfigurationChangeListener(ConfigurationChangeListener listener)
|
|
void |
applyChanges(Map<String,String> newConfiguration)
Replace the current set of configuration parameters with another one. |
|
void |
dump(DiagnosticsPhase phase,
org.neo4j.kernel.impl.util.StringLogger log)
Dump the diagnostic information of this DiagnosticsProvider for
the specified phase to the provided
log . |
|
|
get(GraphDatabaseSetting<T> setting)
Retrieve a configuration property. |
|
boolean |
getBoolean(GraphDatabaseSetting.BooleanSetting setting)
Deprecated. |
|
String |
getDiagnosticsIdentifier()
Return an identifier for this DiagnosticsProvider . |
|
double |
getDouble(GraphDatabaseSetting.DoubleSetting setting)
Deprecated. |
|
long |
getDuration(GraphDatabaseSetting.StringSetting setting)
Deprecated. |
|
|
getEnum(Class<T> enumType,
GraphDatabaseSetting.OptionsSetting graphDatabaseSetting)
Deprecated. |
|
float |
getFloat(GraphDatabaseSetting.FloatSetting setting)
Deprecated. |
|
int |
getInteger(GraphDatabaseSetting.IntegerSetting setting)
Deprecated. |
|
Collection<String> |
getKeys()
|
|
long |
getLong(GraphDatabaseSetting.LongSetting setting)
Deprecated. |
|
Map<String,String> |
getParams()
|
|
long |
getSize(GraphDatabaseSetting.StringSetting setting)
Deprecated. |
|
boolean |
isSet(GraphDatabaseSetting<?> graphDatabaseSetting)
|
|
static long |
parseLongWithUnit(String numberWithPotentialUnit)
|
|
void |
removeConfigurationChangeListener(ConfigurationChangeListener listener)
|
|
void |
setLogger(org.neo4j.kernel.impl.util.StringLogger log)
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final String DEFAULT_DATA_SOURCE_NAME
@Deprecated public static final String USE_MEMORY_MAPPED_BUFFERS
@Deprecated public static final String DUMP_CONFIGURATION
@Deprecated public static final String KEEP_LOGICAL_LOGS
@Deprecated public static final String ENABLE_REMOTE_SHELL
@Deprecated public static final String ENABLE_ONLINE_BACKUP
@Deprecated public static final String BACKUP_SLAVE
@Deprecated public static final String READ_ONLY
@Deprecated public static final String STORAGE_DIRECTORY
@Deprecated public static final String REBUILD_IDGENERATORS_FAST
@Deprecated public static final String NODE_STORE_MMAP_SIZE
@Deprecated public static final String ARRAY_PROPERTY_STORE_MMAP_SIZE
@Deprecated public static final String PROPERTY_INDEX_KEY_STORE_MMAP_SIZE
@Deprecated public static final String PROPERTY_INDEX_STORE_MMAP_SIZE
@Deprecated public static final String PROPERTY_STORE_MMAP_SIZE
@Deprecated public static final String STRING_PROPERTY_STORE_MMAP_SIZE
@Deprecated public static final String RELATIONSHIP_STORE_MMAP_SIZE
@Deprecated public static final String LOGICAL_LOG
@Deprecated public static final String NEO_STORE
@Deprecated public static final String CACHE_TYPE
@Deprecated public static final String NODE_CACHE_SIZE
@Deprecated public static final String RELATIONSHIP_CACHE_SIZE
@Deprecated public static final String NODE_CACHE_ARRAY_FRACTION
@Deprecated public static final String RELATIONSHIP_CACHE_ARRAY_FRACTION
@Deprecated public static final String GCR_CACHE_MIN_LOG_INTERVAL
@Deprecated public static final String TXMANAGER_IMPLEMENTATION
@Deprecated public static final String INTERCEPT_COMMITTING_TRANSACTIONS
@Deprecated public static final String INTERCEPT_DESERIALIZED_TRANSACTIONS
@Deprecated public static final String ALLOW_STORE_UPGRADE
@Deprecated public static final String STRING_BLOCK_SIZE
@Deprecated public static final String ARRAY_BLOCK_SIZE
@Deprecated public static final String NODE_KEYS_INDEXABLE
@Deprecated public static final String RELATIONSHIP_KEYS_INDEXABLE
@Deprecated public static final String NODE_AUTO_INDEXING
@Deprecated public static final String RELATIONSHIP_AUTO_INDEXING
@Deprecated public static final String LUCENE_SEARCHER_CACHE_SIZE
@Deprecated public static final String LUCENE_WRITER_CACHE_SIZE
@Deprecated public static final String GC_MONITOR_WAIT_TIME
@Deprecated public static final String GC_MONITOR_THRESHOLD
Constructor Detail |
---|
public Config()
public Config(Map<String,String> inputParams)
public Config(Map<String,String> inputParams, Class<?>... settingsClasses)
public Config(Map<String,String> inputParams, Iterable<Class<?>> settingsClasses)
Method Detail |
---|
public Map<String,String> getParams()
public Collection<String> getKeys()
public boolean isSet(GraphDatabaseSetting<?> graphDatabaseSetting)
public <T> T get(GraphDatabaseSetting<T> setting)
setting
-
public void applyChanges(Map<String,String> newConfiguration)
newConfiguration
- public void setLogger(org.neo4j.kernel.impl.util.StringLogger log)
public void addConfigurationChangeListener(ConfigurationChangeListener listener)
public void removeConfigurationChangeListener(ConfigurationChangeListener listener)
public String getDiagnosticsIdentifier()
DiagnosticsProvider
DiagnosticsProvider
. The result of
this method must be stable, i.e. invoking this method multiple times on
the same object should return equal
strings
.
For DiagnosticsProvider
s where there is only one instance of that
DiagnosticsProvider
, an implementation like this is would be a
sane default, given that the implementing class has a sensible name:
public String getDiagnosticsIdentifier()
{
return getClass().getName();
}
getDiagnosticsIdentifier
in interface DiagnosticsProvider
public void acceptDiagnosticsVisitor(Object visitor)
DiagnosticsProvider
class OperationalStatistics implements DiagnosticsProvider
{
public void acceptDiagnosticsVisitor
( Object
visitor )
{
if ( visitor instanceof OperationalStatisticsVisitor )
{
((OperationalStatisticsVisitor)visitor).visitOperationalStatistics( this );
}
}
}
interface OperationalStatisticsVisitor
{
void visitOperationalStatistics( OperationalStatistics statistics );
}
acceptDiagnosticsVisitor
in interface DiagnosticsProvider
visitor
- the visitor visiting this DiagnosticsProvider
.public void dump(DiagnosticsPhase phase, org.neo4j.kernel.impl.util.StringLogger log)
DiagnosticsProvider
DiagnosticsProvider
for
the specified phase
to the provided
log
.
dump
in interface DiagnosticsProvider
phase
- the phase
to dump information for.log
- the log
to dump information to.public String toString()
toString
in class Object
@Deprecated public boolean getBoolean(GraphDatabaseSetting.BooleanSetting setting)
@Deprecated public int getInteger(GraphDatabaseSetting.IntegerSetting setting)
@Deprecated public long getLong(GraphDatabaseSetting.LongSetting setting)
@Deprecated public double getDouble(GraphDatabaseSetting.DoubleSetting setting)
@Deprecated public float getFloat(GraphDatabaseSetting.FloatSetting setting)
@Deprecated public long getSize(GraphDatabaseSetting.StringSetting setting)
public static long parseLongWithUnit(String numberWithPotentialUnit)
@Deprecated public long getDuration(GraphDatabaseSetting.StringSetting setting)
@Deprecated public <T extends Enum<T>> T getEnum(Class<T> enumType, GraphDatabaseSetting.OptionsSetting graphDatabaseSetting)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |