Package jnr.netdb
Class NativeServicesDB.LinuxServicesDB
- java.lang.Object
-
- jnr.netdb.NativeServicesDB
-
- jnr.netdb.NativeServicesDB.LinuxServicesDB
-
- All Implemented Interfaces:
ServicesDB
- Enclosing class:
- NativeServicesDB
static final class NativeServicesDB.LinuxServicesDB extends NativeServicesDB
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jnr.netdb.NativeServicesDB
NativeServicesDB.DefaultNativeServicesDB, NativeServicesDB.LibServices, NativeServicesDB.LinuxLibServices, NativeServicesDB.LinuxServent, NativeServicesDB.LinuxServicesDB, NativeServicesDB.UnixServent
-
-
Field Summary
Fields Modifier and Type Field Description private jnr.ffi.Pointer
buf
private static int
BUFLEN
private NativeServicesDB.LinuxLibServices
lib
private jnr.ffi.Runtime
runtime
-
Constructor Summary
Constructors Constructor Description LinuxServicesDB(NativeServicesDB.LibServices lib)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class jnr.netdb.NativeServicesDB
getInstance, htons, load, ntohs, serviceFromNative
-
-
-
-
Field Detail
-
BUFLEN
private static final int BUFLEN
- See Also:
- Constant Field Values
-
lib
private final NativeServicesDB.LinuxLibServices lib
-
runtime
private final jnr.ffi.Runtime runtime
-
buf
private final jnr.ffi.Pointer buf
-
-
Constructor Detail
-
LinuxServicesDB
LinuxServicesDB(NativeServicesDB.LibServices lib)
-
-