Skip to content

IGNITE-10944: Plugin discovery data from PluginProvider.provideDiscoveryData should be available in PluginProvider.validateNewNode#5865

Closed
mcherkasov wants to merge 6 commits intoapache:masterfrom
gridgain:IGNITE-10944
Closed

IGNITE-10944: Plugin discovery data from PluginProvider.provideDiscoveryData should be available in PluginProvider.validateNewNode#5865
mcherkasov wants to merge 6 commits intoapache:masterfrom
gridgain:IGNITE-10944

Conversation

@mcherkasov
Copy link
Contributor

No description provided.

validateNode with ClusterNode only is deprecated.
@mcherkasov mcherkasov changed the title Added validateNode method with discoData argument. IGNITE-10944: Plugin discovery data from PluginProvider.provideDiscoveryData should be available in PluginProvider.validateNewNode Jan 23, 2019
Copy link
Contributor

@alamar alamar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix CC

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License is desired

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is desired as per CC

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is desired as per CC

@@ -0,0 +1,117 @@
package org.apache.ignite.plugin;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License is desired

import org.apache.ignite.configuration.IgniteConfiguration;
import org.jetbrains.annotations.Nullable;

public class NodeValidationPluginProvider implements PluginProvider, IgnitePlugin {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comments everywhere as per CC

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need a suite for that? Is it present on TC?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add test class directly?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs @inheritdoc comment

import org.junit.runners.JUnit4;

@RunWith(JUnit4.class)
public class PluginNodeValidationTest extends GridCommonAbstractTest {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comments as per CC

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"public static" is a bad idea, please make it a setter at least.

@asfgit asfgit closed this in 4ea443c Jan 24, 2019
mcherkasov added a commit to gridgain/apache-ignite that referenced this pull request Jan 24, 2019
…deprecate old method - Fixes apache#5865.

Signed-off-by: Ilya Kasnacheev <ilya.kasnacheev@gmail.com>

(cherry picked from commit 4ea443c)
mcherkasov added a commit to gridgain/apache-ignite that referenced this pull request Jan 24, 2019
…deprecate old method - Fixes apache#5865.

Signed-off-by: Ilya Kasnacheev <ilya.kasnacheev@gmail.com>

(cherry picked from commit 4ea443c)
mcherkasov added a commit to gridgain/apache-ignite that referenced this pull request Jan 24, 2019
…deprecate old method - Fixes apache#5865.

Signed-off-by: Ilya Kasnacheev <ilya.kasnacheev@gmail.com>

(cherry picked from commit 4ea443c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments