|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.net.admin.NetworkAdminServiceImpl
public class NetworkAdminServiceImpl
Constructor Summary | |
---|---|
NetworkAdminServiceImpl()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
void |
disableInterface(String interfaceName)
Disables the specified interface. |
void |
enableInterface(String interfaceName,
boolean dhcp)
Enables the specified interface. |
List<NetConfig> |
getFirewallConfiguration()
Gets the firewall configuration of the system as currently specified |
List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> |
getNetworkInterfaceConfigs()
Returns a list of all of the configurations associated with all of the interfaces on the system. |
List<NetConfig> |
getNetworkInterfaceConfigs(String interfaceName)
Returns the configuration information for the specified NetworkInterface name. |
void |
handleEvent(org.osgi.service.event.Event event)
|
void |
manageDhcpServer(String interfaceName,
boolean enable)
Used to control DHCP servers on specified interfaces. |
void |
manageFirewall(String gatewayIface)
Updates the Firewall configuration based on current environmental conditions. |
void |
renewDhcpLease(String interfaceName)
Releases current IP address and acquires a new lease for the provided interface. |
void |
setConfigurationService(ConfigurationService configurationService)
|
void |
setFirewallOpenPortConfiguration(List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration)
Sets the 'open port' portion of the firewall configuration |
void |
setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration)
Sets the 'port forwarding' portion of the firewall configuration |
void |
setNetworkConfigurationService(NetworkConfigurationService networkConfigurationService)
|
void |
unNetworkConfigurationService(NetworkConfigurationService networkConfigurationService)
|
void |
unsetConfigurationService(ConfigurationService configurationService)
|
void |
updateEthernetInterfaceConfig(String interfaceName,
boolean autoConnect,
int mtu,
List<NetConfig> netConfigs)
Updates the configuration of the specified EthernetInterface. |
void |
updateModemInterfaceConfig(String interfaceName,
String serialNum,
String modemId,
int pppNumber,
boolean autoConnect,
int mtu,
List<NetConfig> netConfigs)
Updates the configuration of the specified ModemInterface. |
void |
updateWifiInterfaceConfig(String interfaceName,
boolean autoConnect,
WifiAccessPoint accessPoint,
List<NetConfig> netConfigs)
Updates the configuration of the specified WifiInterface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkAdminServiceImpl()
Method Detail |
---|
public void setConfigurationService(ConfigurationService configurationService)
public void unsetConfigurationService(ConfigurationService configurationService)
public void setNetworkConfigurationService(NetworkConfigurationService networkConfigurationService)
public void unNetworkConfigurationService(NetworkConfigurationService networkConfigurationService)
protected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
public List<? extends NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetworkInterfaceConfigs() throws EsfException
NetworkAdminService
getNetworkInterfaceConfigs
in interface NetworkAdminService
EsfException
public List<NetConfig> getNetworkInterfaceConfigs(String interfaceName) throws EsfException
NetworkAdminService
getNetworkInterfaceConfigs
in interface NetworkAdminService
EsfException
public void updateEthernetInterfaceConfig(String interfaceName, boolean autoConnect, int mtu, List<NetConfig> netConfigs) throws EsfException
NetworkAdminService
updateEthernetInterfaceConfig
in interface NetworkAdminService
interfaceName
- - name of the Ethernet interfaceautoConnect
- - specifies the auto-connect value for the interfacemtu
- - required MTU for the interface, -1 to keep the automatic default
EsfException
public void updateWifiInterfaceConfig(String interfaceName, boolean autoConnect, WifiAccessPoint accessPoint, List<NetConfig> netConfigs) throws EsfException
NetworkAdminService
updateWifiInterfaceConfig
in interface NetworkAdminService
interfaceName
- - name of the wifi interfaceautoConnect
- - specifies the auto-connect value for the interface
EsfException
public void updateModemInterfaceConfig(String interfaceName, String serialNum, String modemId, int pppNumber, boolean autoConnect, int mtu, List<NetConfig> netConfigs) throws EsfException
NetworkAdminService
updateModemInterfaceConfig
in interface NetworkAdminService
interfaceName
- - name of the Modem interfaceserialNum
- - the modem's serial numbermodemId
- - user string to identify the modempppNumber
- - ppp number to use for this interfaceautoConnect
- - specifies the auto-connect value for the interfacemtu
- - required MTU for the interface, -1 to keep the automatic defaultnetConfigs
- - list of NetConfigs for this interface
EsfException
public void enableInterface(String interfaceName, boolean dhcp) throws EsfException
NetworkAdminService
enableInterface
in interface NetworkAdminService
interfaceName
- - name of the interface to be enabled.
EsfException
public void disableInterface(String interfaceName) throws EsfException
NetworkAdminService
disableInterface
in interface NetworkAdminService
interfaceName
- - name of the interface to be disabled.
EsfException
public void manageDhcpServer(String interfaceName, boolean enable) throws EsfException
NetworkAdminService
manageDhcpServer
in interface NetworkAdminService
interfaceName
- The interface of the DHCP server to modify the stateenable
- Whether to enable or disable the DHCP server
EsfException
public void renewDhcpLease(String interfaceName) throws EsfException
NetworkAdminService
renewDhcpLease
in interface NetworkAdminService
interfaceName
- The interface on which to renew the lease
EsfException
public void manageFirewall(String gatewayIface) throws EsfException
NetworkAdminService
manageFirewall
in interface NetworkAdminService
gatewayIface
- The new gateway interface that is now active as the WAN interface
EsfException
public List<NetConfig> getFirewallConfiguration() throws EsfException
NetworkAdminService
getFirewallConfiguration
in interface NetworkAdminService
EsfException
public void setFirewallOpenPortConfiguration(List<FirewallOpenPortConfigIP<? extends IPAddress>> firewallConfiguration) throws EsfException
NetworkAdminService
setFirewallOpenPortConfiguration
in interface NetworkAdminService
firewallConfiguration
- A list of FirewallOpenPortConfigIP Objects representing the configuration to set
EsfException
public void setFirewallPortForwardingConfiguration(List<FirewallPortForwardConfigIP<? extends IPAddress>> firewallConfiguration) throws EsfException
NetworkAdminService
setFirewallPortForwardingConfiguration
in interface NetworkAdminService
firewallConfiguration
- A list of FirewallPortForwardConfigIP Objects representing the configuration to set
EsfException
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |