Skip to content

Commit 538566f

Browse files
committed
IGNITE-28186 DeploymentSPI marked as deprecated (#12874)
(cherry picked from commit 202b1fc)
1 parent ffc0dac commit 538566f

10 files changed

Lines changed: 46 additions & 0 deletions

File tree

modules/core/src/main/java/org/apache/ignite/configuration/DeploymentMode.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@
6969
* any need for explicit deployment.
7070
* </li>
7171
* </ol>
72+
*
73+
* @deprecated Will be replaced with the
74+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
7275
*/
76+
@Deprecated
7377
public enum DeploymentMode {
7478
/**
7579
* In this mode deployed classes do not share resources. Basically, resources are created

modules/core/src/main/java/org/apache/ignite/configuration/IgniteConfiguration.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,10 @@ public IgniteConfiguration setCollisionSpi(CollisionSpi colSpi) {
21402140
* {@link LocalDeploymentSpi} will be used.
21412141
*
21422142
* @return Grid deployment SPI implementation or {@code null} to use default implementation.
2143+
* @deprecated Will be replaced with the
2144+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
21432145
*/
2146+
@Deprecated
21442147
public DeploymentSpi getDeploymentSpi() {
21452148
return deploySpi;
21462149
}
@@ -2151,7 +2154,10 @@ public DeploymentSpi getDeploymentSpi() {
21512154
* @param deploySpi Fully configured instance of {@link DeploymentSpi}.
21522155
* @see IgniteConfiguration#getDeploymentSpi()
21532156
* @return {@code this} for chaining.
2157+
* @deprecated Will be replaced with the
2158+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
21542159
*/
2160+
@Deprecated
21552161
public IgniteConfiguration setDeploymentSpi(DeploymentSpi deploySpi) {
21562162
this.deploySpi = deploySpi;
21572163

@@ -2484,7 +2490,10 @@ public IgniteConfiguration setAddressResolver(AddressResolver addrRslvr) {
24842490
*
24852491
* @param deployMode Task classes and resources sharing mode.
24862492
* @return {@code this} for chaining.
2493+
* @deprecated Will be replaced with the
2494+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
24872495
*/
2496+
@Deprecated
24882497
public IgniteConfiguration setDeploymentMode(DeploymentMode deployMode) {
24892498
this.deployMode = deployMode;
24902499

@@ -2496,7 +2505,10 @@ public IgniteConfiguration setDeploymentMode(DeploymentMode deployMode) {
24962505
* Refer to {@link DeploymentMode} documentation for more information.
24972506
*
24982507
* @return Deployment mode.
2508+
* @deprecated Will be replaced with the
2509+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
24992510
*/
2511+
@Deprecated
25002512
public DeploymentMode getDeploymentMode() {
25012513
return deployMode;
25022514
}

modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
/**
2323
* Listener for deployment events. It is used by grid implementation
2424
* to properly create or release resources associated with any deployment.
25+
*
26+
* @deprecated Will be replaced with the
27+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
2528
*/
29+
@Deprecated
2630
public interface DeploymentListener extends EventListener {
2731
/**
2832
* Called when a deployment has been unregistered..

modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResource.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919

2020
/**
2121
* Generic abstraction over deployed resource containing resource's name, class and corresponding class loader.
22+
*
23+
* @deprecated Will be replaced with the
24+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
2225
*/
26+
@Deprecated
2327
public interface DeploymentResource {
2428
/**
2529
* Gets resource name, either class name or alias name, such as alias

modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentResourceAdapter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121

2222
/**
2323
* Simple adapter for {@link DeploymentResource} interface.
24+
*
25+
* @deprecated Will be replaced with the
26+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
2427
*/
28+
@Deprecated
2529
public class DeploymentResourceAdapter implements DeploymentResource {
2630
/** */
2731
private final String name;

modules/core/src/main/java/org/apache/ignite/spi/deployment/DeploymentSpi.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
* via {@link org.apache.ignite.Ignite#configuration()} method to check its configuration properties or call other non-SPI
5858
* methods. Note again that calling methods from this interface on the obtained instance can lead
5959
* to undefined behavior and explicitly not supported.
60+
*
61+
* @deprecated Will be replaced with the
62+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
6063
*/
64+
@Deprecated
6165
public interface DeploymentSpi extends IgniteSpi {
6266
/**
6367
* Finds class loader for the given class.

modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpi.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@
6262
* with {@link org.apache.ignite.configuration.IgniteConfiguration} as it is used by default and has no
6363
* configuration parameters.
6464
* @see org.apache.ignite.spi.deployment.DeploymentSpi
65+
* @deprecated Will be replaced with the
66+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
6567
*/
6668
@IgniteSpiMultipleInstancesSupport(true)
6769
@IgnoreIfPeerClassLoadingDisabled
70+
@Deprecated
6871
public class LocalDeploymentSpi extends IgniteSpiAdapter implements DeploymentSpi {
6972
/** Enables additional check for resource name on resources removal. */
7073
@SystemProperty(value = "Enables an additional check of a resource name on resources removal")

modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpiMBean.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@
2222

2323
/**
2424
* Management MBean for {@link LocalDeploymentSpi} SPI.
25+
*
26+
* @deprecated Will be replaced with the
27+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
2528
*/
2629
@MXBeanDescription("MBean that provides access to local deployment SPI configuration.")
30+
@Deprecated
2731
public interface LocalDeploymentSpiMBean extends IgniteSpiManagementMBean {
2832
// No-op.
2933
}

modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpi.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,12 @@
306306
* <br>
307307
* For information about Spring framework visit <a href="http://www.springframework.org/">www.springframework.org</a>
308308
* @see org.apache.ignite.spi.deployment.DeploymentSpi
309+
* @deprecated Will be replaced with the
310+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
309311
*/
310312
@IgniteSpiMultipleInstancesSupport(true)
311313
@IgniteSpiConsistencyChecked(optional = false)
314+
@Deprecated
312315
@SuppressWarnings({"FieldAccessedSynchronizedAndUnsynchronized"})
313316
public class UriDeploymentSpi extends IgniteSpiAdapter implements DeploymentSpi {
314317
/**

modules/urideploy/src/main/java/org/apache/ignite/spi/deployment/uri/UriDeploymentSpiMBean.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323

2424
/**
2525
* Management bean for {@link UriDeploymentSpi}.
26+
*
27+
* @deprecated Will be replaced with the
28+
* <a href="https://cwiki.apache.org/confluence/display/IGNITE/IEP-144+IgniteClassPath">IgniteClassPath</a> in the next versions.
2629
*/
30+
@Deprecated
2731
@MXBeanDescription("MBean that provides access to URI deployment SPI configuration.")
2832
public interface UriDeploymentSpiMBean extends IgniteSpiManagementMBean {
2933
/**

0 commit comments

Comments
 (0)