private static Iterator < String > getPidIterator ( ValidatorProcessParameters parms , RemoteObjectSource objectSource ) throws ObjectSourceException { if ( parms . getIteratorType ( ) == IteratorType . FS_QUERY ) { return objectSource . findObjectPids ( parms . getQuery ( ) ) ; } else { return new PidfileIterator ( parms . getPidfile ( ) ) ; } }
The list of PIDs may come from a file or from a query against the object source .