public static base_responses update ( nitro_service client , clusternode resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { clusternode updateresources [ ] = new clusternode [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new clusternode ( ) ; updateresources [ i ] . nodeid = resources [ i ] . nodeid ; updateresources [ i ] . state = resources [ i ] . state ; updateresources [ i ] . backplane = resources [ i ] . backplane ; updateresources [ i ] . priority = resources [ i ] . priority ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update clusternode resources .