|
|||||||||
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); Maprules = eplMBean.getAllRules(); //other operations ... ...
Field Summary | |
static String |
OBJECT_NAME
|
Method Summary | |
String |
addRule(String query)
This method will add an EPL rule to the designated EPL Processor. |
void |
addRule(String id,
String query)
This method will add an EPL rule with a name to the designated EPL Processor. |
Map |
addRules(Map rules)
This method adds a bunch of EPL queries to the designated EPL Processor. |
void |
deleteAllRules()
This methods deletes all rules that has been configured in the EPL Processor. |
void |
deleteRule(String id)
This method deletes a rule from the EPL Processor with the given rule id. |
void |
deleteRules(String[] ids)
This method deletes all rules with the given ids. |
Map |
getAllRules()
This method fetches all the rules that has been configured in the designated EPL Proessor. |
String |
getRule(String id)
This method fetches a rule with the given id. |
Map |
getRules(String[] ids)
This method fetches the rules for ids that are in the array. |
Map |
uploadRules(Map rules)
This method uploads a collection of EPL queries to the designated EPL processor. |
Methods inherited from interface com.bea.wlevs.management.configuration.StageMBean |
createMonitoringMetricAvgLatency,
createMonitoringMetricAvgLatencyThreshold,
createMonitoringMetricAvgThroughput,
createMonitoringMetricAvgThroughput,
createMonitoringMetricAvgThroughput,
createMonitoringMetricMaxLatency,
disableMonitoring,
enableMonitoring,
getStageType,
monitored |
Methods inherited from interface com.bea.wlevs.management.WebLogicMBean |
getMBeanInfo,
getName,
getObjectName,
getType,
isRegistered |
Field Detail |
public static final String OBJECT_NAME
Method Detail |
public String addRule(String query) throws InstanceNotFoundException, JMException, MBeanOperationsException
query
- - An epl rulepublic void addRule(String id, String query) throws InstanceNotFoundException, JMException, MBeanOperationsException
id-
- A String which has the name of the queryquery-
- A String representing a query in EPL Syntaxpublic Map addRules(Map rules) throws InstanceNotFoundException, JMException, MBeanOperationsException
rules
- - A Map containg the queries with their names.public Map uploadRules(Map rules) throws InstanceNotFoundException, JMException, MBeanOperationsException
rules
- - A Map containing queries with their namespublic String getRule(String id) throws InstanceNotFoundException, JMException, MBeanOperationsException
id
- - A string which represents the id of the rulepublic Map getRules(String[] ids) throws InstanceNotFoundException, JMException, MBeanOperationsException
ids
- - An array of rule ids.public Map getAllRules() throws InstanceNotFoundException, JMException, MBeanOperationsException
public void deleteRule(String id) throws InstanceNotFoundException, JMException, MBeanOperationsException
id-
- A String which represents the rule-idpublic void deleteRules(String[] ids) throws InstanceNotFoundException, JMException, MBeanOperationsException
ids-
- A String array of ids to be deleted from the EPL Processorpublic void deleteAllRules() throws InstanceNotFoundException, JMException, MBeanOperationsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |