Package | Description |
---|---|
org.torproject.collector.conf | |
org.torproject.collector.cron |
Modifier and Type | Method and Description |
---|---|
static Key |
Key.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Key[] |
Key.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Configuration.getBool(Key key)
Returns a
boolean property (case insensitiv), e.g. |
int |
Configuration.getInt(Key key)
Parse an integer property and translate the String
"inf" into Integer.MAX_VALUE. |
long |
Configuration.getLong(Key key)
Parse a long property.
|
java.nio.file.Path |
Configuration.getPath(Key key)
Returns a
Path property, e.g. |
java.util.Set<SourceType> |
Configuration.getSourceTypeSet(Key key)
Returns a
SourceType as List, e.g. |
java.lang.String[] |
Configuration.getStringArray(Key key)
Returns
String[] from a property. |
java.lang.String[][] |
Configuration.getStringArrayArray(Key key)
Returns
String[][] from a property. |
java.net.URL |
Configuration.getUrl(Key key)
Returns a
URL property, e.g. |
java.net.URL[] |
Configuration.getUrlArray(Key key)
Returns
URL[] from a property. |
Modifier and Type | Method and Description |
---|---|
void |
Scheduler.scheduleModuleRuns(java.util.Map<Key,java.lang.Class<? extends CollecTorMain>> collecTorMains,
Configuration conf)
Schedule all classes given according to the parameters in the
the configuration.
|