Examples of XQueryWatchDog


Examples of org.exist.xquery.XQueryWatchDog

  }
 
  public XQueryWatchDog[] getRunningXQueries()
  {
        synchronized (runningQueries) {
            final XQueryWatchDog watchdogs[] = new XQueryWatchDog[runningQueries.size()];
            int j = 0;
            for (final Iterator<XQueryWatchDog> i = runningQueries.iterator(); i.hasNext(); j++) {
                watchdogs[j] = i.next();
            }
            return watchdogs;
View Full Code Here

Examples of org.exist.xquery.XQueryWatchDog

      init();
    }

  private void init() {
      setWatchDog(new XQueryWatchDog(this));
     
        loadDefaultNS();
       

        Configuration config = getBroker().getConfiguration();
View Full Code Here

Examples of org.exist.xquery.XQueryWatchDog

    if( !context.getUser().hasDbaRole() ) {
      throw( new XPathException( this, "Permission denied, calling user '" + context.getUser().getName() + "' must be a DBA to access foreign contexts" ) );
    }
   
    if( id != 0 ) {
            XQueryWatchDog watchdogs[] = getContext().getBroker().getBrokerPool().getProcessMonitor().getRunningXQueries();
     
            for( int i = 0; i < watchdogs.length; i++ ) {
            XQueryContext ctx = watchdogs[i].getContext();
           
            if( id == ctx.hashCode() ) {
View Full Code Here

Examples of org.exist.xquery.XQueryWatchDog

      this.context = null;
    }
   
    public boolean killQuery() {
      if(context!=null) {
        final XQueryWatchDog xwd = context.getWatchDog();
        final boolean retval = !xwd.isTerminating();
        if( retval )
          {xwd.kill(0);}
        context = null;

        return retval;
      }
View Full Code Here

Examples of org.exist.xquery.XQueryWatchDog

       
        builder.startDocument();
        builder.startElement( new QName( "xqueries", NAMESPACE_URI, PREFIX ), null );
       
        //Add all the running xqueries
        final XQueryWatchDog watchdogs[] = getContext().getBroker().getBrokerPool().getProcessMonitor().getRunningXQueries();
        for (int i = 0; i < watchdogs.length; i++) {
          final XQueryContext   context   = watchdogs[i].getContext();
         
          getRunningXQuery( builder, context, watchdogs[i] );
        }
View Full Code Here

Examples of org.exist.xquery.XQueryWatchDog

        waittime = ((NumericValue)args[1].itemAt(0)).getLong();
      }
    }
       
        if( id != 0 ) {
            final XQueryWatchDog watchdogs[] = getContext().getBroker().getBrokerPool().getProcessMonitor().getRunningXQueries();
            for (int i = 0; i < watchdogs.length; i++) {
            final XQueryContext   context   = watchdogs[i].getContext();
           
            if( id == context.hashCode() ) {
              if( !watchdogs[i].isTerminating() ) {
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.