Beispiel #1
0
  public RemoteRecorder(Action action, boolean append, String threadId) throws RecorderException {
    super(null, append, DTFConstants.DEFAULT_ENCODING);
    _threadId = threadId;

    try {
      RemoteStorage.init();
      _uri = RemoteStorage.createUniqueURI("events-", ".txt");
      _recorder = new TextRecorder(_uri, append, DTFConstants.DEFAULT_ENCODING);

      if (Action.getLogger().isDebugEnabled()) Action.getLogger().debug("Created file " + _uri);
    } catch (StorageException e) {
      throw new RecorderException("Unable to open remote storage.", e);
    } catch (URISyntaxException e) {
      throw new RecorderException("Unable to open remote storage.", e);
    } catch (ParseException e) {
      throw new RecorderException("Unable to open remote storage.", e);
    }
  }