Java tutorial
/** * Graylog NATS Plugin - NATS plugin for Graylog * Copyright 2016 Graylog, Inc. (hello@graylog.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.graylog.plugins.nats; import com.google.auto.service.AutoService; import com.google.common.collect.ImmutableSet; import org.graylog2.plugin.Plugin; import org.graylog2.plugin.PluginMetaData; import org.graylog2.plugin.PluginModule; import java.util.Collection; @AutoService(Plugin.class) public class NatsInputPlugin implements Plugin { @Override public PluginMetaData metadata() { return new NatsInputPluginMetaData(); } @Override public Collection<PluginModule> modules() { return ImmutableSet.of(new NatsInputPluginModule(), new NatsStreamingInputPluginModule()); } }