Package org.luwrain.linux.services
Class UdisksCliMonitor
java.lang.Object
org.luwrain.linux.services.UdisksCliMonitor
- All Implemented Interfaces:
AutoCloseable
,BashProcess.Listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
enumRemovableBlockDevices
(Consumer<Map<String, Object>> consumer) void
onErrorLine
(String line) void
onFinishing
(int exitCode) void
onOutputLine
(String line)
-
Constructor Details
-
UdisksCliMonitor
- Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
enumRemovableBlockDevices
-
onOutputLine
- Specified by:
onOutputLine
in interfaceBashProcess.Listener
-
onErrorLine
- Specified by:
onErrorLine
in interfaceBashProcess.Listener
-
onFinishing
public void onFinishing(int exitCode) - Specified by:
onFinishing
in interfaceBashProcess.Listener
-