org.apache.blur
Class BlurConfiguration
java.lang.Object
org.apache.blur.BlurConfiguration
- All Implemented Interfaces:
- Cloneable
public class BlurConfiguration
- extends Object
- implements Cloneable
The default constructor, which loads site defaults should nearly always be
used. Instantiating a BlurConfiguration without defaults is rarely necessary
and should generally be avoided.
Method Summary |
BlurConfiguration |
clone()
|
String |
get(String name)
|
String |
get(String name,
String defaultValue)
|
boolean |
getBoolean(String name,
boolean defaultValue)
|
double |
getDouble(String name,
double defaultValue)
|
int |
getInt(String name,
int defaultValue)
|
long |
getLong(String name,
long defaultValue)
|
Map<String,String> |
getProperties()
|
short |
getShort(String name,
short defaultValue)
|
static void |
main(String[] args)
|
void |
set(String name,
String value)
|
void |
setBoolean(String name,
boolean value)
|
void |
setInt(String name,
int value)
|
void |
setLong(String name,
long value)
|
void |
setShort(String name,
short value)
|
BlurConfiguration
public BlurConfiguration()
throws IOException
- Create a BlurConfiguration including default properties.
- Throws:
IOException
BlurConfiguration
public BlurConfiguration(boolean loadDefaults)
throws IOException
- Parameters:
loadDefaults
- - false to load without default properties set.
- Throws:
IOException
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
getProperties
public Map<String,String> getProperties()
get
public String get(String name)
get
public String get(String name,
String defaultValue)
getInt
public int getInt(String name,
int defaultValue)
getLong
public long getLong(String name,
long defaultValue)
getShort
public short getShort(String name,
short defaultValue)
set
public void set(String name,
String value)
setInt
public void setInt(String name,
int value)
setLong
public void setLong(String name,
long value)
setShort
public void setShort(String name,
short value)
getBoolean
public boolean getBoolean(String name,
boolean defaultValue)
setBoolean
public void setBoolean(String name,
boolean value)
getDouble
public double getDouble(String name,
double defaultValue)
clone
public BlurConfiguration clone()
- Overrides:
clone
in class Object
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.