|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.jbi.component.runtime.RuntimeConfiguration
public class RuntimeConfiguration
Runtime configuration MBean, allow configuration to be changed at run-time
Field Summary | |
---|---|
static CompositeType |
APPVAR_ROW_TYPE
|
static TabularType |
APPVAR_TABULAR_TYPE
|
static String |
CONFIG_THREADS
|
static String |
PERSIST_APPLICATION_VARIABLE_CONFIG_FILE_NAME
|
Fields inherited from interface it.imolinfo.jbi4corba.jbi.component.runtime.RuntimeConfigurationMBean |
---|
CONFIG_APPLICATION_CONFIGURATIONS |
Constructor Summary | |
---|---|
RuntimeConfiguration(String workspaceRoot,
String configSchema,
String configData)
Creates a new instance of InstallerExt |
Method Summary | |
---|---|
void |
addApplicationConfiguration(String name,
CompositeData appConfig)
Add an application configuration. |
void |
addApplicationVariable(String name,
CompositeData appVar)
This operation adds a new applicationvariable. |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
int |
countVariables()
|
void |
deleteApplicationConfiguration(String name)
Delete an application configuration. |
void |
deleteApplicationVariable(String name)
This operation deletes an application variable, if a variable with the specified name does not exist, it's an error. |
TabularData |
getApplicationConfigurations()
Get a Map of all application configurations for the component. |
TabularData |
getApplicationVariables()
Get the Application Variable set for a component. |
MBeanNotificationInfo[] |
getNotificationInfo()
|
Integer |
getOutboundThreads()
|
CompositeType |
queryApplicationConfigurationType()
Get the CompositeType definition for the components application configuration |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
Map |
retrieveApplicationConfigurationsMap()
Retrieves the application configuration map. |
Map<String,String[]> |
retrieveApplicationVariablesMap()
Retrieves the application variables map. |
String |
retrieveConfigurationDisplayData()
Retrieves the configuration display data |
String |
retrieveConfigurationDisplaySchema()
Retrieves the configuration display schema |
void |
setApplicationConfiguration(String name,
CompositeData appConfig)
Update a application configuration. |
void |
setApplicationVariable(String name,
CompositeData appVar)
This operation sets an application variable. |
void |
setOutboundThreads(Integer val)
|
void |
updateApplicationConfigurationsMap(Map appConfigMap)
Updates the application configuration map. |
void |
updateApplicationVariablesMap(Map<String,String[]> map)
Updates the application variable map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_THREADS
public static final String PERSIST_APPLICATION_VARIABLE_CONFIG_FILE_NAME
public static CompositeType APPVAR_ROW_TYPE
public static TabularType APPVAR_TABULAR_TYPE
Constructor Detail |
---|
public RuntimeConfiguration(String workspaceRoot, String configSchema, String configData) throws javax.jbi.JBIException
javax.jbi.JBIException
Method Detail |
---|
public Integer getOutboundThreads()
getOutboundThreads
in interface RuntimeConfigurationMBean
public void setOutboundThreads(Integer val) throws InvalidAttributeValueException, MBeanException
setOutboundThreads
in interface RuntimeConfigurationMBean
val
-
InvalidAttributeValueException
MBeanException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener
in interface NotificationBroadcaster
listener
- filter
- handback
- public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
listener
-
ListenerNotFoundException
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
listener
- filter
- handback
-
ListenerNotFoundException
public CompositeType queryApplicationConfigurationType()
queryApplicationConfigurationType
in interface RuntimeConfigurationMBean
public void addApplicationConfiguration(String name, CompositeData appConfig) throws InvalidAttributeValueException, MBeanException
addApplicationConfiguration
in interface RuntimeConfigurationMBean
name
- - configuration name, must match the value of the field "name" in the namedConfigappConfig
- - application configuration composite
MBeanException
- if the application configuration cannot be added.
InvalidAttributeValueException
public void deleteApplicationConfiguration(String name) throws MBeanException
deleteApplicationConfiguration
in interface RuntimeConfigurationMBean
name
- - identification of the application configuration to be deleted
MBeanException
- if the configuration cannot be deleted.public void setApplicationConfiguration(String name, CompositeData appConfig) throws InvalidAttributeValueException, MBeanException
setApplicationConfiguration
in interface RuntimeConfigurationMBean
name
- - configuration name, must match the value of the field "configurationName" in the appConfigappConfig
- - application configuration composite
MBeanException
- if there are errors encountered when updating the configuration.
InvalidAttributeValueException
public TabularData getApplicationConfigurations()
getApplicationConfigurations
in interface RuntimeConfigurationMBean
public Map retrieveApplicationConfigurationsMap()
RuntimeConfigurationMBean
retrieveApplicationConfigurationsMap
in interface RuntimeConfigurationMBean
public void updateApplicationConfigurationsMap(Map appConfigMap) throws MBeanException
RuntimeConfigurationMBean
updateApplicationConfigurationsMap
in interface RuntimeConfigurationMBean
MBeanException
public String retrieveConfigurationDisplaySchema()
retrieveConfigurationDisplaySchema
in interface RuntimeConfigurationMBean
public String retrieveConfigurationDisplayData()
retrieveConfigurationDisplayData
in interface RuntimeConfigurationMBean
public Map<String,String[]> retrieveApplicationVariablesMap()
RuntimeConfigurationMBean
retrieveApplicationVariablesMap
in interface RuntimeConfigurationMBean
public int countVariables()
countVariables
in interface RuntimeConfigurationMBean
public void updateApplicationVariablesMap(Map<String,String[]> map) throws MBeanException
RuntimeConfigurationMBean
updateApplicationVariablesMap
in interface RuntimeConfigurationMBean
MBeanException
public void addApplicationVariable(String name, CompositeData appVar) throws MBeanException
addApplicationVariable
in interface RuntimeConfigurationMBean
name
- - name of the application variableappVar
- - this is the application variable compoiste
MBeanException
- if an error occurs in adding the application variables to the
component.public void setApplicationVariable(String name, CompositeData appVar) throws MBeanException
setApplicationVariable
in interface RuntimeConfigurationMBean
name
- - name of the application variableappVar
- - this is the application variable compoiste to be updated.
MBeanException
- if one or more application variables cannot be deletedpublic void deleteApplicationVariable(String name) throws MBeanException
deleteApplicationVariable
in interface RuntimeConfigurationMBean
name
- - name of the application variable
MBeanException
- on errors.public TabularData getApplicationVariables()
getApplicationVariables
in interface RuntimeConfigurationMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |