public class RuleSet extends Object implements Serializable
Constructor and Description |
---|
RuleSet() |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(int index,
String vEvent) |
void |
addEvent(String vEvent) |
void |
addGlobal(Global vGlobal) |
void |
addGlobal(int index,
Global vGlobal) |
void |
addRuleFile(int index,
String vRuleFile) |
void |
addRuleFile(String vRuleFile) |
CorrelationEngine |
constructEngine(org.springframework.core.io.Resource basePath,
org.springframework.context.ApplicationContext appContext,
EventIpcManager eventIpcManager,
com.codahale.metrics.MetricRegistry metricRegistry) |
Enumeration<String> |
enumerateEvent()
Method enumerateEvent.
|
Enumeration<Global> |
enumerateGlobal()
Method enumerateGlobal.
|
Enumeration<String> |
enumerateRuleFile()
Method enumerateRuleFile.
|
boolean |
equals(Object obj) |
String |
getAppContext()
Returns the value of field 'appContext'.
|
String |
getAssertBehaviour() |
String |
getConfigLocation() |
String[] |
getEvent()
Method getEvent.Returns the contents of the collection in an Array.
|
String |
getEvent(int index)
Method getEvent.
|
List<String> |
getEventCollection()
Method getEventCollection.Returns a reference to '_eventList'.
|
int |
getEventCount()
Method getEventCount.
|
String |
getEventProcessingMode() |
Global[] |
getGlobal()
Method getGlobal.Returns the contents of the collection in an Array.
|
Global |
getGlobal(int index)
Method getGlobal.
|
List<Global> |
getGlobalCollection()
Method getGlobalCollection.Returns a reference to '_globalList'.
|
int |
getGlobalCount()
Method getGlobalCount.
|
Map<String,Object> |
getGlobals(org.springframework.context.ApplicationContext context) |
List<String> |
getInterestingEvents() |
String |
getName()
Returns the value of field 'name'.
|
Boolean |
getPersistState() |
org.springframework.core.io.Resource |
getResource(org.springframework.core.io.ResourceLoader resourceLoader,
String resourcePath) |
String[] |
getRuleFile()
Method getRuleFile.Returns the contents of the collection in an Array.
|
String |
getRuleFile(int index)
Method getRuleFile.
|
List<String> |
getRuleFileCollection()
Method getRuleFileCollection.Returns a reference to '_ruleFileList'.
|
int |
getRuleFileCount()
Method getRuleFileCount.
|
List<org.springframework.core.io.Resource> |
getRuleResources(org.springframework.core.io.ResourceLoader resourceLoader) |
int |
hashCode() |
Iterator<String> |
iterateEvent()
Method iterateEvent.
|
Iterator<Global> |
iterateGlobal()
Method iterateGlobal.
|
Iterator<String> |
iterateRuleFile()
Method iterateRuleFile.
|
void |
removeAllEvent() |
void |
removeAllGlobal() |
void |
removeAllRuleFile() |
boolean |
removeEvent(String vEvent)
Method removeEvent.
|
String |
removeEventAt(int index)
Method removeEventAt.
|
boolean |
removeGlobal(Global vGlobal)
Method removeGlobal.
|
Global |
removeGlobalAt(int index)
Method removeGlobalAt.
|
boolean |
removeRuleFile(String vRuleFile)
Method removeRuleFile.
|
String |
removeRuleFileAt(int index)
Method removeRuleFileAt.
|
void |
setAppContext(String appContext)
Sets the value of field 'appContext'.
|
void |
setAssertBehaviour(String assertBehaviour) |
void |
setEvent(int index,
String vEvent) |
void |
setEvent(List<String> vEventList)
Sets the value of '_eventList' by copying the given Vector.
|
void |
setEvent(String[] vEventArray) |
void |
setEventCollection(List<String> eventList)
Deprecated.
|
void |
setEventProcessingMode(String eventProcessingMode) |
void |
setGlobal(Global[] vGlobalArray) |
void |
setGlobal(int index,
Global vGlobal) |
void |
setGlobal(List<Global> vGlobalList)
Sets the value of '_globalList' by copying the given Vector.
|
void |
setGlobalCollection(List<Global> globalList)
Deprecated.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setPersistState(Boolean persistState) |
void |
setRuleFile(int index,
String vRuleFile) |
void |
setRuleFile(List<String> vRuleFileList)
Sets the value of '_ruleFileList' by copying the given Vector.
|
void |
setRuleFile(String[] vRuleFileArray) |
void |
setRuleFileCollection(List<String> ruleFileList)
Deprecated.
|
String |
toString() |
void |
updateEngine(DroolsCorrelationEngine engine) |
public String getAssertBehaviour()
public void setAssertBehaviour(String assertBehaviour)
public String getEventProcessingMode()
public void setEventProcessingMode(String eventProcessingMode)
public Boolean getPersistState()
public void setPersistState(Boolean persistState)
public void addEvent(String vEvent) throws IndexOutOfBoundsException
vEvent
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void addEvent(int index, String vEvent) throws IndexOutOfBoundsException
index
- vEvent
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void addGlobal(Global vGlobal) throws IndexOutOfBoundsException
vGlobal
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void addGlobal(int index, Global vGlobal) throws IndexOutOfBoundsException
index
- vGlobal
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void addRuleFile(String vRuleFile) throws IndexOutOfBoundsException
vRuleFile
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void addRuleFile(int index, String vRuleFile) throws IndexOutOfBoundsException
index
- vRuleFile
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic Enumeration<String> enumerateEvent()
public Enumeration<Global> enumerateGlobal()
public Enumeration<String> enumerateRuleFile()
public String getAppContext()
public String getEvent(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic String[] getEvent()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getEventCollection()
public int getEventCount()
public Global getGlobal(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic Global[] getGlobal()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Global> getGlobalCollection()
public int getGlobalCount()
public String getName()
public String getRuleFile(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic String[] getRuleFile()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getRuleFileCollection()
public int getRuleFileCount()
public Iterator<String> iterateEvent()
public Iterator<Global> iterateGlobal()
public Iterator<String> iterateRuleFile()
public void removeAllEvent()
public void removeAllGlobal()
public void removeAllRuleFile()
public boolean removeEvent(String vEvent)
vEvent
- public String removeEventAt(int index)
index
- public boolean removeGlobal(Global vGlobal)
vGlobal
- public Global removeGlobalAt(int index)
index
- public boolean removeRuleFile(String vRuleFile)
vRuleFile
- public String removeRuleFileAt(int index)
index
- public void setAppContext(String appContext)
appContext
- the value of field 'appContext'.public void setEvent(int index, String vEvent) throws IndexOutOfBoundsException
index
- vEvent
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void setEvent(String[] vEventArray)
vEventArray
- public void setEvent(List<String> vEventList)
vEventList
- the Vector to copy.public void setEventCollection(List<String> eventList)
eventList
- the Vector to set.public void setGlobal(int index, Global vGlobal) throws IndexOutOfBoundsException
index
- vGlobal
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void setGlobal(Global[] vGlobalArray)
vGlobalArray
- public void setGlobal(List<Global> vGlobalList)
vGlobalList
- the Vector to copy.public void setGlobalCollection(List<Global> globalList)
globalList
- the Vector to set.public void setName(String name)
name
- the value of field 'name'.public void setRuleFile(int index, String vRuleFile) throws IndexOutOfBoundsException
index
- vRuleFile
- IndexOutOfBoundsException
- if the index given is outside the
bounds of the collectionpublic void setRuleFile(String[] vRuleFileArray)
vRuleFileArray
- public void setRuleFile(List<String> vRuleFileList)
vRuleFileList
- the Vector to copy.public void setRuleFileCollection(List<String> ruleFileList)
ruleFileList
- the Vector to set.public CorrelationEngine constructEngine(org.springframework.core.io.Resource basePath, org.springframework.context.ApplicationContext appContext, EventIpcManager eventIpcManager, com.codahale.metrics.MetricRegistry metricRegistry)
public void updateEngine(DroolsCorrelationEngine engine)
public Map<String,Object> getGlobals(org.springframework.context.ApplicationContext context)
public org.springframework.core.io.Resource getResource(org.springframework.core.io.ResourceLoader resourceLoader, String resourcePath)
public List<org.springframework.core.io.Resource> getRuleResources(org.springframework.core.io.ResourceLoader resourceLoader)
public String getConfigLocation()
Copyright © 2017. All rights reserved.