Package com.draagon.timers

Examples of com.draagon.timers.MethodTimer.done()


      log.debug("(processData) Processing data with stream: " + stream.getClass().getName() );

    // Process the actual data
    MethodTimer mt = new MethodTimer( stream, "process" );
    stream.process( res );
    mt.done();

    if ( log.isDebugEnabled() )
      log.debug( "(processData) Data processing completed" );
  }
}
View Full Code Here


          else
          {
            String msg = "Service Parse Error [" + in + "], unknown node [" + doc.getNodeName() + "]";
            getRequest().logError( "(WIIServiceStream.parse) " + msg, null );

            mt.done();
            mRequest.getDevice().writeError( mRequest, pw, "SERVICE ERROR", msg );
          }
        }
    }
    catch( Exception e )
View Full Code Here

    catch( Exception e )
    {
      String msg = "Service Parse Error [" + in + "]";
      getRequest().logError( "(WIIServiceStream.parse) " + msg, e );

      mt.done();
      mRequest.getDevice().writeError( mRequest, pw, "SERVICE ERROR", msg );
    }

    mt.done();
  }
View Full Code Here

      mt.done();
      mRequest.getDevice().writeError( mRequest, pw, "SERVICE ERROR", msg );
    }

    mt.done();
  }

  protected void callService( String name, String xml, Node node, WIIResponse res )
    throws IOException, WIIException
  {
View Full Code Here

    {
      try
      {
        MethodTimer mt = new MethodTimer( osf, "process" );
        osf.process( node, res );
        mt.done();
      }
      catch( Exception e )
      {
        String msg = "Service Parse Error [" + xml + "]";
        getRequest().logError( "(callService) " + msg, e );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.