Package com.aoindustries.aoserv.master
Class VirtualServerHandler
java.lang.Object
com.aoindustries.aoserv.master.VirtualServerHandler
The
ServerHandler
handles all the accesses to the Host tables.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createVirtualServer
(DatabaseConnection conn, RequestSource source, int virtualServer) static String
destroyVirtualServer
(DatabaseConnection conn, RequestSource source, int virtualServer) static String
getDeviceForVirtualDisk
(DatabaseConnection conn, int virtualDisk) static int
getVirtualServerForVirtualDisk
(DatabaseConnection conn, int virtualDisk) static int
getVirtualServerStatus
(DatabaseConnection conn, RequestSource source, int virtualServer) static String
pauseVirtualServer
(DatabaseConnection conn, RequestSource source, int virtualServer) static String
rebootVirtualServer
(DatabaseConnection conn, RequestSource source, int virtualServer) static Server.DaemonAccess
requestVncConsoleDaemonAccess
(DatabaseConnection conn, RequestSource source, int virtualServer) static String
shutdownVirtualServer
(DatabaseConnection conn, RequestSource source, int virtualServer) static String
unpauseVirtualServer
(DatabaseConnection conn, RequestSource source, int virtualServer) static long
verifyVirtualDisk
(DatabaseConnection conn, RequestSource source, int virtualDisk)
-
Method Details
-
getVirtualServerForVirtualDisk
public static int getVirtualServerForVirtualDisk(DatabaseConnection conn, int virtualDisk) throws IOException, SQLException - Throws:
IOException
SQLException
-
getDeviceForVirtualDisk
public static String getDeviceForVirtualDisk(DatabaseConnection conn, int virtualDisk) throws IOException, SQLException - Throws:
IOException
SQLException
-
requestVncConsoleDaemonAccess
public static Server.DaemonAccess requestVncConsoleDaemonAccess(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
createVirtualServer
public static String createVirtualServer(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
rebootVirtualServer
public static String rebootVirtualServer(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
shutdownVirtualServer
public static String shutdownVirtualServer(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
destroyVirtualServer
public static String destroyVirtualServer(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
pauseVirtualServer
public static String pauseVirtualServer(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
unpauseVirtualServer
public static String unpauseVirtualServer(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getVirtualServerStatus
public static int getVirtualServerStatus(DatabaseConnection conn, RequestSource source, int virtualServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
verifyVirtualDisk
public static long verifyVirtualDisk(DatabaseConnection conn, RequestSource source, int virtualDisk) throws IOException, SQLException - Throws:
IOException
SQLException
-