Class VirtualServerManager
java.lang.Object
com.aoindustries.aoserv.daemon.server.VirtualServerManager
The
ServerManager
controls stuff at a server level.- Author:
- AO Industries, Inc.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createVirtualServer
(String virtualServer) static String
destroyVirtualServer
(String virtualServer) static int
Finds a PID given its command line prefix as found in /proc/...static int
getVirtualServerStatus
(String virtualServer) static String
Gets the xm/xl command used for this server.static String
pauseVirtualServer
(String virtualServer) static String
rebootVirtualServer
(String virtualServer) static String
shutdownVirtualServer
(String virtualServer) static String
unpauseVirtualServer
(String virtualServer) static void
updateVirtualDiskLastVerified
(String virtualServer, String device, long lastVerified) static long
verifyVirtualDisk
(String virtualServer, String device) static void
vncConsole
(Socket socket, StreamableInput socketIn, StreamableOutput socketOut, String serverName) Parses the output of xm list -l for a specific domain.
-
Method Details
-
getXmCommand
Gets the xm/xl command used for this server.- Throws:
IOException
SQLException
-
findPid
Finds a PID given its command line prefix as found in /proc/.../cmdline Returns PID or-1
if not found.- Throws:
IOException
-
vncConsole
public static void vncConsole(Socket socket, StreamableInput socketIn, StreamableOutput socketOut, String serverName) throws IOException, SQLException Parses the output of xm list -l for a specific domain.- Throws:
IOException
SQLException
-
createVirtualServer
- Throws:
IOException
SQLException
-
rebootVirtualServer
- Throws:
IOException
SQLException
-
shutdownVirtualServer
- Throws:
IOException
SQLException
-
destroyVirtualServer
- Throws:
IOException
SQLException
-
pauseVirtualServer
- Throws:
IOException
SQLException
-
unpauseVirtualServer
- Throws:
IOException
SQLException
-
getVirtualServerStatus
- Throws:
IOException
SQLException
-
verifyVirtualDisk
- Throws:
IOException
-
updateVirtualDiskLastVerified
public static void updateVirtualDiskLastVerified(String virtualServer, String device, long lastVerified) throws IOException - Throws:
IOException
-