static final class NativeServicesDB.LinuxServicesDB extends NativeServicesDB
NativeServicesDB.DefaultNativeServicesDB, NativeServicesDB.LibServices, NativeServicesDB.LinuxLibServices, NativeServicesDB.LinuxServent, NativeServicesDB.LinuxServicesDB, NativeServicesDB.UnixServent
Modifier and Type | Field and Description |
---|---|
private jnr.ffi.Pointer |
buf |
private static int |
BUFLEN |
private NativeServicesDB.LinuxLibServices |
lib |
private jnr.ffi.Runtime |
runtime |
Constructor and Description |
---|
LinuxServicesDB(NativeServicesDB.LibServices lib) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Service> |
getAllServices() |
Service |
getServiceByName(java.lang.String name,
java.lang.String proto) |
Service |
getServiceByPort(java.lang.Integer port,
java.lang.String proto) |
getInstance, htons, load, ntohs, serviceFromNative
private static final int BUFLEN
private final NativeServicesDB.LinuxLibServices lib
private final jnr.ffi.Runtime runtime
private final jnr.ffi.Pointer buf
LinuxServicesDB(NativeServicesDB.LibServices lib)