* @exception ConnectException If the connection fails.
* @exception AdminException If the request fails.
*/
public static void stopServer(int serverId) throws ConnectException, AdminException {
if (wrapper == null)
throw new ConnectException("Administration connection is closed.");
boolean local = (serverId == getLocalServerId());
wrapper.stopServer(serverId);
if (local) disconnect();
}