public interface ConfigurationManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HOBSON_HOME |
Modifier and Type | Method and Description |
---|---|
void |
deleteHubConfiguration(HubContext ctx)
Deletes the configuration associated with a Hub.
|
java.util.Map<java.lang.String,java.lang.Object> |
getDeviceConfiguration(DeviceContext ctx)
Retrieves a specific device's configuration.
|
java.lang.Object |
getDeviceConfigurationProperty(DeviceContext ctx,
java.lang.String name)
Retrieves a specific device's configuration property.
|
java.util.Map<java.lang.String,java.lang.Object> |
getHubConfiguration(HubContext ctx)
Returns the configuration associated with a Hub.
|
java.lang.Object |
getHubConfigurationProperty(HubContext ctx,
java.lang.String name)
Returns a configuration property associated with a Hub.
|
java.util.Map<java.lang.String,java.lang.Object> |
getLocalPluginConfiguration(PluginContext ctx)
Returns the configuration for a local plugin.
|
void |
setDeviceConfigurationProperties(DeviceContext ctx,
java.util.Map<java.lang.String,java.lang.Object> values)
Sets a device's configuration.
|
void |
setDeviceConfigurationProperty(DeviceContext ctx,
java.lang.String name,
java.lang.Object value)
Sets a single property of a device's configuration.
|
void |
setHubConfiguration(HubContext ctx,
java.util.Map<java.lang.String,java.lang.Object> config)
Sets the configuration associated with a Hub.
|
void |
setLocalPluginConfiguration(PluginContext ctx,
java.util.Map<java.lang.String,java.lang.Object> config)
Sets the configuration for a local plugin.
|
void |
setLocalPluginConfigurationProperty(PluginContext ctx,
java.lang.String name,
java.lang.Object value)
Sets a configuration property for a local plugin.
|
static final java.lang.String HOBSON_HOME
void deleteHubConfiguration(HubContext ctx)
ctx
- the context of the hubjava.util.Map<java.lang.String,java.lang.Object> getDeviceConfiguration(DeviceContext ctx)
ctx
- the device contextjava.lang.Object getDeviceConfigurationProperty(DeviceContext ctx, java.lang.String name)
ctx
- the device contextname
- the property namejava.util.Map<java.lang.String,java.lang.Object> getHubConfiguration(HubContext ctx)
ctx
- the context of the hubjava.lang.Object getHubConfigurationProperty(HubContext ctx, java.lang.String name)
ctx
- the context of the hubname
- the name of the propertyjava.util.Map<java.lang.String,java.lang.Object> getLocalPluginConfiguration(PluginContext ctx)
ctx
- the plugin contextvoid setDeviceConfigurationProperties(DeviceContext ctx, java.util.Map<java.lang.String,java.lang.Object> values) throws java.io.NotSerializableException
ctx
- the device contextvalues
- the configuration property valuesjava.io.NotSerializableException
- if a configuration value is not serializablevoid setDeviceConfigurationProperty(DeviceContext ctx, java.lang.String name, java.lang.Object value) throws java.io.NotSerializableException
ctx
- the device contextname
- the configuration property namevalue
- the configuration property valuejava.io.NotSerializableException
- if a configuration value is not serializablevoid setHubConfiguration(HubContext ctx, java.util.Map<java.lang.String,java.lang.Object> config) throws java.io.NotSerializableException
ctx
- the context of the hubconfig
- the configuration to setjava.io.NotSerializableException
- if a configuration value is not serializablevoid setLocalPluginConfiguration(PluginContext ctx, java.util.Map<java.lang.String,java.lang.Object> config) throws java.io.NotSerializableException
ctx
- the plugin contextconfig
- the new configurationjava.io.NotSerializableException
- if a configuration value is not serializablevoid setLocalPluginConfigurationProperty(PluginContext ctx, java.lang.String name, java.lang.Object value) throws java.io.NotSerializableException
ctx
- the plugin contextname
- the configuration property namevalue
- the configuration property valuejava.io.NotSerializableException
- if a configuration value is not serializableCopyright © 2015 Whizzo Software LLC. All rights reserved.