Package com.ipc.oce.events

Examples of com.ipc.oce.events.EventManager


    try{
      long start = System.currentTimeMillis();
      OCXEEndpoint ocxeEndpoint = (OCXEEndpoint) getEndpoint();
      OCApp application = ocxeEndpoint.getApp_instance();
     
      EventManager eventManager = new EventManager(ocxeEndpoint.getApp_instance(), tempCatalog);
      eventManager.setDeleteAfterUnload(true);
     
      Document docXml = eventManager.getEventLog(
            getTimePoint()
            null,
            null,
            ocxeEndpoint.getEventTypes() != null ? ocxeEndpoint.getEventTypes().toArray(new String[]{}) : (String[]) null,
            ocxeEndpoint.getListenForObjects() != null ? ocxeEndpoint.getListenForObjects().toArray(new String[]{}) : null
View Full Code Here


    dateFormat = new SimpleDateFormat(DATETIME_PATTERN);
  }
 
  private EventManager getEventManager() throws IOException, ConfigurationException, JIException {
    OCApp app = getApplication();
    EventManager manager = new EventManager(app, servletConfig.getInitParameter("tempLogDirectory"));
    return manager;
  }
View Full Code Here

      Date eDate = null;
      if (endDate != null) {
        eDate = dateFormat.parse(endDate);
      }
     
      EventManager manager = getEventManager();
     
      Document doc = manager.getEventLog(sDate, eDate, eventType);
     
      return doc;
     
    } catch (Exception e) {
      throw new WebApplicationException(e);
View Full Code Here

    try {
      OCApp app = getApplication();
      _OCAbstractManager abstractManager = app.findManager(metaType);
      _OCCommonMetadataObject commonMetadataObject = abstractManager.getMetadata();
     
      EventManager manager = getEventManager();
     
      Date sDate = null;
      if (startDate != null) {
        sDate = dateFormat.parse(startDate);
      }
     
      Date eDate = null;
      if (endDate != null) {
        eDate = dateFormat.parse(endDate);
      }
     
      EEventLogLevel logLevel  = app.findVarset(
          EEventLogLevel.class.getSimpleName()
          + "."
          + eventLevel.toUpperCase()
          );
     
      Document res = manager.getEventLog(sDate, eDate, new EEventLogLevel[]{logLevel}, new String[]{eventType}, new _OCCommonMetadataObject[]{ commonMetadataObject });
     
      return res;
     
    } catch (Exception e) {
      throw new WebApplicationException(e);
View Full Code Here

TOP

Related Classes of com.ipc.oce.events.EventManager

Copyright © 2018 www.massapicom. 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.