Package de.innovationgate.utils.remote.commands

Examples of de.innovationgate.utils.remote.commands.Disconnect


                            Throwable cause = e.getCause();
                            if (cause instanceof SocketTimeoutException) {
                                // client connection timed out
                                _log.warn("Connection for client '" + _client.getInetAddress() + "' timed out. Sending disconnect command.");
                                // send disconnect command to client
                                command = new Disconnect();
                            } else {
                                _log.error("Unable to retrieve command from client '" + _client.getInetAddress() + "'.", e);
                                _failures++;
                            }
                        } else {
View Full Code Here


     * @throws RemoteException
     * @throws CommandException
     */
    public void disconnect() throws RemoteException, CommandException {
        try {
            Disconnect disconnect = new Disconnect();
            sendCommand(disconnect);
            if (disconnect.disconnected()) {
                _server.close();
            } else {
                throw new RemoteException("Unable to disconnect from server.");
            }
        } catch (RemoteException e) {
View Full Code Here

TOP

Related Classes of de.innovationgate.utils.remote.commands.Disconnect

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.