use of org.apache.ignite.spi.discovery.TestReconnectSecurityPluginProvider in project ignite by apache.
the class GridDiscoveryManagerAttributesSelfTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
if (binaryMarshallerEnabled)
cfg.setMarshaller(new BinaryMarshaller());
cfg.setIncludeProperties(PREFER_IPV4);
cfg.setDeploymentMode(mode);
cfg.setPeerClassLoadingEnabled(p2pEnabled);
if (secEnabled)
cfg.setPluginProviders(new TestReconnectSecurityPluginProvider());
return cfg;
}
use of org.apache.ignite.spi.discovery.TestReconnectSecurityPluginProvider in project ignite by apache.
the class TcpDiscoveryNodeAttributesUpdateOnReconnectTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String gridName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(gridName);
if (gridName.contains("client")) {
Map<String, String> attrs = new HashMap<>();
attrs.put("test", "1");
cfg.setUserAttributes(attrs);
}
IgniteClientReconnectAbstractTest.TestTcpDiscoverySpi spi = new IgniteClientReconnectAbstractTest.TestTcpDiscoverySpi();
TcpDiscoveryIpFinder finder = ((TcpDiscoverySpi) cfg.getDiscoverySpi()).getIpFinder();
spi.setIpFinder(finder);
cfg.setDiscoverySpi(spi);
cfg.setPluginProviders(new TestReconnectSecurityPluginProvider());
return cfg;
}
Aggregations