public List < RiakNode > getNodes ( ) { stateCheck ( State . CREATED , State . RUNNING , State . SHUTTING_DOWN , State . QUEUING ) ; try { nodeListLock . readLock ( ) . lock ( ) ; return new ArrayList <> ( nodeList ) ; } finally { nodeListLock . readLock ( ) . unlock ( ) ; } }
Returns a copy of the list of nodes in this cluster .