public final void close() throws SshException { if (!isOpen()) { throw new SshException(SshException.NOT_OPEN, "Channel not open."); } fireClosing(); onClose(); open = false; fireClosed(); }
public final void open() throws SshException { if (isOpen()) { throw new SshException(SshException.ALREADY_OPEN, "Channel already open."); } onOpen(); open = true; fireOpened(); }
public final void open() throws SshException { if (isOpen()) { throw new SshException(SshException.ALREADY_OPEN, "Channel already open."); } onOpen(); open = true; fireOpened(); }
public final void close() throws SshException { if (!isOpen()) { throw new SshException(SshException.NOT_OPEN, "Channel not open."); } fireClosing(); onClose(); open = false; fireClosed(); }