public class DefaultOpenFuture extends DefaultSshFuture<OpenFuture> implements OpenFuture
OpenFuture.| Constructor and Description |
|---|
DefaultOpenFuture(java.lang.Object lock) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getException()
Returns the cause of the connection failure.
|
boolean |
isOpened()
Returns true if the connect operation is finished successfully.
|
void |
setException(java.lang.Throwable exception)
Sets the exception caught due to connection failure and notifies all
threads waiting for this future.
|
void |
setOpened()
Sets the newly connected session and notifies all threads waiting for
this future.
|
void |
verify()
Wait and verify that the channel has been successfuly opened.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getValue, isCanceled, isDone, removeListener, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, isCanceledaddListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListenerpublic void verify()
throws SshException
OpenFutureverify in interface OpenFutureSshException - if the authentication failed for any reasonpublic java.lang.Throwable getException()
OpenFuturegetException in interface OpenFuturepublic boolean isOpened()
OpenFutureisOpened in interface OpenFuturepublic void setOpened()
OpenFuturesetOpened in interface OpenFuturepublic void setException(java.lang.Throwable exception)
OpenFuturesetException in interface OpenFutureCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.