com.datatorrent.stram.FSEventRecorder Maven / Gradle / Ivy
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package com.datatorrent.stram;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.URI;
import java.util.Map;
import java.util.concurrent.*;
import net.engio.mbassy.listener.Handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.commons.beanutils.BeanUtils;
import com.datatorrent.common.codec.JsonStreamCodec;
import com.datatorrent.api.StreamCodec;
import com.datatorrent.netlet.util.DTThrowable;
import com.datatorrent.netlet.util.Slice;
import com.datatorrent.stram.api.StramEvent;
import com.datatorrent.stram.client.EventsAgent;
import com.datatorrent.stram.util.FSPartFileCollection;
import com.datatorrent.stram.util.SharedPubSubWebSocketClient;
/**
* FSEventRecorder class.
*
* @since 0.3.4
*/
public class FSEventRecorder implements EventRecorder
{
public static final String VERSION = "1.0";
private final BlockingQueue queue = new LinkedBlockingQueue();
private static final Logger LOG = LoggerFactory.getLogger(FSEventRecorder.class);
private FSPartFileCollection storage;
private String basePath = ".";
private transient StreamCodec
© 2015 - 2025 Weber Informatics LLC | Privacy Policy