public class QEmuProcess extends Object
Constructor and Description |
---|
QEmuProcess(Process process,
InetSocketAddress monitor) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
QApiConnection |
getConnection() |
QApiConnection |
getConnection(long timeout,
TimeUnit unit) |
InetSocketAddress |
getMonitor()
Returns the address of the QEmu monitor socket, if one exists.
|
Process |
getProcess()
Returns the
Process representing the underlying QEmu process. |
String |
toString() |
public QEmuProcess(@Nonnull Process process, @CheckForNull InetSocketAddress monitor)
@Nonnull public Process getProcess()
Process
representing the underlying QEmu process.Process
representing the underlying QEmu process.@CheckForNull public InetSocketAddress getMonitor()
QEmuMonitorRecipe
, QEmuMonitorOption
or
QEmuCustomOption
then this will return null.@Nonnull public QApiConnection getConnection() throws IOException
NoRouteToHostException
- if the process is terminated.UnknownServiceException
- if the process has no known monitor address.IOException
@Nonnull public QApiConnection getConnection(long timeout, @Nonnull TimeUnit unit) throws IOException, InterruptedException
IOException
InterruptedException
public void destroy() throws IOException, QApiException
IOException
QApiException