|
Oracle® Fusion Middleware Java API Reference for Event Processing in Oracle Stream Analytics 12c (12.2.1.2.0) E67761-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This MBean manages instances of CQL processors.
An example of using this MBean is given below
ObjectName cqlProcName =
ObjectName.getInstance("com.bea.wlevs:Name=myprocessor,Type=CQLProcessor,Application=myapplication");
CQLProcessorMBean cqlMBean = (CQLProcessorMBean)
MBeanServerInvocationHandler.newProxyInstance(
mbsc,
ObjectName.getInstance(cqlProcName),
CQLProcessorMBean.class,
true);
Map<String,String> rules = cqlMBean.getAllQueries();
The CQLProcessorMBean emits AttributeChangeNotification notifying when a the state of registered queries change from stopped to running and from running to stopped. The source of the notification is an ObjectName containing the property QUERY_PROPERTY_NAME that specifies the query id of the query whose state has changed.
| Inner Class Summary | |
static class |
CQLProcessorMBean.FunctionParameter |
static class |
CQLProcessorMBean.QueryStateChangeValueValue of the query state in the AttributeChangeNotification. |
| Inner classes inherited from class com.bea.wlevs.management.configuration.ProcessorMBean |
ProcessorMBean.RuleConfigParameters, ProcessorMBean.RuleType |
| Field Summary | |
static java.lang.String |
MBEAN_TYPEValue of Type property for this MBean's ObjectName. |
static java.lang.String |
QUERY_PROPERTY_NAMEObjectName property that specifies query whose state has changed in the AttributeChangeNotification. |
| Method Summary | |
abstract void |
addParameters(java.lang.String preparedStatementId, java.lang.String paramsValue)This method binds a new set of parameter values against a parameterized query/view. |
abstract java.lang.String |
addQuery(java.lang.String query)This method will add an CQL query to the designated CQL Processor. |
abstract void |
addQuery(java.lang.String id, java.lang.String query)This method will add an CQL query with a name to the designated CQL Processor. |
abstract void |
addQuery(java.lang.String id, java.lang.String query, boolean active)This method will add an CQL query with a name to the designated CQL Processor. |
abstract void |
addQuery(java.lang.String id, java.lang.String query, boolean active, java.lang.String orderingConstraint, java.lang.String partitionExpression)This method adds an CQL query and configures its ordering constraint. |
abstract void |
addTypeAlias(java.lang.String source, java.lang.String target)This method will add a type alias to the designated CQL Processor. |
abstract java.lang.String |
addView(java.lang.String view)This method will add an CQL view to the designated CQL processor. |
abstract java.lang.String |
addView(java.lang.String view, java.util.List viewSchema)This method will add an CQL query with a name to the designated CQL Processor. |
abstract void |
addView(java.lang.String id, java.lang.String view)This method will add an CQL query with a name to the designated CQL Processor. |
abstract void |
addView(java.lang.String id, java.lang.String view, java.util.List viewSchema)This method will add an CQL query with a name to the designated CQL Processor. |
abstract void |
addView(java.lang.String id, java.lang.String view, java.util.List viewSchema, boolean active)This method will add an CQL view with a name to the designated CQL Processor. |
abstract void |
addView(java.lang.String id, java.lang.String view, java.util.List viewSchema, java.lang.String orderingConstraint, java.lang.String partitionExpression)This method will add an CQL view with a name to the designated CQL Processor. |
abstract void |
bindParameters(java.lang.String preparedStatementId, java.lang.String paramsId, java.lang.String paramsValue)This method binds a new set of named parameter values against a parameterized query/view. |
abstract void |
deleteAllQueries()This methods deletes all queries that has been configured in the CQL Processor. |
abstract void |
deleteAllViews()This methods deletes all views that have been configured in the CQL Processor. |
abstract void |
deleteTypeAlias(java.lang.String source)This method will delete a type alias to the designated CQL Processor. |
abstract java.lang.String[] |
getAllBoundParameterNames(java.lang.String preparedStatementId)This method returns the names of the bound parameters which are bound to a rule identified by the preparedStatementId argument. |
abstract java.util.Map |
getAllBoundParameters(java.lang.String preparedStatementId)This method retrieves all parameter values for a parameterized query identified by the preparedStatementId argument. |
abstract java.util.Map |
getAllFunctionsInfo()Returns all user defined functions that have been associated to this processor, possibly through the wlevs:function tag in the EPN assembly configuration file. |
abstract java.util.Map |
getAllQueries()This method fetches all the queries in this processor. |
abstract java.util.Map |
getAllQueriesInfo()Returns all the queries configured for this processor along with all the information about the queries. |
abstract java.util.Map |
getAllViews()This method fetches all the views in this processor. |
abstract java.util.Map |
getAllViewsInfo()Returns all the views configured for this processor along with all the information about the views. |
abstract java.lang.String |
getBoundParameters(java.lang.String preparedStatementId, java.lang.String paramsId)This method retrieves the set of parameter values with the given name for a parameterized query identified by the preparedStatementId argument. |
abstract java.util.Set |
getEventPropertyNamesForQuerySources(java.lang.String queryId)This method returns the property names for all sources referenced by the query. |
abstract java.util.Set |
getEventPropertyNamesForViewSources(java.lang.String viewId)This method returns the property names for all sources referenced by the view. |
abstract int |
getNumberOfBoundParameters(java.lang.String preparedStatementId)This method returns the number of bound parameters which are bound for the rule identified by the preparedStatementId argument. |
abstract java.util.Map |
getTypeAliases()This method fetches all the aliases in this processor. |
abstract java.util.Map |
getView(java.lang.String id)This method fetches a view with the given id. |
abstract java.util.Map |
getViews(java.lang.String[] ids)This method fetches a set of views with the given ids. |
abstract void |
replaceAllBoundParameters(java.lang.String preparedStatementId, java.lang.String[] paramsIds, java.lang.String[] newParamsValues)This method replaces all parameter values for a parameterized query identified by the ruleId argument with the parameter values provided. |
abstract void |
replaceBoundParameters(java.lang.String preparedStatementId, java.lang.String paramsId, java.lang.String newParamsValue)This method replaces single parameter values for a parameterized query identified by the ruleId argument. |
abstract void |
replaceQuery(java.lang.String id, java.lang.String query)Replaces the query string on the query with the specified id. |
abstract void |
replaceQuery(java.lang.String id, java.lang.String query, java.lang.String orderingConstraint, java.lang.String partitionExpression)Replaces the query string on the query with the specified id. |
abstract void |
replaceTypeAlias(java.lang.String source, java.lang.String target)This method will replace an existing alias of the type. |
abstract void |
replaceView(java.lang.String id, java.lang.String view, java.util.List viewSchema)This method will replace an existing view by another view. |
abstract void |
replaceView(java.lang.String id, java.lang.String view, java.util.List viewSchema, java.lang.String orderingConstraint, java.lang.String partitionExpression)This method will replace an existing view by another view. |
abstract void |
unbindAllParameters(java.lang.String preparedStatementId)This method deletes or unbind all parameter values for the parameterized query identified by the ruleId argument. |
abstract void |
unbindParameters(java.lang.String preparedStatementId, java.lang.String paramsId)This method deletes or unbind the named set of parameter values for the parameterized query identified by the ruleId argument. |
| Methods inherited from interface com.bea.wlevs.management.configuration.ProcessorMBean |
addRule, addRule, addRule, addRules, deleteAllRules, deleteRule, deleteRules, downloadRules, getAllRules, getAllRulesInfo, getRule, getRules, isRuleStarted, replaceRule, replaceRules, startRule, stopRule, uploadRules, uploadRules |
| Methods inherited from interface com.bea.wlevs.management.configuration.StageMBean |
configurePlayback, configurePlaybackWithDuration, configureRecord, configureRecordWithDuration, getPlaybackConfiguration, getRecordConfiguration, getRecordPlayback, 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
public static final java.lang.String QUERY_PROPERTY_NAME
| Method Detail |
public java.lang.String addQuery(java.lang.String query)
throws javax.management.JMException
query -
public void addQuery(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 CQL syntax
public void addQuery(java.lang.String id,
java.lang.String query,
boolean active)
throws javax.management.JMException
id - A String which has the name of the queryquery - A String representing a query in CQL syntaxactive - indicates if the rule should be started and ready to process events
public void addQuery(java.lang.String id,
java.lang.String query,
boolean active,
java.lang.String orderingConstraint,
java.lang.String partitionExpression)
throws javax.management.JMException
id - A String which has the name of the queryquery - A String representing a query in CQL syntaxactive - indicates if the rule should be started and ready to process eventsorderingConstraint - String representation of the application's schema type OrderingConstraintpartitionExpression - String representation of expression to be used for ordered_per_partition option.
public void replaceQuery(java.lang.String id,
java.lang.String query,
java.lang.String orderingConstraint,
java.lang.String partitionExpression)
throws javax.management.JMException
id - A String which has the name of the queryquery - A String representing the new query in CQL syntaxorderingConstraint - String representation of the application's schema type OrderingConstraintpartitionExpression - String representation of expression to be used for ordered_per_partition option.
public void replaceQuery(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 the new query in CQL syntax
public java.util.Map getAllQueries()
throws javax.management.JMException
public java.util.Map getAllQueriesInfo()
throws javax.management.JMException
public void deleteAllQueries()
throws javax.management.JMException
public java.lang.String addView(java.lang.String view)
throws javax.management.JMException
view -
public void addView(java.lang.String id,
java.lang.String view)
throws javax.management.JMException
id- - A String which has the name of the viewview - - A String representing a view in CQL syntax
public java.lang.String addView(java.lang.String view,
java.util.List viewSchema)
throws javax.management.JMException
view - - A String representing a view in CQL syntaxviewSchema - - A list of tokens representing the column name for the view
public void addView(java.lang.String id,
java.lang.String view,
java.util.List viewSchema)
throws javax.management.JMException
id- - A String which has the name of the viewview - - A String representing a view in CQL syntaxviewSchema - - A list of tokens representing the column name for the view
public void addView(java.lang.String id,
java.lang.String view,
java.util.List viewSchema,
boolean active)
throws javax.management.JMException
id - A String which has the name of the viewview - A String representing a view in CQL syntaxviewSchema - A list of tokens representing the column name for the viewactive - Flag indicating if the view should be started and ready
public void addView(java.lang.String id,
java.lang.String view,
java.util.List viewSchema,
java.lang.String orderingConstraint,
java.lang.String partitionExpression)
throws javax.management.JMException
id - A String which has the name of the viewview - A String representing a view in CQL syntaxviewSchema - A list of tokens representing the column name for the vieworderingConstraint - String representation of the application's schema type OrderingConstraintpartitionExpression - String representation of expression to be used for ordered_per_partition option.
public void replaceView(java.lang.String id,
java.lang.String view,
java.util.List viewSchema)
throws javax.management.JMException
id - - A String which has the id of the viewquery- - A String representing a view in CQL syntax
public void replaceView(java.lang.String id,
java.lang.String view,
java.util.List viewSchema,
java.lang.String orderingConstraint,
java.lang.String partitionExpression)
throws javax.management.JMException
id - - A String which has the id of the viewquery- - A String representing a view in CQL syntaxorderingConstraint - String representation of the application's schema type OrderingConstraintpartitionExpression - String representation of expression to be used for ordered_per_partition option.
public java.util.Map getView(java.lang.String id)
throws javax.management.JMException
id - - A string which represents the id of the view
public java.util.Map getViews(java.lang.String[] ids)
throws javax.management.JMException
id - - A array of strings which represents the id of the views
public java.util.Map getAllViews()
throws javax.management.JMException
public java.util.Map getAllViewsInfo()
throws javax.management.JMException
public void deleteAllViews()
throws javax.management.JMException
public java.util.Map getAllFunctionsInfo()
throws javax.management.JMException
wlevs:function tag in the EPN assembly configuration file.FunctionParameter, and the values are defined by the enumeration.
public void addTypeAlias(java.lang.String source,
java.lang.String target)
throws javax.management.JMException
source- - Alias stringtarget- - destination string of the alias i.e. complete type string
public void deleteTypeAlias(java.lang.String source)
throws javax.management.JMException
source- - Alias string
public void replaceTypeAlias(java.lang.String source,
java.lang.String target)
throws javax.management.JMException
source- - Alias stringtarget- - destination string of the alias i.e. complete type string
public java.util.Map getTypeAliases()
throws javax.management.JMException
public void addParameters(java.lang.String preparedStatementId,
java.lang.String paramsValue)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.paramsId - Identifier for the set of parameter values.paramsValue - comma separated string of parameter values to bind against parameterized query.
public void bindParameters(java.lang.String preparedStatementId,
java.lang.String paramsId,
java.lang.String paramsValue)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.paramsId - Identifier for the set of parameter values.paramsValue - comma separated string of parameter values to bind against parameterized query.
public void replaceBoundParameters(java.lang.String preparedStatementId,
java.lang.String paramsId,
java.lang.String newParamsValue)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.paramsId - String identifier for parameter name or old parameter valuenewParamsValue - new String parameter value to bind against parameterized query.
public void replaceAllBoundParameters(java.lang.String preparedStatementId,
java.lang.String[] paramsIds,
java.lang.String[] newParamsValues)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.paramsIds - String array defining the identifier for each parameterized value set.newParamsValues - String array of comma separated parameter value sets to bind against parameterized query.
public void unbindParameters(java.lang.String preparedStatementId,
java.lang.String paramsId)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.paramsId - String identifier of parameter values.
public void unbindAllParameters(java.lang.String preparedStatementId)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.
public java.lang.String getBoundParameters(java.lang.String preparedStatementId,
java.lang.String paramsId)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.paramsId - name of parameter values.
public java.util.Map getAllBoundParameters(java.lang.String preparedStatementId)
throws javax.management.JMException
preparedStatementId - identifier of parameterized query.
public int getNumberOfBoundParameters(java.lang.String preparedStatementId)
throws javax.management.JMException
preparedStatementId - A string which represents the id of the rule
public java.lang.String[] getAllBoundParameterNames(java.lang.String preparedStatementId)
throws javax.management.JMException
preparedStatementId - A String which represents the id of the rule.
public java.util.Set getEventPropertyNamesForQuerySources(java.lang.String queryId)
throws javax.management.JMException
select * from S, where S is defined as a stream of the event type 'String a, String b', this method would return a set containing the Strings 'a' and 'b'.queryId - The string representing the id of a queryqueryId
public java.util.Set getEventPropertyNamesForViewSources(java.lang.String viewId)
throws javax.management.JMException
select * from S, where S is defined as a stream of the event type 'String a, String b', this method would return a set containing the Strings 'a' and 'b'.viewId - The string representing the id of a viewviewId
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||