public boolean isConnected() {
		return (this.currentState == ConnectionState.CONNECTED || this.currentState == ConnectionState.RECONNECTED);
	}
Checks whether the underlying connection is established.

@return true if connected
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/zookeeper/ZooKeeperConnection.java