diff --git a/apm-collector/apm-collector-alerting/collector-alerting-define/pom.xml b/apm-collector/apm-collector-alerting/collector-alerting-define/pom.xml new file mode 100644 index 000000000..8196de422 --- /dev/null +++ b/apm-collector/apm-collector-alerting/collector-alerting-define/pom.xml @@ -0,0 +1,33 @@ + + + + + + apm-collector-alerting + org.skywalking + 3.2.5-2017 + + 4.0.0 + + collector-alerting-define + jar + + \ No newline at end of file diff --git a/apm-collector/apm-collector-alerting/collector-alerting-define/src/main/java/org/skywalking/apm/collector/alerting/AlertingModule.java b/apm-collector/apm-collector-alerting/collector-alerting-define/src/main/java/org/skywalking/apm/collector/alerting/AlertingModule.java new file mode 100644 index 000000000..40f5247ff --- /dev/null +++ b/apm-collector/apm-collector-alerting/collector-alerting-define/src/main/java/org/skywalking/apm/collector/alerting/AlertingModule.java @@ -0,0 +1,37 @@ +/* + * Copyright 2017, OpenSkywalking Organization All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Project repository: https://github.com/OpenSkywalking/skywalking + */ + +package org.skywalking.apm.collector.alerting; + +import org.skywalking.apm.collector.core.module.Module; + +/** + * @author peng-yongsheng + */ +public class AlertingModule extends Module { + + public static final String NAME = "alerting"; + + @Override public String name() { + return NAME; + } + + @Override public Class[] services() { + return new Class[0]; + } +} diff --git a/apm-collector/apm-collector-alerting/collector-alerting-define/src/main/resources/META-INF/services/org.skywalking.apm.collector.core.module.Module b/apm-collector/apm-collector-alerting/collector-alerting-define/src/main/resources/META-INF/services/org.skywalking.apm.collector.core.module.Module new file mode 100644 index 000000000..c8058792c --- /dev/null +++ b/apm-collector/apm-collector-alerting/collector-alerting-define/src/main/resources/META-INF/services/org.skywalking.apm.collector.core.module.Module @@ -0,0 +1,19 @@ +# +# Copyright 2017, OpenSkywalking Organization All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Project repository: https://github.com/OpenSkywalking/skywalking +# + +org.skywalking.apm.collector.alerting.AlertingModule \ No newline at end of file diff --git a/apm-collector/apm-collector-alerting/collector-alerting-provider/pom.xml b/apm-collector/apm-collector-alerting/collector-alerting-provider/pom.xml new file mode 100644 index 000000000..b4e4318fe --- /dev/null +++ b/apm-collector/apm-collector-alerting/collector-alerting-provider/pom.xml @@ -0,0 +1,40 @@ + + + + + + apm-collector-alerting + org.skywalking + 3.2.5-2017 + + 4.0.0 + + collector-alerting-provider + jar + + + + org.skywalking + collector-agent-stream-define + ${project.version} + + + \ No newline at end of file diff --git a/apm-collector/apm-collector-alerting/collector-alerting-provider/src/main/java/org/skywalking/apm/collector/alerting/AlertingModuleProvider.java b/apm-collector/apm-collector-alerting/collector-alerting-provider/src/main/java/org/skywalking/apm/collector/alerting/AlertingModuleProvider.java new file mode 100644 index 000000000..9eaccab18 --- /dev/null +++ b/apm-collector/apm-collector-alerting/collector-alerting-provider/src/main/java/org/skywalking/apm/collector/alerting/AlertingModuleProvider.java @@ -0,0 +1,55 @@ +/* + * Copyright 2017, OpenSkywalking Organization All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Project repository: https://github.com/OpenSkywalking/skywalking + */ + +package org.skywalking.apm.collector.alerting; + +import java.util.Properties; +import org.skywalking.apm.collector.agent.stream.AgentStreamModule; +import org.skywalking.apm.collector.core.module.Module; +import org.skywalking.apm.collector.core.module.ModuleProvider; +import org.skywalking.apm.collector.core.module.ServiceNotProvidedException; + +/** + * @author peng-yongsheng + */ +public class AlertingModuleProvider extends ModuleProvider { + + @Override public String name() { + return "default"; + } + + @Override public Class module() { + return null; + } + + @Override public void prepare(Properties config) throws ServiceNotProvidedException { + + } + + @Override public void start(Properties config) throws ServiceNotProvidedException { + + } + + @Override public void notifyAfterCompleted() throws ServiceNotProvidedException { + + } + + @Override public String[] requiredModules() { + return new String[] {AgentStreamModule.NAME}; + } +} diff --git a/apm-collector/apm-collector-alerting/collector-alerting-provider/src/main/resources/META-INF/services/org.skywalking.apm.collector.core.module.ModuleProvider b/apm-collector/apm-collector-alerting/collector-alerting-provider/src/main/resources/META-INF/services/org.skywalking.apm.collector.core.module.ModuleProvider new file mode 100644 index 000000000..657b7248b --- /dev/null +++ b/apm-collector/apm-collector-alerting/collector-alerting-provider/src/main/resources/META-INF/services/org.skywalking.apm.collector.core.module.ModuleProvider @@ -0,0 +1,19 @@ +# +# Copyright 2017, OpenSkywalking Organization All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Project repository: https://github.com/OpenSkywalking/skywalking +# + +org.skywalking.apm.collector.alerting.AlertingModuleProvider \ No newline at end of file diff --git a/apm-collector/apm-collector-alerting/pom.xml b/apm-collector/apm-collector-alerting/pom.xml new file mode 100644 index 000000000..2b7da8b28 --- /dev/null +++ b/apm-collector/apm-collector-alerting/pom.xml @@ -0,0 +1,44 @@ + + + + + + apm-collector + org.skywalking + 3.2.5-2017 + + 4.0.0 + + apm-collector-alerting + pom + + collector-alerting-define + collector-alerting-provider + + + + + org.skywalking + apm-collector-core + ${project.version} + + + \ No newline at end of file diff --git a/apm-collector/pom.xml b/apm-collector/pom.xml index 45b42ec42..df641c9f7 100644 --- a/apm-collector/pom.xml +++ b/apm-collector/pom.xml @@ -49,6 +49,7 @@ apm-collector-agent-grpc apm-collector-agent-jetty apm-collector-agent-stream + apm-collector-alerting