Class OpenVpnClient
java.lang.Object
org.eblocker.server.common.openvpn.OpenVpnClient
- All Implemented Interfaces:
Closeable,AutoCloseable,VpnClient
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDevices(Collection<Device> devices) voidclose()getLog()java.time.InstantbooleanisClosed()booleanbooleanisUp()voidstart()voidstop()voidstopDevices(Collection<Device> devices)
-
Method Details
-
getProfile
- Specified by:
getProfilein interfaceVpnClient
-
isUp
public boolean isUp() -
isStopped
public boolean isStopped() -
isClosed
public boolean isClosed() -
getStopInstant
public java.time.Instant getStopInstant()- Specified by:
getStopInstantin interfaceVpnClient
-
getLog
-
getExitStatus
- Specified by:
getExitStatusin interfaceVpnClient
-
getDeviceIds
- Specified by:
getDeviceIdsin interfaceVpnClient
-
addDevices
- Specified by:
addDevicesin interfaceVpnClient
-
stopDevices
- Specified by:
stopDevicesin interfaceVpnClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
start
public void start() -
stop
public void stop()
-