public abstract class GridHadoopAbstractCommunicationClient extends Object implements GridHadoopCommunicationClient
| Constructor and Description |
|---|
GridHadoopAbstractCommunicationClient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close() |
boolean |
closed() |
void |
forceClose()
Forces client close.
|
long |
getIdleTime()
Gets idle time of this client.
|
protected void |
markUsed()
Updates used time.
|
void |
release()
Releases this client by decreasing reservations.
|
boolean |
reserve() |
boolean |
reserved() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsendMessagepublic GridHadoopAbstractCommunicationClient()
public boolean close()
close in interface GridHadoopCommunicationClientTrue if client has been closed by this call,
false if failed to close client (due to concurrent reservation or concurrent close).public void forceClose()
forceClose in interface GridHadoopCommunicationClientpublic boolean closed()
closed in interface GridHadoopCommunicationClientTrue if client is closed;public boolean reserve()
reserve in interface GridHadoopCommunicationClientTrue if client was reserved, false otherwise.public void release()
release in interface GridHadoopCommunicationClientpublic boolean reserved()
reserved in interface GridHadoopCommunicationClientTrue if client was reserved.public long getIdleTime()
getIdleTime in interface GridHadoopCommunicationClientprotected void markUsed()
Copyright © 2014. All rights reserved.