public class DefaultOpenFuture extends DefaultSshFuture<OpenFuture> implements OpenFuture
OpenFuture
.Constructor and Description |
---|
DefaultOpenFuture(Object lock) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Returns the cause of the connection failure.
|
boolean |
isOpened()
Returns true if the connect operation is finished successfully.
|
void |
setException(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, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, isCanceled
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener
public DefaultOpenFuture(Object lock)
public void verify() throws SshException
OpenFuture
verify
in interface OpenFuture
SshException
- if the authentication failed for any reasonpublic Throwable getException()
OpenFuture
getException
in interface OpenFuture
public boolean isOpened()
OpenFuture
isOpened
in interface OpenFuture
public void setOpened()
OpenFuture
setOpened
in interface OpenFuture
public void setException(Throwable exception)
OpenFuture
setException
in interface OpenFuture
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.