public class FilterProvider extends Object implements Serializable
ISpaceFilter
allowing to provide a an already instantiated filter using SpaceFinder
with custom Properties
.Constructor and Description |
---|
FilterProvider() |
FilterProvider(ISpaceFilter filter) |
FilterProvider(String filterName,
ISpaceFilter filter)
Constructs a new filter provider using the provided filter and the filter name.
|
Modifier and Type | Method and Description |
---|---|
ISpaceFilter |
getFilter()
Returns the filter object.
|
String |
getFilterParam() |
String |
getName()
Returns the name of the filter.
|
int[] |
getOpCodes()
Returns the list of operation codes to be filtered.
|
int |
getPriority()
Returns the priority of the filter.
|
boolean |
isActiveWhenBackup()
Returns
true if the filter should be active when the space is in backup mode. |
boolean |
isEnabled()
Returns
true if the filter is enabled. |
boolean |
isPassFilterEntry() |
boolean |
isSecurityFilter()
Returns
true if the filter is a security filter. |
boolean |
isShutdownSpaceOnInitFailure()
Returns
true if the space should shutdown on filter init failure. |
void |
setActiveWhenBackup(boolean activeWhenBackup)
true if the filter should be active when the space is in backup mode. |
void |
setEnabled(boolean enabled)
true if the filter is enabled. |
void |
setFilterParam(String filterParam) |
void |
setName(String name) |
void |
setOpCodes(int... opCodes)
Sets the list of operation codes to be filtered.
|
void |
setPassFilterEntry(boolean passFilterEntry) |
void |
setPriority(int priority)
Sets the priority of the filter.
|
void |
setSecurityFilter(boolean securityFilter)
true if the filter is a security filter. |
void |
setShutdownSpaceOnInitFailure(boolean shutdownSpaceOnInitFailure)
true if the space should shutdown on filter init failure. |
public FilterProvider()
public FilterProvider(ISpaceFilter filter)
public FilterProvider(String filterName, ISpaceFilter filter)
filterName
- The filter namefilter
- The filterpublic String getName()
public void setName(String name)
public ISpaceFilter getFilter()
public boolean isActiveWhenBackup()
true
if the filter should be active when the space is in backup mode.
Default to true
.public void setActiveWhenBackup(boolean activeWhenBackup)
true
if the filter should be active when the space is in backup mode. Default to
true
.public boolean isEnabled()
true
if the filter is enabled. Defaults to true
.public void setEnabled(boolean enabled)
true
if the filter is enabled. Defaults to true
.public boolean isSecurityFilter()
true
if the filter is a security filter. Defaults to
false
.public void setSecurityFilter(boolean securityFilter)
true
if the filter is a security filter. Defaults to false
.public boolean isShutdownSpaceOnInitFailure()
true
if the space should shutdown on filter init failure. Defaults to
false
.public void setShutdownSpaceOnInitFailure(boolean shutdownSpaceOnInitFailure)
true
if the space should shutdown on filter init failure. Defaults to
false
.public int[] getOpCodes()
FilterOperationCodes
public void setOpCodes(int... opCodes)
FilterOperationCodes
public int getPriority()
0
.public void setPriority(int priority)
0
.public String getFilterParam()
public void setFilterParam(String filterParam)
public void setPassFilterEntry(boolean passFilterEntry)
public boolean isPassFilterEntry()
Copyright © GigaSpaces.