|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.MBeanBroker
org.norther.tammi.core.config.MBeanConfig
org.norther.tammi.core.startup.MBeanStartup
public class MBeanStartup
Extends MBean config by providing startup configuration support for scripts.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.MBeanBroker |
|---|
MBEAN_BROKER |
| Constructor Summary | |
|---|---|
MBeanStartup()
Constructs a new config. |
|
MBeanStartup(MBeanServer server)
Constructs a new config for a specific server. |
|
| Method Summary | |
|---|---|
void |
addProperty(int index,
String key,
String value)
Inserts a multivalued property at the specified index. |
void |
addProperty(String key,
String value)
Adds a multivalued property. |
void |
clearProperties()
Clears all properties. |
boolean |
containsProperty(String key)
Checks whether a property is defined. |
Configuration |
getConfiguration()
Gets the startup configuration. |
Configuration |
getConfiguration(String prefix)
Gets the prefixed startup configuration. |
String[] |
getProperties(String key)
Gets a multivalued property. |
String |
getProperty(String key)
Gets a property. |
String |
getPropertyFilePath()
Gets the property file path. |
protected Startup |
getStartup()
Gets the startup. |
int |
indexOfProperty(String key,
String value)
Returns the index of a multivalued property value. |
Object |
removeProperty(String key)
Removes a property. |
boolean |
removeProperty(String key,
String value)
Removes a multivalued property. |
Object |
setProperties(String key,
String[] values)
Sets a multivalued property. |
Object |
setProperty(String key,
String value)
Sets a property. |
void |
setPropertyFilePath(String path)
Sets the property file path. |
void |
setPropertyFilePath(String path,
String encoding)
Sets the property file path with encoding. |
void |
storeProperties()
Stores properties to the property file. |
| Methods inherited from class org.norther.tammi.core.config.MBeanConfig |
|---|
configure, configure, configure, configure, convert, convert, copy, copy, getConfigurator, setConverter, setConverter |
| Methods inherited from class org.norther.tammi.core.base.MBeanBroker |
|---|
adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, adapt, create, create, create, create, create, create, create, create, create, find, find, find, find, findName, findName, findName, findName, findNames, findNames, findNames, findNames, findNames, findNames, get, get, get, get, getAllDomains, getBroker, getClassName, getClassName, getDefaultDomain, getDomain, getDomainName, getDomainNames, getFactory, getInfo, getInfo, getLoader, getLog, getMBeanServer, getPackage, getPackages, getSystemProperty, instantiate, instantiate, instantiate, invoke, invoke, invoke, invoke, invoke, invoke, isDefined, isInstanceOf, isInstanceOf, isRegistered, isRegistered, load, register, register, register, register, set, set, set, set, set, set, setAlias, setAlias, setFactory, setFactory, setMBeanServer, setSystemProperty, toObjectName, toPackageName, unregister, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanStartup()
public MBeanStartup(MBeanServer server)
server - the MBean server.| Method Detail |
|---|
public String getPropertyFilePath()
public void setPropertyFilePath(String path)
path - a property file path.
public void setPropertyFilePath(String path,
String encoding)
path - a property file path.encoding - the encoding to use.public boolean containsProperty(String key)
key - the key.
public String getProperty(String key)
key - the key.
public Object setProperty(String key,
String value)
key - the key.value - the value.
public String[] getProperties(String key)
key - the key.
public Object setProperties(String key,
String[] values)
key - the key.values - the values.
public Object removeProperty(String key)
key - the key.
public int indexOfProperty(String key,
String value)
key - the key.value - the value.
public void addProperty(String key,
String value)
key - the key.value - the property.
public void addProperty(int index,
String key,
String value)
index - the index.key - the key.value - the value.
public boolean removeProperty(String key,
String value)
key - the key.value - the value.
public void clearProperties()
public void storeProperties()
throws IOException
IOException - on I/O errors.public Configuration getConfiguration()
public Configuration getConfiguration(String prefix)
prefix - the prefix.
protected Startup getStartup()
IllegalStateException - if not available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||