Package com.jamonapi

Examples of com.jamonapi.Monitor.stop()


        } // catch (Excpetion ex) try
        finally {
            RequestContainer.delRequestContainer();
            ResponseContainer.delResponseContainer();
            if (monitor != null) {
                monitor.stop();
            }
           
            if (eventNotifier != null) {
              eventNotifier.notifyEvent(
                new ServiceEndEvent(null),
View Full Code Here


        serviceException = new SpagoBIEngineStartupException(getEngineName(), message, e);
      }
     
      throw serviceException;
    } finally {
      if(hitsByExecutionContext != null) hitsByExecutionContext.stop();
      if(hitsByDocumentId != null) hitsByDocumentId.stop();
      if(hitsByUserId != null) hitsByUserId.stop();
      if(hitsByDate != null) hitsByDate.stop();
      if(hitsPrimary != null) hitsPrimary.stop();
     
View Full Code Here

      maptmpfile.delete()
      if(tmpFile!=null)tmpFile.delete();
     
    } catch (Throwable t) {
      errorHitsMonitor = MonitorFactory.start("GeoEngine.errorHits");
      errorHitsMonitor.stop();
      DrawMapServiceException wrappedException;
      if(t instanceof DrawMapServiceException) {
        wrappedException = (DrawMapServiceException)t;
      } else {
        wrappedException = new DrawMapServiceException(getActionName(), "An unpredicted error occurred while executing " + getActionName() + " service", t);
View Full Code Here

        serviceException = new SpagoBIEngineStartupException(getEngineName(), message, e);
      }
     
      throw serviceException;
    } finally {
      if(hitsByExecutionContext != null) hitsByExecutionContext.stop();
      if(hitsByDocumentId != null) hitsByDocumentId.stop();
      if(hitsByUserId != null) hitsByUserId.stop();
      if(hitsByDate != null) hitsByDate.stop();
      if(hitsPrimary != null) hitsPrimary.stop();
     
View Full Code Here

        serviceException = new SpagoBIEngineStartupException(getEngineName(), message, e);
      }
     
      throw serviceException;
    } finally {
      monitor.stop();
      logger.debug("OUT");
    }
  }
}
View Full Code Here

      while(folderIt.hasNext()){
        LowFunctionality folder =(LowFunctionality) folderIt.next();
        canTest = canTestInternal(folder, profile);
        if (canTest){
          logger.debug("OUT.return true");
          monitor.stop();
          return true;
        }
      }
      logger.debug("OUT.return false");
      monitor.stop();
View Full Code Here

          monitor.stop();
          return true;
        }
      }
      logger.debug("OUT.return false");
      monitor.stop();
      return false;

    } else{
      logger.debug("OUT.return false");
      monitor.stop();
View Full Code Here

      monitor.stop();
      return false;

    } else{
      logger.debug("OUT.return false");
      monitor.stop();
      return false;
    }
  }

  /**
 
View Full Code Here

  public static boolean isAbleToExec(String state, IEngUserProfile profile) {
    Monitor monitor =MonitorFactory.start("spagobi.core.ObjectAccessVerifier.isAbleToExec");
    logger.debug("IN.state=" + state);
    if (state.equals("REL")) {
      logger.debug("OUT.return true");
      monitor.stop();
      return true;
    }
    else if (state.equals("DEV")) {
      try {
        if(profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_ADMIN)||profile.isAbleToExecuteAction(SpagoBIConstants.DOCUMENT_MANAGEMENT_DEV)){
View Full Code Here

      } catch (EMFInternalError e) {
        logger.error(e);
      }
    } 
    logger.debug("OUT");
    monitor.stop();
    return false;
  }

  /**
   * Control if current user can test the object relative to the folder id.
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.