Package de.esoco.j2me.storage

Examples of de.esoco.j2me.storage.HierarchicalRecordStorage$LogRecord


   */
  protected void initModel(ProgressMonitor rMonitor)
    throws UserNotificationException
  {
    RecordStore          aRS  = null;
    HierarchicalRecordStorage aHRS = null;

    if (aDataModel == null)
    {
      try
      {
        aRS  = RecordStore.openRecordStore(RECORDSTORE_NAME, true);
        aHRS = new HierarchicalRecordStorage(aRS);

        aDataModel = new MicroSafeModel(aHRS);
        aDataModel.setProgressMonitor(rMonitor);
        aDataModel.initFromStorage();

        // init will read the data completely; reset the storage to free
        // allocated resources like streams and buffers
        aHRS.reset();
      }
      catch (Exception e)
      {
        throw new UserNotificationException(getString("JL_MtError"),
                          getString("MsInitMdl"), e);
View Full Code Here


    try
    {
      RecordStore aRS = RecordStore.openRecordStore(RECORDSTORE_NAME,
                              true);

      aHRS   = new HierarchicalRecordStorage(aRS);
      aModel = new MicroSafeModel(aHRS);

      aModel.initFromStorage();
    }
    catch (Exception e)
View Full Code Here

    }

    try
    {
      aRS = RecordStore.openRecordStore(RECORDSTORE_NAME, true);
      aHRS = new HierarchicalRecordStorage(aRS);
    }
    catch (Exception e)
    {
      fail("Exception during setUp: " + e.getMessage());
    }
View Full Code Here

  public int getTotalRowCount() {
    return _allRecords.size();
  }

  public Object getValueAt(int row, int col) {
    LogRecord record = getFilteredRecord(row);
    return getColumn(col, record);
  }
View Full Code Here

  }

  protected List createFilteredRecordsList() {
    List result = new ArrayList();
    Iterator records = _allRecords.iterator();
    LogRecord current;
    while (records.hasNext()) {
      current = (LogRecord) records.next();
      if (_filter.passes(current)) {
        result.add(current);
      }
View Full Code Here

    } else {
      setBackground(Color.white);
    }

    FilteredLogTableModel model = (FilteredLogTableModel) table.getModel();
    LogRecord record = model.getFilteredRecord(row);

    setForeground(getLogLevelColor(record.getLevel()));

    return (super.getTableCellRendererComponent(table,
        value,
        isSelected,
        hasFocus,
View Full Code Here

   */
  public void run() {

    int index = 0;
    int counter = 0;
    LogRecord temp;
    boolean isLogFile = false;

    _loadDialog = new LogFactor5LoadingDialog(
        _monitor.getBaseFrame(), "Loading file...");

View Full Code Here

  private LogRecord createLogRecord(String record) {
    if (record == null || record.trim().length() == 0) {
      return null;
    }

    LogRecord lr = new Log4JLogRecord();
    lr.setMillis(parseDate(record));
    lr.setLevel(parsePriority(record));
    lr.setCategory(parseCategory(record));
    lr.setLocation(parseLocation(record));
    lr.setThreadDescription(parseThread(record));
    lr.setNDC(parseNDC(record));
    lr.setMessage(parseMessage(record));
    lr.setThrownStackTrace(parseThrowable(record));

    return lr;
  }
View Full Code Here

    } else {
      setBackground(Color.white);
    }

    FilteredLogTableModel model = (FilteredLogTableModel) table.getModel();
    LogRecord record = model.getFilteredRecord(row);

    setForeground(getLogLevelColor(record.getLevel()));

    return (super.getTableCellRendererComponent(table,
        value,
        isSelected,
        hasFocus,
View Full Code Here

   */
  public void run() {

    int index = 0;
    int counter = 0;
    LogRecord temp;
    boolean isLogFile = false;

    _loadDialog = new LogFactor5LoadingDialog(
        _monitor.getBaseFrame(), "Loading file...");

View Full Code Here

TOP

Related Classes of de.esoco.j2me.storage.HierarchicalRecordStorage$LogRecord

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.