|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.linux.net.rh.NetworkServiceImpl
public class NetworkServiceImpl
| Field Summary | |
|---|---|
static String |
PPP_PEERS_DIR
|
| Constructor Summary | |
|---|---|
NetworkServiceImpl()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
List<NetInterface<? extends NetInterfaceAddress>> |
getActiveNetworkInterfaces()
Return the active NetworkIntefaces which have active connections for the system. |
List<String> |
getAllNetworkInterfaceNames()
Gets the names of all the network interface attached to the system. |
List<WifiAccessPoint> |
getAllWifiAccessPoints()
Returns the list of all available WifiAccessPoints as seen from the system. |
String |
getModemPppPort(ModemDevice modemDevice)
Given a usb port address, look up the associated ppp interface name |
String |
getModemUsbPort(String interfaceName)
Given an interface name (e.g. |
NetInterface<? extends NetInterfaceAddress> |
getNetworkInterface(String interfaceName)
|
List<NetInterface<? extends NetInterfaceAddress>> |
getNetworkInterfaces()
Gets the names of all the network interface attached to the system. |
NetworkState |
getState()
Returns the overall state of the networking subsystem |
NetInterfaceState |
getState(String interfaceName)
Returns the state of a specific network interface |
List<WifiAccessPoint> |
getWifiAccessPoints(String wifiInterfaceName)
Returns the list of the WifiAccessPoints visible from the specified wifi network interface. |
void |
handleEvent(org.osgi.service.event.Event event)
|
void |
setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
setUsbService(UsbService usbService)
|
void |
unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
unsetUsbService(UsbService usbService)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PPP_PEERS_DIR
| Constructor Detail |
|---|
public NetworkServiceImpl()
| Method Detail |
|---|
public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
public void unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
public void setUsbService(UsbService usbService)
public void unsetUsbService(UsbService usbService)
protected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
public NetworkState getState()
throws EsfException
NetworkService
getState in interface NetworkServiceEsfException
public NetInterfaceState getState(String interfaceName)
throws EsfException
NetworkService
getState in interface NetworkServiceEsfException
public List<String> getAllNetworkInterfaceNames()
throws EsfException
NetworkService
getAllNetworkInterfaceNames in interface NetworkServiceEsfException
public List<NetInterface<? extends NetInterfaceAddress>> getNetworkInterfaces()
throws EsfException
NetworkService
getNetworkInterfaces in interface NetworkServiceEsfException
public List<WifiAccessPoint> getAllWifiAccessPoints()
throws EsfException
NetworkService
getAllWifiAccessPoints in interface NetworkServiceEsfException
public List<WifiAccessPoint> getWifiAccessPoints(String wifiInterfaceName)
throws EsfException
NetworkService
getWifiAccessPoints in interface NetworkServicewifiInterfaceName - name of the interface used to scan for the available access points
EsfException
public List<NetInterface<? extends NetInterfaceAddress>> getActiveNetworkInterfaces()
throws EsfException
NetworkService
getActiveNetworkInterfaces in interface NetworkServiceEsfException
public NetInterface<? extends NetInterfaceAddress> getNetworkInterface(String interfaceName)
throws EsfException
EsfExceptionpublic void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerpublic String getModemUsbPort(String interfaceName)
getModemUsbPort in interface NetworkService
public String getModemPppPort(ModemDevice modemDevice)
throws EsfException
getModemPppPort in interface NetworkServiceEsfException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||