/** The underlying FCP connection. */
private final FcpConnection fcpConnection;
+ /** The {@link NodeHello} data sent by the node on connection. */
+ private volatile NodeHello nodeHello;
+
/** Whether the client is currently connected. */
private volatile boolean connected;
}
//
+ // ACCESSORS
+ //
+
+ /**
+ * Returns the {@link NodeHello} object that the node returned when
+ * connecting.
+ *
+ * @return The {@code NodeHello} data container
+ */
+ public NodeHello getNodeHello() {
+ return nodeHello;
+ }
+
+ //
// ACTIONS
//
* {@inheritDoc}
*/
@Override
+ @SuppressWarnings("synthetic-access")
public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) {
completionLatch.countDown();
+ FcpClient.this.nodeHello = nodeHello;
}
}.execute();
}