move get_nodes method to parent class

Change-Id: I0b49894d95f94ce5ca706f10a33371c3e12535ec
Reviewed-on: http://review.couchbase.org/24227
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>