rename plugin descriptin files
This commit is contained in:
parent
97ac9b0c4b
commit
433cdd3f56
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2024 johan@nosd.in
|
* Copyright (C) 2020 johan@nosd.in
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the Server Side Public License, version 1,
|
* it under the terms of the Server Side Public License, version 1,
|
||||||
@ -27,17 +27,17 @@ import java.util.Set;
|
|||||||
/**
|
/**
|
||||||
* Implement the PluginMetaData interface here.
|
* Implement the PluginMetaData interface here.
|
||||||
*/
|
*/
|
||||||
public class RedisLookupPluginMetaData implements PluginMetaData {
|
public class RedisLookupMetaData implements PluginMetaData {
|
||||||
private static final String PLUGIN_PROPERTIES = "in.nosd.redis.graylog-plugin-redis-lookup/graylog-plugin.properties";
|
private static final String PLUGIN_PROPERTIES = "in.nosd.redis.graylog-plugin-redis-lookup/graylog-plugin.properties";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUniqueId() {
|
public String getUniqueId() {
|
||||||
return "in.nosd.redis.RedisLookupPluginPlugin";
|
return "in.nosd.redis.RedisLookupPlugin";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return "RedisLookupPlugin";
|
return "Redis Lookup";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2024 johan@nosd.in
|
* Copyright (C) 2020 johan@nosd.in
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the Server Side Public License, version 1,
|
* it under the terms of the Server Side Public License, version 1,
|
||||||
@ -16,14 +16,15 @@
|
|||||||
*/
|
*/
|
||||||
package in.nosd.redis;
|
package in.nosd.redis;
|
||||||
|
|
||||||
import com.google.inject.Binder;
|
|
||||||
import com.google.inject.TypeLiteral;
|
|
||||||
import com.google.inject.multibindings.MapBinder;
|
|
||||||
|
|
||||||
import org.graylog.plugins.pipelineprocessor.ast.functions.Function;
|
import org.graylog.plugins.pipelineprocessor.ast.functions.Function;
|
||||||
import org.graylog2.plugin.PluginConfigBean;
|
import org.graylog2.plugin.PluginConfigBean;
|
||||||
import org.graylog2.plugin.PluginModule;
|
import org.graylog2.plugin.PluginModule;
|
||||||
|
|
||||||
|
import com.google.inject.multibindings.MapBinder;
|
||||||
|
import com.google.inject.Binder;
|
||||||
|
import com.google.inject.TypeLiteral;
|
||||||
|
|
||||||
import in.nosd.redis.dataadapters.RedisLookupDataAdapter;
|
import in.nosd.redis.dataadapters.RedisLookupDataAdapter;
|
||||||
import in.nosd.redis.functions.RedisLookupPluginFunction;
|
import in.nosd.redis.functions.RedisLookupPluginFunction;
|
||||||
|
|
||||||
@ -33,7 +34,7 @@ import java.util.Set;
|
|||||||
/**
|
/**
|
||||||
* Extend the PluginModule abstract class here to add you plugin to the system.
|
* Extend the PluginModule abstract class here to add you plugin to the system.
|
||||||
*/
|
*/
|
||||||
public class RedisLookupPluginModule extends PluginModule {
|
public class RedisLookupModule extends PluginModule {
|
||||||
/**
|
/**
|
||||||
* Returns all configuration beans required by this plugin.
|
* Returns all configuration beans required by this plugin.
|
||||||
*
|
*
|
||||||
@ -55,7 +56,7 @@ public class RedisLookupPluginModule extends PluginModule {
|
|||||||
* addMessageFilter(Class<? extends MessageFilter>);
|
* addMessageFilter(Class<? extends MessageFilter>);
|
||||||
* addMessageOutput(Class<? extends MessageOutput>);
|
* addMessageOutput(Class<? extends MessageOutput>);
|
||||||
* addPeriodical(Class<? extends Periodical>);
|
* addPeriodical(Class<? extends Periodical>);
|
||||||
* addAlarmCallback(Class<? extends AlarmCallback>);
|
// * addAlarmCallback(Class<? extends AlarmCallback>);
|
||||||
* addInitializer(Class<? extends Service>);
|
* addInitializer(Class<? extends Service>);
|
||||||
* addRestResource(Class<? extends PluginRestResource>);
|
* addRestResource(Class<? extends PluginRestResource>);
|
||||||
*
|
*
|
||||||
@ -65,7 +66,7 @@ public class RedisLookupPluginModule extends PluginModule {
|
|||||||
* addConfigBeans();
|
* addConfigBeans();
|
||||||
*/
|
*/
|
||||||
|
|
||||||
addMessageProcessorFunction(RedisLookupPluginFunction.NAME, RedisLookupPluginFunction.class);
|
addMessageProcessorFunction(RedisLookupPluginFunction.NAME, RedisLookupPluginFunction.class);
|
||||||
|
|
||||||
installLookupDataAdapter2(RedisLookupDataAdapter.NAME, RedisLookupDataAdapter.class,
|
installLookupDataAdapter2(RedisLookupDataAdapter.NAME, RedisLookupDataAdapter.class,
|
||||||
RedisLookupDataAdapter.Factory.class, RedisLookupDataAdapter.Config.class);
|
RedisLookupDataAdapter.Factory.class, RedisLookupDataAdapter.Config.class);
|
@ -1,39 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2024 johan@nosd.in
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the Server Side Public License, version 1,
|
|
||||||
* as published by MongoDB, Inc.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* Server Side Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the Server Side Public License
|
|
||||||
* along with this program. If not, see
|
|
||||||
* <http://www.mongodb.com/licensing/server-side-public-license>.
|
|
||||||
*/
|
|
||||||
package in.nosd.redis;
|
|
||||||
|
|
||||||
import org.graylog2.plugin.Plugin;
|
|
||||||
import org.graylog2.plugin.PluginMetaData;
|
|
||||||
import org.graylog2.plugin.PluginModule;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Collections;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Implement the Plugin interface here.
|
|
||||||
*/
|
|
||||||
public class RedisLookupPluginPlugin implements Plugin {
|
|
||||||
@Override
|
|
||||||
public PluginMetaData metadata() {
|
|
||||||
return new RedisLookupPluginMetaData();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<PluginModule> modules () {
|
|
||||||
return Collections.<PluginModule>singletonList(new RedisLookupPluginModule());
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user