public interface IFirewallService extends IService
Modifier and Type | Method and Description |
---|---|
void |
addRule(FirewallRule rule)
Adds a new firewall rule into the memory storage and the persistent database.
|
void |
clearRules()
Delete all the rules from the memory storage and the persistent database.
|
void |
deleteRule(int ruleid)
Deletes the firewall rule using the ruleid from the memory storage
and the persistent database.
|
void |
enableFirewall(boolean enable)
Enables/disables the firewall.
|
java.util.List<FirewallRule> |
getRules()
Returns all firewall rules.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getStorageRules()
Returns all firewall rules of the persistent database.
|
java.lang.String |
getSubnetMask()
Returns the subnet mask.
|
boolean |
isEnabled()
Returns operational status of the firewall.
|
void |
setSubnetMask(java.lang.String newMask)
Sets the subnet mask
|
void enableFirewall(boolean enable)
enable
- true when enabled, false when disabledboolean isEnabled()
java.util.List<FirewallRule> getRules()
java.lang.String getSubnetMask()
void setSubnetMask(java.lang.String newMask)
newMask
- The new subnet maskjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> getStorageRules()
void addRule(FirewallRule rule)
rule
- a new firewall rulevoid deleteRule(int ruleid)
ruleid
- the ruleid of firewall rule to deletevoid clearRules()