public synchronized StepResponse getRangeRequest ( final String idRegex , final long start , final long end , String ... attributes ) { RangeRequestMessage req = new RangeRequestMessage ( ) ; req . setIdRegex ( idRegex ) ; req . setBeginTimestamp ( start ) ; req . setEndTimestamp ( end ) ; if ( attributes != null ) { req . setAttributeRegexes ( attributes ) ; } StepResponse resp = new StepResponse ( this , 0 ) ; try { while ( ! this . isReady ) { log . debug ( "Trying to wait until connection is ready." ) ; synchronized ( this ) { try { this . wait ( ) ; } catch ( InterruptedException ie ) { // Ignored } } } long reqId = this . wmi . sendMessage ( req ) ; resp . setTicketNumber ( reqId ) ; this . outstandingSteps . put ( Long . valueOf ( reqId ) , resp ) ; log . info ( "Binding Tix #{} to {}" , Long . valueOf ( reqId ) , resp ) ; return resp ; } catch ( Exception e ) { resp . setError ( e ) ; return resp ; } }
Sends a range request to the world model for the specified Identifier regular expression Attribute regular expressions between the start and end times .