diff --git a/graylog2-plugin-interfaces/.gitignore b/graylog2-plugin-interfaces/.gitignore
deleted file mode 100644
index 274f0fd706a8..000000000000
--- a/graylog2-plugin-interfaces/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-target
-release.properties
-.classpath
-.project
-.settings
diff --git a/graylog2-plugin-interfaces/LICENSE b/graylog2-plugin-interfaces/LICENSE
deleted file mode 100644
index f95d06c67622..000000000000
--- a/graylog2-plugin-interfaces/LICENSE
+++ /dev/null
@@ -1,7 +0,0 @@
-Copyright (c) 2012-2015 TORCH GmbH, 2015-2016 Graylog, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/graylog2-plugin-interfaces/pom.xml b/graylog2-plugin-interfaces/pom.xml
deleted file mode 100644
index b08c180911f8..000000000000
--- a/graylog2-plugin-interfaces/pom.xml
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
- 4.0.0
-
- 3.1.0
-
-
- graylog2-plugin
- jar
-
-
- org.graylog2
- graylog2-parent
- 2.0.0-alpha.4-SNAPSHOT
-
-
- graylog2-plugin
- Graylog interfaces for plugin development
-
-
-
- MIT license
- http://www.opensource.org/licenses/mit-license.php
- repo
-
-
-
-
-
- com.google.guava
- guava
-
-
- com.google.inject.extensions
- guice-assistedinject
-
-
- joda-time
- joda-time
-
-
- com.github.zafarkhaja
- java-semver
-
-
- io.dropwizard.metrics
- metrics-core
-
-
- com.lmax
- disruptor
-
-
- com.google.inject
- guice
-
-
- com.google.inject.extensions
- guice-multibindings
-
-
- com.fasterxml.jackson.core
- jackson-core
-
-
- com.fasterxml.jackson.core
- jackson-databind
-
-
-
- javax.ws.rs
- javax.ws.rs-api
-
-
-
- com.google.protobuf
- protobuf-java
-
-
-
- io.netty
- netty
-
-
-
- org.glassfish.jersey.core
- jersey-common
-
-
-
- org.kie
- kie-api
-
-
-
- commons-io
- commons-io
-
-
-
- com.eaio.uuid
- uuid
-
-
-
- com.github.joschi
- jadconfig
-
-
-
- javax.validation
- validation-api
-
-
- com.joestelmach
- natty
-
-
- com.google.auto.value
- auto-value
-
-
-
-
-
-
- com.mycila
- license-maven-plugin
-
- com/mycila/maven/plugin/license/templates/MIT.txt
-
-
-
-
-
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/AbstractDescriptor.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/AbstractDescriptor.java
deleted file mode 100644
index c47d8f39a6eb..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/AbstractDescriptor.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-/**
- * @author Dennis Oelkers
- */
-public abstract class AbstractDescriptor {
- private final String name;
- private final boolean exclusive;
- private final String linkToDocs;
-
- // required for guice, but isn't called.
- protected AbstractDescriptor() {
- throw new IllegalStateException("This class should not be instantiated directly, this is a bug.");
- }
-
- protected AbstractDescriptor(String name, boolean exclusive, String linkToDocs) {
- this.name = name;
- this.exclusive = exclusive;
- this.linkToDocs = linkToDocs;
- }
-
- public String getName() {
- return name;
- }
-
- public boolean isExclusive() {
- return exclusive;
- }
-
- public String getLinkToDocs() {
- return linkToDocs;
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Capabilities.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Capabilities.java
deleted file mode 100644
index e61e01e2c59c..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Capabilities.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import com.google.common.collect.Sets;
-
-import java.util.Set;
-
-public class Capabilities {
- public static Set toStringSet(Set capabilities) {
- final Set stringSet = Sets.newHashSetWithExpectedSize(capabilities.size());
- for (ServerStatus.Capability capability : capabilities) {
- stringSet.add(capability.toString());
- }
-
- return stringSet;
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/DocsHelper.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/DocsHelper.java
deleted file mode 100644
index 772cf12e79dd..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/DocsHelper.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-package org.graylog2.plugin;
-
-public enum DocsHelper {
- PAGE_SENDING_JSONPATH("sending_data.html#json-path-from-http-api-input"),
- PAGE_ES_CONFIGURATION("configuring_es.html"),
- PAGE_LDAP_TROUBLESHOOTING("users_roles.html#troubleshooting");
-
- private static final String DOCS_URL = "http://docs.graylog.org/en/";
-
- private final String path;
-
- DocsHelper(String path) {
- this.path = path;
- }
-
- @Override
- public String toString() {
- final String version = Version.CURRENT_CLASSPATH.major + "." + Version.CURRENT_CLASSPATH.minor;
-
- return DOCS_URL + version + "/pages/" + path;
- }
-
- public String toLink(String title) {
- return "" + title + "";
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/EmptyMessages.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/EmptyMessages.java
deleted file mode 100644
index f57512cfb4f3..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/EmptyMessages.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import java.util.Collections;
-import java.util.Iterator;
-
-public class EmptyMessages implements Messages {
- private static final EmptyMessages EMPTY_MESSAGES = new EmptyMessages();
-
- @Override
- public Iterator iterator() {
- return Collections.emptyIterator();
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/InstantMillisProvider.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/InstantMillisProvider.java
deleted file mode 100644
index c96b23dc273f..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/InstantMillisProvider.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import org.joda.time.DateTime;
-import org.joda.time.DateTimeUtils;
-import org.joda.time.Period;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class InstantMillisProvider implements DateTimeUtils.MillisProvider {
- private static final Logger log = LoggerFactory.getLogger(InstantMillisProvider.class);
- private DateTime currentTick;
-
- public InstantMillisProvider(DateTime instant) {
- setTimeTo(instant);
- }
-
- public void setTimeTo(DateTime instant) {
- log.debug("Setting clock to {}", instant);
- currentTick = instant;
- }
-
- @Override
- public long getMillis() {
- return currentTick.getMillis();
- }
-
- public void tick(Period period) {
- currentTick = currentTick.plus(period);
- log.debug("Ticking clock by {} to {}", period, currentTick);
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/LocalMetricRegistry.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/LocalMetricRegistry.java
deleted file mode 100644
index d8aa61101206..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/LocalMetricRegistry.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import com.codahale.metrics.MetricRegistry;
-
-// TODO this is a stupid workaround to have both a Singleton MetricRegistry and be able to inject new instances for local usage.
-public class LocalMetricRegistry extends MetricRegistry {
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/MessageCollection.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/MessageCollection.java
deleted file mode 100644
index 117afb878847..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/MessageCollection.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Iterators;
-
-import java.util.Iterator;
-
-public class MessageCollection implements Messages {
-
- private final ImmutableList messages;
-
- public MessageCollection(Iterable other) {
- messages = ImmutableList.copyOf(other);
- }
-
- @Override
- public Iterator iterator() {
- return Iterators.filter(messages.iterator(), e -> !e.getFilterOut());
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Messages.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Messages.java
deleted file mode 100644
index db031f78bd4b..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Messages.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-public interface Messages extends Iterable {
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/MetricSets.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/MetricSets.java
deleted file mode 100644
index 2e79f2e70e4a..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/MetricSets.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import com.codahale.metrics.Metric;
-import com.codahale.metrics.MetricSet;
-import com.google.common.collect.ImmutableMap;
-
-import java.util.Map;
-
-public class MetricSets {
- public static MetricSet of(final Map gauges) {
- return new MetricSet(){
- @Override
- public Map getMetrics() {
- return ImmutableMap.copyOf(gauges);
- }
- };
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Plugin.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Plugin.java
deleted file mode 100644
index ec57910ae873..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Plugin.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import java.util.Collection;
-
-public interface Plugin {
- PluginMetaData metadata();
- Collection modules();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginConfigBean.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginConfigBean.java
deleted file mode 100644
index 83e258257ee8..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginConfigBean.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-/**
- * @author Dennis Oelkers
- */
-public interface PluginConfigBean {
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginLoaderConfig.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginLoaderConfig.java
deleted file mode 100644
index 504d96b1b88d..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginLoaderConfig.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import com.github.joschi.jadconfig.Parameter;
-
-/**
- * @author Dennis Oelkers
- */
-public class PluginLoaderConfig {
- @Parameter(value = "plugin_dir")
- private String pluginDir = "plugin";
-
- public String getPluginDir() {
- return pluginDir;
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginMetaData.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginMetaData.java
deleted file mode 100644
index a581f195de08..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/PluginMetaData.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import java.net.URI;
-import java.util.Set;
-
-public interface PluginMetaData {
- String getUniqueId();
-
- String getName();
-
- String getAuthor();
-
- URI getURL();
-
- Version getVersion();
-
- String getDescription();
-
- Version getRequiredVersion();
-
- Set getRequiredCapabilities();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/ProcessingPauseLockedException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/ProcessingPauseLockedException.java
deleted file mode 100644
index 29d4ec98fccc..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/ProcessingPauseLockedException.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-/**
- * @author Lennart Koopmann
- */
-public class ProcessingPauseLockedException extends Exception {
-
- public ProcessingPauseLockedException() {
- super();
- }
-
- public ProcessingPauseLockedException(String msg) {
- super(msg);
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/RulesEngine.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/RulesEngine.java
deleted file mode 100644
index ebbd47762e78..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/RulesEngine.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import java.io.Closeable;
-
-public interface RulesEngine {
-
- public interface RulesSession extends Closeable {
-
- int evaluate(Message message, boolean retractFacts);
-
- Object insertFact(Object fact);
-
- boolean deleteFact(Object fact);
- }
-
- boolean addRule(String ruleSource);
-
- boolean addRulesFromFile(String rulesFile);
-
- int evaluateInSharedSession(Message message);
-
- RulesSession createPrivateSession();
-
- Object insertFact(Object fact);
-
- boolean deleteFact(Object fact);
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/SingletonMessages.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/SingletonMessages.java
deleted file mode 100644
index 3e16b094163b..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/SingletonMessages.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-import com.google.common.collect.Iterators;
-
-import java.util.Iterator;
-
-public class SingletonMessages implements Messages {
-
- private final Message message;
-
- public SingletonMessages(Message message) {
- this.message = message;
- }
-
- @Override
- public Iterator iterator() {
- return Iterators.singletonIterator(message);
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Stoppable.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Stoppable.java
deleted file mode 100644
index afd9e6a9d648..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/Stoppable.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin;
-
-/**
- * @author Dennis Oelkers
- */
-public interface Stoppable {
- public void stop();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/AlertCondition.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/AlertCondition.java
deleted file mode 100644
index d4f03bc7ab4a..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/AlertCondition.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.alarms;
-
-import org.graylog2.plugin.MessageSummary;
-import org.graylog2.plugin.streams.Stream;
-import org.joda.time.DateTime;
-
-import java.util.List;
-import java.util.Map;
-
-public interface AlertCondition {
- String getDescription();
-
- String getId();
-
- DateTime getCreatedAt();
-
- String getCreatorUserId();
-
- Stream getStream();
-
- Map getParameters();
-
- Integer getBacklog();
-
- int getGrace();
-
- String getTypeString();
-
- interface CheckResult {
- boolean isTriggered();
- String getResultDescription();
- AlertCondition getTriggeredCondition();
- DateTime getTriggeredAt();
-
- /**
- * The limited list of messages that matched the alert in the corresponding stream.
- *
- * @return list of message summaries
- */
- List getMatchingMessages();
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallback.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallback.java
deleted file mode 100644
index a4366dea407b..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallback.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.alarms.callbacks;
-
-import org.graylog2.plugin.alarms.AlertCondition;
-import org.graylog2.plugin.configuration.Configuration;
-import org.graylog2.plugin.configuration.ConfigurationException;
-import org.graylog2.plugin.configuration.ConfigurationRequest;
-import org.graylog2.plugin.streams.Stream;
-
-import java.util.Map;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public interface AlarmCallback {
-
- public void initialize(Configuration config) throws AlarmCallbackConfigurationException;
- public void call(Stream stream, AlertCondition.CheckResult result) throws AlarmCallbackException;
-
- public ConfigurationRequest getRequestedConfiguration();
- public String getName();
- public Map getAttributes();
- public void checkConfiguration() throws ConfigurationException;
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallbackConfigurationException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallbackConfigurationException.java
deleted file mode 100644
index 1cbc55d607bb..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallbackConfigurationException.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.alarms.callbacks;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public class AlarmCallbackConfigurationException extends Exception {
-
- /**
- * Re-generate if you modify the class structure.
- */
- private static final long serialVersionUID = 1762085797851052304L;
-
- public AlarmCallbackConfigurationException() {
- super();
- }
-
- public AlarmCallbackConfigurationException(String msg) {
- super(msg);
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallbackException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallbackException.java
deleted file mode 100644
index bfade77736cd..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/callbacks/AlarmCallbackException.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.alarms.callbacks;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public class AlarmCallbackException extends Exception {
-
- /**
- * Re-generate if you modify the class structure.
- */
- private static final long serialVersionUID = 8249565372019139524L;
-
- public AlarmCallbackException() {
- super();
- }
-
- public AlarmCallbackException(String msg) {
- super(msg);
- }
-
- public AlarmCallbackException(String message, Throwable cause) {
- super(message, cause);
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/transports/TransportConfigurationException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/transports/TransportConfigurationException.java
deleted file mode 100644
index 5a34560a411c..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/alarms/transports/TransportConfigurationException.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.alarms.transports;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public class TransportConfigurationException extends Exception {
-
- /**
- *
- */
- private static final long serialVersionUID = -851955448143684632L;
-
- public TransportConfigurationException() {
- super();
- }
-
- public TransportConfigurationException(String msg) {
- super(msg);
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/BufferOutOfCapacityException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/BufferOutOfCapacityException.java
deleted file mode 100644
index 01070e7d7bd3..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/BufferOutOfCapacityException.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.buffers;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public class BufferOutOfCapacityException extends Exception {
-
- /**
- * Re-generate if you modify the class structure.
- */
- private static final long serialVersionUID = -2497994875518554556L;
-
- public BufferOutOfCapacityException() {
- super();
- }
-
- public BufferOutOfCapacityException(String msg) {
- super(msg);
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/BufferWatermark.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/BufferWatermark.java
deleted file mode 100644
index e1f83139de67..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/BufferWatermark.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.buffers;
-
-import java.util.concurrent.atomic.AtomicInteger;
-import java.util.concurrent.atomic.AtomicLong;
-
-/**
- * @author Lennart Koopmann
- */
-public class BufferWatermark {
-
- private final int bufferSize;
- private final AtomicLong watermark;
-
- public BufferWatermark(int bufferSize, AtomicLong watermark) {
- this.bufferSize = bufferSize;
- this.watermark = watermark;
- }
-
- public long getUtilization() {
- return watermark.get();
- }
-
- public float getUtilizationPercentage() {
- return (float) getUtilization()/bufferSize*100;
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/InputBuffer.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/InputBuffer.java
deleted file mode 100644
index 7e8d920103d0..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/InputBuffer.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.buffers;
-
-import org.graylog2.plugin.journal.RawMessage;
-
-public interface InputBuffer {
- void insert(RawMessage message);
-
- long getUsage();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/ProcessingDisabledException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/ProcessingDisabledException.java
deleted file mode 100644
index 82cd810f05af..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/buffers/ProcessingDisabledException.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.buffers;
-
-/**
- * @author Lennart Koopmann
- */
-public class ProcessingDisabledException extends Exception {
-
- public ProcessingDisabledException() {
- super();
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/cluster/ClusterId.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/cluster/ClusterId.java
deleted file mode 100644
index f59d4d357b3f..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/cluster/ClusterId.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.cluster;
-
-import com.fasterxml.jackson.annotation.JsonAutoDetect;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.google.auto.value.AutoValue;
-
-@JsonAutoDetect
-@AutoValue
-public abstract class ClusterId {
- @JsonProperty
- public abstract String clusterId();
-
- @JsonCreator
- public static ClusterId create(@JsonProperty("cluster_id") String clusterId) {
- return new AutoValue_ClusterId(clusterId);
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/ConfigurationException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/ConfigurationException.java
deleted file mode 100644
index 63a3a96db87f..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/ConfigurationException.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.configuration;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public class ConfigurationException extends Exception {
-
- /**
- * Re-generate if you modify the class structure.
- */
- private static final long serialVersionUID = 8745066310811183675L;
-
- public ConfigurationException() {
- super();
- }
-
- public ConfigurationException(String msg) {
- super(msg);
- }
-
- public ConfigurationException(String msg, Throwable e) {
- super(msg, e);
- }
-
-}
\ No newline at end of file
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/fields/BooleanField.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/fields/BooleanField.java
deleted file mode 100644
index 7d9c415c70ef..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/fields/BooleanField.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.configuration.fields;
-
-/**
- * @author Lennart Koopmann
- */
-public class BooleanField extends AbstractConfigurationField {
-
- public static final String FIELD_TYPE = "boolean";
-
- private boolean defaultValue;
-
- public BooleanField(String name, String humanName, boolean defaultValue, String description) {
- super(FIELD_TYPE, name, humanName, description, Optional.OPTIONAL);
- this.defaultValue = defaultValue;
- }
-
- @Override
- public Object getDefaultValue() {
- return this.defaultValue;
- }
-
- @Override
- public void setDefaultValue(Object defaultValue) {
- if (defaultValue instanceof Boolean) {
- this.defaultValue = (boolean) defaultValue;
- }
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/fields/ConfigurationField.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/fields/ConfigurationField.java
deleted file mode 100644
index dca815eee858..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/configuration/fields/ConfigurationField.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.configuration.fields;
-
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author Lennart Koopmann
- */
-public interface ConfigurationField {
-
- public enum Optional {
- OPTIONAL,
- NOT_OPTIONAL
- }
-
- public String getFieldType();
-
- public String getName();
- public String getHumanName();
- public String getDescription();
- public Object getDefaultValue();
- public void setDefaultValue(Object defaultValue);
- public Optional isOptional();
- public List getAttributes();
- public Map> getAdditionalInformation();
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/dashboards/widgets/WidgetStrategy.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/dashboards/widgets/WidgetStrategy.java
deleted file mode 100644
index 55541fde307e..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/dashboards/widgets/WidgetStrategy.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.dashboards.widgets;
-
-import org.graylog2.plugin.indexer.searches.timeranges.TimeRange;
-
-import java.util.Map;
-
-public interface WidgetStrategy {
- interface Factory {
- T create(Map config,
- TimeRange timeRange,
- String widgetId);
- }
-
- ComputationResult compute();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/EmbeddedPersistable.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/EmbeddedPersistable.java
deleted file mode 100644
index d6de0365979c..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/EmbeddedPersistable.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.database;
-
-import java.util.Map;
-
-/**
- * @author Lennart Koopmann
- */
-public interface EmbeddedPersistable {
-
- public Map getPersistedFields();
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/Persisted.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/Persisted.java
deleted file mode 100644
index 66b5881dc01a..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/Persisted.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.database;
-
-import org.graylog2.plugin.database.validators.Validator;
-
-import java.util.Map;
-
-/**
- * @author Dennis Oelkers
- */
-public interface Persisted {
- String getId();
-
- Map getFields();
- Map getValidations();
- Map getEmbeddedValidations(String key);
-
- Map asMap();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/ValidationException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/ValidationException.java
deleted file mode 100644
index 001622fc711c..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/ValidationException.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.database;
-
-import com.google.common.collect.ImmutableMap;
-import org.graylog2.plugin.database.validators.ValidationResult;
-
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-
-public class ValidationException extends Exception {
- private final Map> errors;
-
- public ValidationException(Map> errors) {
- this.errors = ImmutableMap.copyOf(errors);
- }
-
- public ValidationException(final String message) {
- this("_", message);
- }
-
- public ValidationException(final String field, final String message) {
- super(message);
- this.errors = ImmutableMap.of(field, Collections.singletonList(new ValidationResult.ValidationFailed(message)));
- }
-
- public Map> getErrors() {
- return errors;
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/validators/ValidationResult.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/validators/ValidationResult.java
deleted file mode 100644
index 8566007031cb..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/validators/ValidationResult.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.database.validators;
-
-/**
- * @author Dennis Oelkers
- */
-public abstract class ValidationResult {
- public abstract boolean passed();
-
- public static class ValidationPassed extends ValidationResult {
- @Override
- public boolean passed() {
- return true;
- }
- }
-
- public static class ValidationFailed extends ValidationResult {
- private final String error;
-
- public ValidationFailed(String errors) {
- this.error = errors;
- }
-
- public String getError() {
- return error;
- }
-
- @Override
- public boolean passed() {
- return false;
- }
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/validators/Validator.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/validators/Validator.java
deleted file mode 100644
index dc0092b9d3a7..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/database/validators/Validator.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.database.validators;
-
-/**
- * @author Lennart Koopmann
- */
-public interface Validator {
-
- public ValidationResult validate(Object value);
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/events/inputs/IOStateChangedEvent.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/events/inputs/IOStateChangedEvent.java
deleted file mode 100644
index 32b967ad1a3c..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/events/inputs/IOStateChangedEvent.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.events.inputs;
-
-import com.google.auto.value.AutoValue;
-import org.graylog2.plugin.IOState;
-import org.graylog2.plugin.Stoppable;
-
-@AutoValue
-public abstract class IOStateChangedEvent {
- public abstract IOState.Type oldState();
- public abstract IOState.Type newState();
- public abstract IOState changedState();
-
- public static IOStateChangedEvent create(IOState.Type oldState, IOState.Type newState, IOState changedEvent) {
- return new AutoValue_IOStateChangedEvent<>(oldState, newState, changedEvent);
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/filters/MessageFilter.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/filters/MessageFilter.java
deleted file mode 100644
index 4d9b1375882e..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/filters/MessageFilter.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.filters;
-
-import org.graylog2.plugin.Message;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public interface MessageFilter {
-
- /**
- * Process a Message
- *
- * @return true if this message should not further be handled (for example for blacklisting purposes)
- */
- public boolean filter(Message msg);
-
- /**
- * @return The name of this filter. Should not include whitespaces or special characters.
- */
- public String getName();
-
- /**
- * For determining the runtime order of the filter, specify a priority.
- * Lower priorty values are run earlier, if two filters have the same priority, their name will be compared to
- * guarantee a repeatable order.
- *
- * @return the priority
- */
- int getPriority();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/retention/RetentionStrategy.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/retention/RetentionStrategy.java
deleted file mode 100644
index 452c21bc922e..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/retention/RetentionStrategy.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.indexer.retention;
-
-public interface RetentionStrategy {
- void retain();
-
- Class extends RetentionStrategyConfig> configurationClass();
-
- RetentionStrategyConfig defaultConfiguration();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/retention/RetentionStrategyConfig.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/retention/RetentionStrategyConfig.java
deleted file mode 100644
index 384c5add63ec..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/retention/RetentionStrategyConfig.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.indexer.retention;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-
-@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = RetentionStrategyConfig.TYPE_FIELD, visible = true)
-public interface RetentionStrategyConfig {
- String TYPE_FIELD = "type";
-
- @JsonProperty(TYPE_FIELD)
- String type();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/rotation/RotationStrategy.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/rotation/RotationStrategy.java
deleted file mode 100644
index 5d5b253a68cc..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/rotation/RotationStrategy.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.indexer.rotation;
-
-public interface RotationStrategy {
- void rotate();
-
- Class extends RotationStrategyConfig> configurationClass();
-
- RotationStrategyConfig defaultConfiguration();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/rotation/RotationStrategyConfig.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/rotation/RotationStrategyConfig.java
deleted file mode 100644
index 57f04750006d..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/rotation/RotationStrategyConfig.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.indexer.rotation;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-
-@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = RotationStrategyConfig.TYPE_FIELD, visible = true)
-public interface RotationStrategyConfig {
- String TYPE_FIELD = "type";
-
- @JsonProperty(TYPE_FIELD)
- String type();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/searches/timeranges/InvalidRangeParametersException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/searches/timeranges/InvalidRangeParametersException.java
deleted file mode 100644
index 590bd4c12347..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/searches/timeranges/InvalidRangeParametersException.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.indexer.searches.timeranges;
-
-/**
- * @author Lennart Koopmann
- */
-public class InvalidRangeParametersException extends Exception {
-
- public InvalidRangeParametersException() {
- super();
- }
-
- public InvalidRangeParametersException(String msg) {
- super(msg);
- }
-
-}
-
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/searches/timeranges/TimeRange.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/searches/timeranges/TimeRange.java
deleted file mode 100644
index f0d22ba5b5d1..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/indexer/searches/timeranges/TimeRange.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.indexer.searches.timeranges;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonSubTypes;
-import com.fasterxml.jackson.annotation.JsonTypeInfo;
-import org.joda.time.DateTime;
-
-import java.util.Map;
-
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true)
-@JsonSubTypes({
- @JsonSubTypes.Type(name = AbsoluteRange.ABSOLUTE, value = AbsoluteRange.class),
- @JsonSubTypes.Type(name = RelativeRange.RELATIVE, value = RelativeRange.class),
- @JsonSubTypes.Type(name = KeywordRange.KEYWORD, value = KeywordRange.class)
-})
-public abstract class TimeRange {
-
- @JsonProperty
- public abstract String type();
-
- @JsonIgnore
- public abstract DateTime getFrom();
-
- @JsonIgnore
- public abstract DateTime getTo();
-
- @JsonIgnore
- public abstract Map getPersistedConfig();
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/initializers/Initializer.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/initializers/Initializer.java
deleted file mode 100644
index 89e069434efc..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/initializers/Initializer.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.initializers;
-
-import java.util.Map;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public interface Initializer {
-
- void initialize(Map config) throws InitializerConfigurationException;
- public Map getRequestedConfiguration();
- public String getName();
- boolean masterOnly();
-
-}
\ No newline at end of file
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/initializers/InitializerConfigurationException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/initializers/InitializerConfigurationException.java
deleted file mode 100644
index 43eb739eb484..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/initializers/InitializerConfigurationException.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.initializers;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public class InitializerConfigurationException extends Exception {
-
- /**
- * Re-generate if you modify the class structure.
- */
- private static final long serialVersionUID = 2515731988548808134L;
-
- public InitializerConfigurationException() {
- super();
- }
-
- public InitializerConfigurationException(String msg) {
- super(msg);
- }
-
-}
\ No newline at end of file
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/Converter.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/Converter.java
deleted file mode 100644
index 378698f47ad7..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/Converter.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs;
-
-import java.util.Locale;
-import java.util.Map;
-
-/**
- * @author Lennart Koopmann
- */
-public abstract class Converter {
-
- public enum Type {
- NUMERIC,
- DATE,
- HASH,
- SPLIT_AND_COUNT,
- SYSLOG_PRI_LEVEL,
- SYSLOG_PRI_FACILITY,
- TOKENIZER,
- IP_ANONYMIZER,
- CSV,
- LOWERCASE,
- UPPERCASE,
- FLEXDATE
- }
-
- private final Type type;
- private final Map config;
-
- public Converter(Type type, Map config) {
- this.type = type;
- this.config = config;
- }
-
- public String getType() {
- return this.type.toString().toLowerCase(Locale.ENGLISH);
- }
-
- public Map getConfig() {
- return config;
- }
-
- public abstract Object convert(String value);
- public abstract boolean buildsMultipleFields();
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/MisfireException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/MisfireException.java
deleted file mode 100644
index bcd4c1feb4d5..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/MisfireException.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs;
-
-public class MisfireException extends Exception {
-
- public MisfireException(String msg) {
- super(msg);
- }
-
- public MisfireException(Throwable e) {
- super(e);
- }
-
- public MisfireException(String msg, Throwable e) {
- super(msg, e);
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/Codec.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/Codec.java
deleted file mode 100644
index 4f5bb3c678d3..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/Codec.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs.annotations;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.TYPE)
-public @interface Codec {
- /**
- * Internal name used for identifying the codec.
- * @return
- */
- String name();
-
- /**
- * Human readable name.
- * @return
- */
- String displayName();
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/ConfigClass.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/ConfigClass.java
deleted file mode 100644
index d585b1821206..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/ConfigClass.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs.annotations;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target(ElementType.TYPE)
-@Retention(RetentionPolicy.RUNTIME)
-public @interface ConfigClass {
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/FactoryClass.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/FactoryClass.java
deleted file mode 100644
index 24610e84cd3c..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/annotations/FactoryClass.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs.annotations;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target(ElementType.TYPE)
-@Retention(RetentionPolicy.RUNTIME)
-public @interface FactoryClass {
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/Codec.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/Codec.java
deleted file mode 100644
index f7f8893ebc4f..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/Codec.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs.codecs;
-
-import org.graylog2.plugin.Message;
-import org.graylog2.plugin.configuration.Configuration;
-import org.graylog2.plugin.configuration.ConfigurationRequest;
-import org.graylog2.plugin.journal.RawMessage;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-
-public interface Codec {
- @Nullable
- Message decode(@Nonnull RawMessage rawMessage);
-
- @Nullable
- CodecAggregator getAggregator();
-
- String getName();
-
- @Nonnull
- Configuration getConfiguration();
-
- public interface Factory {
- C create(Configuration configuration);
- Config getConfig();
- }
-
- public interface Config {
- public static final String CK_OVERRIDE_SOURCE = "override_source";
-
- ConfigurationRequest getRequestedConfiguration();
- void overrideDefaultValues(@Nonnull ConfigurationRequest cr);
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/CodecAggregator.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/CodecAggregator.java
deleted file mode 100644
index 112e3b887ff7..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/CodecAggregator.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs.codecs;
-
-import org.jboss.netty.buffer.ChannelBuffer;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-
-public interface CodecAggregator {
-
- @Nonnull
- public Result addChunk(ChannelBuffer buf);
-
- public class Result {
- private final ChannelBuffer message;
- private final boolean valid;
-
- public Result(ChannelBuffer message, boolean valid) {
- this.message = message;
- this.valid = valid;
- }
-
- @Nullable
- public ChannelBuffer getMessage() {
- return message;
- }
-
- public boolean isValid() {
- return valid;
- }
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/MultiMessageCodec.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/MultiMessageCodec.java
deleted file mode 100644
index 5f5c4c1d51cc..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/codecs/MultiMessageCodec.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-
-package org.graylog2.plugin.inputs.codecs;
-
-import org.graylog2.plugin.Message;
-import org.graylog2.plugin.journal.RawMessage;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import java.util.Collection;
-
-public interface MultiMessageCodec extends Codec {
- @Nullable
- Collection decodeMessages(@Nonnull RawMessage rawMessage);
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/transports/Transport.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/transports/Transport.java
deleted file mode 100644
index 0d68126f2b8f..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/inputs/transports/Transport.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.inputs.transports;
-
-import com.codahale.metrics.MetricSet;
-import org.graylog2.plugin.configuration.Configuration;
-import org.graylog2.plugin.configuration.ConfigurationRequest;
-import org.graylog2.plugin.inputs.MessageInput;
-import org.graylog2.plugin.inputs.MisfireException;
-import org.graylog2.plugin.inputs.codecs.CodecAggregator;
-
-public interface Transport {
-
- void setMessageAggregator(CodecAggregator aggregator);
-
- void launch(MessageInput input) throws MisfireException;
-
- void stop();
-
- MetricSet getMetricSet();
-
- public interface Config {
- ConfigurationRequest getRequestedConfiguration();
- }
-
- interface Factory {
- T create(Configuration configuration);
- Config getConfig();
- }
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/lifecycles/LoadBalancerStatus.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/lifecycles/LoadBalancerStatus.java
deleted file mode 100644
index 27d1aea4d32f..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/lifecycles/LoadBalancerStatus.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.lifecycles;
-
-/**
- * @author Lennart Koopmann
- */
-public enum LoadBalancerStatus {
-
- DEAD,
- ALIVE
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/messageprocessors/MessageProcessor.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/messageprocessors/MessageProcessor.java
deleted file mode 100644
index ba60d9b486e1..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/messageprocessors/MessageProcessor.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.messageprocessors;
-
-import org.graylog2.plugin.Messages;
-
-public interface MessageProcessor {
- Messages process(Messages messages);
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/outputs/MessageOutputConfigurationException.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/outputs/MessageOutputConfigurationException.java
deleted file mode 100644
index 6e0dd4d73129..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/outputs/MessageOutputConfigurationException.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.outputs;
-
-/**
- *
- * @author Lennart Koopmann
- */
-public class MessageOutputConfigurationException extends Exception {
-
- /**
- * Re-generate if you modify the class structure.
- */
- private static final long serialVersionUID = -4252325712098060658L;
-
- public MessageOutputConfigurationException() {
- super();
- }
-
- public MessageOutputConfigurationException(String msg) {
- super(msg);
- }
-
-}
diff --git a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/outputs/OutputStreamConfiguration.java b/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/outputs/OutputStreamConfiguration.java
deleted file mode 100644
index 9d4db40f8ea0..000000000000
--- a/graylog2-plugin-interfaces/src/main/java/org/graylog2/plugin/outputs/OutputStreamConfiguration.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * The MIT License
- * Copyright (c) 2012 Graylog, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- */
-package org.graylog2.plugin.outputs;
-
-import java.util.Map;
-import java.util.Set;
-
-/**
- * @author Lennart Koopmann
- */
-public interface OutputStreamConfiguration {
-
- public void add(String streamId, Set