diff --git a/apm-collector/apm-collector-baseline/collector-baseline-computing-define/pom.xml b/apm-collector/apm-collector-baseline/collector-baseline-computing-define/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..c94eb89a209524d2d86de22e53b1af37276fe3da --- /dev/null +++ b/apm-collector/apm-collector-baseline/collector-baseline-computing-define/pom.xml @@ -0,0 +1,33 @@ + + + + + + apm-collector-baseline + org.skywalking + 3.2.4-2017 + + 4.0.0 + + collector-baseline-computing-define + + + \ No newline at end of file diff --git a/apm-collector/apm-collector-baseline/collector-baseline-computing-define/src/main/java/org/skywalking/apm/collector/baseline/computing/ComputingModule.java b/apm-collector/apm-collector-baseline/collector-baseline-computing-define/src/main/java/org/skywalking/apm/collector/baseline/computing/ComputingModule.java new file mode 100644 index 0000000000000000000000000000000000000000..c90c059854ef4b9ff2383dc905ab38a5f96ce331 --- /dev/null +++ b/apm-collector/apm-collector-baseline/collector-baseline-computing-define/src/main/java/org/skywalking/apm/collector/baseline/computing/ComputingModule.java @@ -0,0 +1,38 @@ +/* + * 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.baseline.computing; + +import org.skywalking.apm.collector.core.module.Module; + +/** + * The ComputingModule defines the required service interfaces. + * + * @author wu-sheng + */ +public class ComputingModule extends Module { + public static final String NAME = "baseline-computing"; + + @Override public String name() { + return NAME; + } + + @Override public Class[] services() { + return new Class[0]; + } +} diff --git a/apm-collector/apm-collector-baseline/collector-baseline-computing-define/src/main/resources/services/org.skywalking.apm.collector.core.module.Module b/apm-collector/apm-collector-baseline/collector-baseline-computing-define/src/main/resources/services/org.skywalking.apm.collector.core.module.Module new file mode 100644 index 0000000000000000000000000000000000000000..bca5d350395df4130ed6deee04f8c16c6af5716f --- /dev/null +++ b/apm-collector/apm-collector-baseline/collector-baseline-computing-define/src/main/resources/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.baseline.computing.ComputingModule \ No newline at end of file diff --git a/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/pom.xml b/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..94513d0c463a623f0a3591a20b70323b31ca6e04 --- /dev/null +++ b/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/pom.xml @@ -0,0 +1,44 @@ + + + + + + apm-collector-baseline + org.skywalking + 3.2.4-2017 + + 4.0.0 + + collector-baseline-computing-provider + + + + org.skywalking + collector-baseline-computing-define + ${project.version} + + + org.skywalking + collector-baseline-computing-define + ${project.version} + + + \ No newline at end of file diff --git a/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/src/main/java/org/skywalking/collector/baseline/computing/provider/ComputingProvider.java b/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/src/main/java/org/skywalking/collector/baseline/computing/provider/ComputingProvider.java new file mode 100644 index 0000000000000000000000000000000000000000..e81124dbac4720c5b981aa0841a7cd5a9da493ed --- /dev/null +++ b/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/src/main/java/org/skywalking/collector/baseline/computing/provider/ComputingProvider.java @@ -0,0 +1,58 @@ +/* + * 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.collector.baseline.computing.provider; + +import java.util.Properties; +import org.skywalking.apm.collector.baseline.computing.ComputingModule; +import org.skywalking.apm.collector.core.module.Module; +import org.skywalking.apm.collector.core.module.ModuleProvider; +import org.skywalking.apm.collector.core.module.ServiceNotProvidedException; + +/** + * The ComputingProvider is the default implementation of {@link ComputingModule} + * + * @author wu-sheng + */ +public class ComputingProvider extends ModuleProvider { + public static final String NAME = "default"; + + @Override public String name() { + return NAME; + } + + @Override public Class module() { + return ComputingModule.class; + } + + @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[0]; + } +} diff --git a/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/src/main/resources/services/org.skywalking.apm.collector.core.module.ModuleProvider b/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/src/main/resources/services/org.skywalking.apm.collector.core.module.ModuleProvider new file mode 100644 index 0000000000000000000000000000000000000000..d31a7818a1dc7de5dde3b2863956c115e3cf359d --- /dev/null +++ b/apm-collector/apm-collector-baseline/collector-baseline-computing-provider/src/main/resources/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.collector.baseline.computing.provider.ComputingProvider \ No newline at end of file diff --git a/apm-collector/apm-collector-baseline/collector-baseline-scheduler-define/pom.xml b/apm-collector/apm-collector-baseline/collector-baseline-scheduler-define/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..3e77641ba4a372f42e07986a04f96cec15929e9f --- /dev/null +++ b/apm-collector/apm-collector-baseline/collector-baseline-scheduler-define/pom.xml @@ -0,0 +1,33 @@ + + + + + + apm-collector-baseline + org.skywalking + 3.2.4-2017 + + 4.0.0 + + collector-baseline-scheduler-define + + + \ No newline at end of file diff --git a/apm-collector/apm-collector-baseline/pom.xml b/apm-collector/apm-collector-baseline/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..d4c18d446398a89ff99888a847e8c9c3d3632a4d --- /dev/null +++ b/apm-collector/apm-collector-baseline/pom.xml @@ -0,0 +1,45 @@ + + + + + + apm-collector + org.skywalking + 3.2.4-2017 + + 4.0.0 + + apm-collector-baseline + pom + + collector-baseline-computing-define + collector-baseline-computing-provider + collector-baseline-scheduler-define + + + + + 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 03ee98a81b76a7485ee9518cf0fb0ae85109dcc9..b6c30ec5727c7c12c96ed14047e783c50ed10c58 100644 --- a/apm-collector/pom.xml +++ b/apm-collector/pom.xml @@ -46,6 +46,7 @@ apm-collector-stream apm-collector-queue apm-collector-instrument + apm-collector-baseline