|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FilterManager
The interface for filter management.
| Method Summary | |
|---|---|
void |
bindFilter(java.lang.String fromFilterId,
java.lang.String toFilterId)
Binds two filters. |
Filter |
getFilter(java.lang.String filterId)
Returns the filter |
java.util.List<java.lang.String> |
getFilterFactoryNames()
Returns a list of filter factory type name. |
java.util.List<ComponentDescription> |
getFilterInstanceDescriptions()
Returns a list of all filter instance descriptions. |
Filter[] |
getInputFilters(java.lang.String filterId)
Returns all bound input filters. |
Filter[] |
getOutputFilters(java.lang.String filterId)
Returns all bound output filters. |
java.lang.Object |
getProperty(java.lang.String filterId,
java.lang.String key)
Returns the value of the property. |
java.util.Set<java.lang.String> |
getPropertyKeys(java.lang.String filterId)
Returns a Set of property keys |
void |
loadFilter(int filterFactoryIndex,
java.lang.String filterId)
Loads a filter using filter factory index. |
void |
loadFilter(java.lang.String filterFactoryName,
java.lang.String filterId)
Loads a filter using the filter factory name. |
void |
registerFilter(FilterHandler filterHandler,
java.lang.String filterId,
Filter filter)
Register the filter with filter id and handler. |
void |
runFilter(java.lang.String filterId,
long period)
Starts an ActiveFilter thread with specified milliseconds
interval. |
void |
setProperty(java.lang.String filterId,
java.lang.String key,
java.lang.String value)
Sets the property. |
void |
stopFilter(java.lang.String filterId)
Stops the active filter. |
void |
subscribeFilterEvent(FilterEventListener listener)
Subscribes filter events. |
void |
unbindFilter(java.lang.String fromFilterId,
java.lang.String toFilterId)
Unbind filters. |
void |
unloadFilter(java.lang.String filterId)
Unloads the filter. |
void |
unregisterFilter(java.lang.String filterId)
Unregister the filter. |
void |
unsetProperty(java.lang.String filterId,
java.lang.String key)
Removes the property. |
void |
unsubscribeFilterEvent(FilterEventListener listener)
Unsubscribes filter events. |
| Method Detail |
|---|
java.util.List<java.lang.String> getFilterFactoryNames()
java.util.List<ComponentDescription> getFilterInstanceDescriptions()
void loadFilter(int filterFactoryIndex,
java.lang.String filterId)
throws FilterFactoryNotFoundException,
DuplicatedFilterNameException
filterFactoryIndex - the filter factory index which is listed before.filterId - the filter id
FilterFactoryNotFoundException - if filter factory is not found
DuplicatedFilterNameException - if filter id is duplicated
void loadFilter(java.lang.String filterFactoryName,
java.lang.String filterId)
throws FilterFactoryNotFoundException,
DuplicatedFilterNameException
filterFactoryName - the filter factory namefilterId - the filter id
FilterFactoryNotFoundException - if filter factory is not found
DuplicatedFilterNameException - if filter id is duplicated
void unloadFilter(java.lang.String filterId)
throws FilterNotFoundException
filterId - the filter id
FilterNotFoundException - if filter is not found
void runFilter(java.lang.String filterId,
long period)
throws FilterNotFoundException,
java.lang.IllegalThreadStateException
ActiveFilter thread with specified milliseconds
interval.
filterId - the ActiveFilter idperiod - the sleep interval in milliseconds
FilterNotFoundException - if active filter is not found
java.lang.IllegalThreadStateException - if active filter is already running
void stopFilter(java.lang.String filterId)
throws FilterNotFoundException
filterId - the ActiveFilter id
FilterNotFoundException - if active filter is not found
void bindFilter(java.lang.String fromFilterId,
java.lang.String toFilterId)
throws FilterNotFoundException,
AlreadyBoundException,
MessageSpecMismatchException
fromFilterId - the source filter idtoFilterId - the destination filter id
FilterNotFoundException - if source or destination filter is not found
AlreadyBoundException - if filters are already bound
MessageSpecMismatchException - if source filter's message specification and destinatino
filter's message specification is not matched.
void unbindFilter(java.lang.String fromFilterId,
java.lang.String toFilterId)
throws FilterNotFoundException,
FilterNotBoundException
fromFilterId - the source filter idtoFilterId - the destination filter id
FilterNotFoundException - if source or destination filter is not found
FilterNotBoundException - if filters are not boundFilter getFilter(java.lang.String filterId)
filterId - the filter id
Filter[] getInputFilters(java.lang.String filterId)
filterId - the filter id
Filter[] getOutputFilters(java.lang.String filterId)
filterId - the filter id
void registerFilter(FilterHandler filterHandler,
java.lang.String filterId,
Filter filter)
FilterHandler.
filterHandler - the filter handlerfilterId - the filter idfilter - the filtervoid unregisterFilter(java.lang.String filterId)
FilterHandler.
filterId - the filter id
java.util.Set<java.lang.String> getPropertyKeys(java.lang.String filterId)
throws FilterNotFoundException
filterId - the filter id
FilterNotFoundException - if filter is not found
java.lang.Object getProperty(java.lang.String filterId,
java.lang.String key)
throws FilterNotFoundException
filterId - the filter idkey - the key of property
FilterNotFoundException - if filter is not found
void setProperty(java.lang.String filterId,
java.lang.String key,
java.lang.String value)
throws FilterNotFoundException
filterId - the filter idkey - the key of propertyvalue - the value of property
FilterNotFoundException - if filter is not found
void unsetProperty(java.lang.String filterId,
java.lang.String key)
throws FilterNotFoundException
filterId - the filter idkey - the key of property
FilterNotFoundException - if filter is not foundvoid subscribeFilterEvent(FilterEventListener listener)
listener - the filter event listenervoid unsubscribeFilterEvent(FilterEventListener listener)
listener - the filter event listener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||