|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This MBean will manage instances of epl processor whose configuration has been derived from
com.bea.wlevs.configuration.application.DefaultProcessorConfig schema. All the
attributes and operations of this MBean wraps around this schema type.
An example of using this MBean is given below
ObjectName eplName =
ObjectName.getInstance("com.bea.wlevs:Name=myprocessor,Type=EPLProcessor,Application=myapplication");
EPLProcessorMBean eplMBean = (EPLProcessorMBean)
MBeanServerInvocationHandler.newProxyInstance(
mbsc,
ObjectName.getInstance(eplName),
EPLProcessorMBean.class,
true);
Map rules = eplMBean.getAllRules();
//other operations
...
...
| Field Summary | |
static java.lang.String |
MBEAN_TYPE
|
| Method Summary | |
void |
addDatabase(java.lang.String databaseName,
java.lang.String datasourceName)
This method add a database to this processor's configuration. |
void |
addParams(java.lang.String ruleId,
java.lang.String values)
This method adds a new set of unnamed parameter values to be bound against a parameterized query. |
void |
addParams(java.lang.String ruleId,
java.lang.String values,
java.lang.String paramsName)
This method adds a new set or replaces an existing set of named parameter values to be bound against a parameterized query. |
java.lang.String |
addRule(java.lang.String query)
This method will add an EPL rule to the designated EPL Processor. |
void |
addRule(java.lang.String id,
java.lang.String query)
This method will add an EPL rule with a name to the designated EPL Processor. |
java.util.Map |
addRules(java.util.Map rules)
This method adds a set of EPL queries to the designated EPL Processor. |
void |
deleteAllRules()
This methods deletes all rules that has been configured in the EPL Processor. |
void |
deleteDatabase(java.lang.String databaseName)
This method delete a database from this processor's configuration. |
void |
deleteParams(java.lang.String ruleId)
This method deletes all parameter values for the parameterized query identified by the ruleId argument. |
void |
deleteParams(java.lang.String ruleId,
java.lang.String paramsName)
This method deletes the named set of parameter values for the parameterized query identified by the ruleId argument. |
void |
deleteRule(java.lang.String id)
This method deletes a rule from the EPL Processor with the given rule id. |
void |
deleteRules(java.lang.String[] ids)
This method deletes all rules with the given ids. |
java.lang.String |
downloadRules()
This method returns in XML format all rules and any parameter values associated with parameterized queries in the designated EPL Proessor. |
java.util.Map |
getAllRules()
This method fetches all the rules that has been configured in the designated EPL Proessor. |
java.util.Map |
getDatabases()
This method retrieve the databases configured with this processor. |
java.lang.String[] |
getParams(java.lang.String ruleId)
This method retrieves all parameter values for a parameterized query identified by the ruleId argument. |
java.lang.String |
getParams(java.lang.String ruleId,
java.lang.String paramsName)
This method retrieves the set of parameter values with the given name for a parameterized query identified by the ruleId argument. |
int |
getParamsCount(java.lang.String ruleId)
This method returns the number of parameters which must be bound for the rule identified by the ruleId argument. |
java.lang.String |
getRule(java.lang.String id)
This method fetches a rule with the given id. |
java.util.Map |
getRules(java.lang.String[] ids)
This method fetches the rules for ids that are in the array. |
void |
replaceParams(java.lang.String ruleId,
java.lang.String[] values)
This method replaces all parameter values for a parameterized query identified by the ruleId argument with the parameter values provided. |
void |
replaceParams(java.lang.String ruleId,
java.lang.String[] values,
java.lang.String[] paramsNames)
This method replaces all parameter values for a parameterized query identified by the ruleId argument. |
void |
replaceRule(java.lang.String id,
java.lang.String query)
This method will replace an existing EPL rule by another rule. |
java.util.Map |
replaceRules(java.util.Map rules)
This method will replace several existing EPL rules. |
java.util.Map |
uploadRules(java.util.Map rules)
This method uploads a collection of EPL queries to the designated EPL processor. |
java.util.Map |
uploadRules(java.lang.String configXML)
This method uploads a collection of EPL queries and associated parameter value bindings to the designated EPL processor. |
| Methods inherited from interface com.bea.wlevs.management.configuration.StageMBean |
configurePlayback,
configurePlaybackWithDuration,
configureRecord,
configureRecordWithDuration,
getPlaybackConfiguration,
getRecordConfiguration,
isPlayingBack,
isRecording,
startPlayback,
startRecording,
stopPlayback,
stopRecording |
| Methods inherited from interface com.bea.wlevs.management.WebLogicMBean |
getName,
getObjectName,
getType |
| Methods inherited from interface javax.management.NotificationEmitter |
removeNotificationListener |
| Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener,
getNotificationInfo,
removeNotificationListener |
| Field Detail |
public static final java.lang.String MBEAN_TYPE
| Method Detail |
public java.lang.String addRule(java.lang.String query)
throws javax.management.JMException
query - - An epl rule
public void addRule(java.lang.String id,
java.lang.String query)
throws javax.management.JMException
id- - A String which has the name of the queryquery- - A String representing a query in EPL Syntax
public java.util.Map addRules(java.util.Map rules)
throws javax.management.JMException
rules - - A Map containg the queries with their names.
public void replaceRule(java.lang.String id,
java.lang.String query)
throws javax.management.JMException
id- - A String which has the name of the queryquery- - A String representing a query in EPL Syntax
public java.util.Map replaceRules(java.util.Map rules)
throws javax.management.JMException
rules - - A Map containg the queries with their names.
public java.util.Map uploadRules(java.util.Map rules)
throws javax.management.JMException
rules - - A Map containing queries with their names
public java.util.Map uploadRules(java.lang.String configXML)
throws javax.management.JMException
configXML - - A String in XML format of all all rules and
associated parameter bindings valid against the processor
configuration schema.
public java.lang.String downloadRules()
throws javax.management.JMException
public java.lang.String getRule(java.lang.String id)
throws javax.management.JMException
id - - A string which represents the id of the rule
public java.util.Map getRules(java.lang.String[] ids)
throws javax.management.JMException
ids - - An array of rule ids.
public java.util.Map getAllRules()
throws javax.management.JMException
public void deleteRule(java.lang.String id)
throws javax.management.JMException
id- - A String which represents the rule-id
public void deleteRules(java.lang.String[] ids)
throws javax.management.JMException
ids- - A String array of ids to be deleted from the EPL Processor
public void deleteAllRules()
throws javax.management.JMException
public void addParams(java.lang.String ruleId,
java.lang.String values,
java.lang.String paramsName)
throws javax.management.JMException
ruleId - identifier of parameterized query.values - comma separated string of parameter values to bind
against parameterized query.paramsName - name for the set of parameter values.
public void addParams(java.lang.String ruleId,
java.lang.String values)
throws javax.management.JMException
ruleId - identifier of parameterized query.values - comma separated string of parameter values to bind
against parameterized query.
public void replaceParams(java.lang.String ruleId,
java.lang.String[] values,
java.lang.String[] paramsNames)
throws javax.management.JMException
ruleId - identifier of parameterized query.values - String array of comma separated parameter value sets
to bind against parameterized query.paramsNames - String array defining the identifier for each
parameterized value set.
public void replaceParams(java.lang.String ruleId,
java.lang.String[] values)
throws javax.management.JMException
ruleId - identifier of parameterized query.values - String array of comma separated parameter value sets
to bind against parameterized query.
public void deleteParams(java.lang.String ruleId,
java.lang.String paramsName)
throws javax.management.JMException
ruleId - identifier of parameterized query.paramsName - name of parameter values.
public void deleteParams(java.lang.String ruleId)
throws javax.management.JMException
ruleId - identifier of parameterized query.
public java.lang.String getParams(java.lang.String ruleId,
java.lang.String paramsName)
throws javax.management.JMException
ruleId - identifier of parameterized query.paramsName - name of parameter values.
public java.lang.String[] getParams(java.lang.String ruleId)
throws javax.management.JMException
ruleId - identifier of parameterized query.
public int getParamsCount(java.lang.String ruleId)
throws javax.management.JMException
ruleId - A string which represents the id of the rule
public void addDatabase(java.lang.String databaseName,
java.lang.String datasourceName)
throws javax.management.JMException
databaseName - A string which represents the database name.datasourceName - A string which represents a datasource name.
public void deleteDatabase(java.lang.String databaseName)
throws javax.management.JMException
databaseName - A string represents the database to be deleted.
public java.util.Map getDatabases()
throws javax.management.JMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||