Repository: storm Updated Branches: refs/heads/1.x-branch 23a539252 -> 821d4efe0
Decommissioning SimpleTransportPlugin Project: http://git-wip-us.apache.org/repos/asf/storm/repo Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/59b29b21 Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/59b29b21 Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/59b29b21 Branch: refs/heads/1.x-branch Commit: 59b29b218357aaf39ae70e829ad5ff20e0732431 Parents: 3a6e3e4 Author: Kishor Patil <[email protected]> Authored: Wed Mar 2 23:36:32 2016 -0600 Committer: Kishor Patil <[email protected]> Committed: Wed Mar 2 23:55:21 2016 -0600 ---------------------------------------------------------------------- storm-core/src/jvm/org/apache/storm/Config.java | 4 ++++ .../org/apache/storm/security/auth/SimpleTransportPlugin.java | 2 ++ .../org/apache/storm/security/auth/ThriftConnectionType.java | 6 ++++++ .../org/apache/storm/testing/SingleUserSimpleTransport.java | 5 ++++- 4 files changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/storm/blob/59b29b21/storm-core/src/jvm/org/apache/storm/Config.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/org/apache/storm/Config.java b/storm-core/src/jvm/org/apache/storm/Config.java index 3eedc63..37565b8 100644 --- a/storm-core/src/jvm/org/apache/storm/Config.java +++ b/storm-core/src/jvm/org/apache/storm/Config.java @@ -550,7 +550,9 @@ public class Config extends HashMap<String, Object> { /** * The maximum buffer size thrift should use when reading messages. + * @deprecated As SimpleTrasportPlugin is deprecated, no other thrift transport plugin uses this configuration. */ + @Deprecated @isInteger @isPositiveNumber public static final String NIMBUS_THRIFT_MAX_BUFFER_SIZE = "nimbus.thrift.max_buffer_size"; @@ -1089,7 +1091,9 @@ public class Config extends HashMap<String, Object> { /** * The maximum buffer size thrift should use when reading messages for DRPC. + * @deprecated As SimpleTrasportPlugin is deprecated, no other thrift transport plugin uses this configuration. */ + @Deprecated @isNumber @isPositiveNumber public static final String DRPC_MAX_BUFFER_SIZE = "drpc.max_buffer_size"; http://git-wip-us.apache.org/repos/asf/storm/blob/59b29b21/storm-core/src/jvm/org/apache/storm/security/auth/SimpleTransportPlugin.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/org/apache/storm/security/auth/SimpleTransportPlugin.java b/storm-core/src/jvm/org/apache/storm/security/auth/SimpleTransportPlugin.java index 339bae9..7343a2d 100644 --- a/storm-core/src/jvm/org/apache/storm/security/auth/SimpleTransportPlugin.java +++ b/storm-core/src/jvm/org/apache/storm/security/auth/SimpleTransportPlugin.java @@ -49,7 +49,9 @@ import org.slf4j.LoggerFactory; * Simple transport for Thrift plugin. * * This plugin is designed to be backward compatible with existing Storm code. + * @deprecated Use PlainSaslTransportPlugin instead as default insecure transport plugin */ +@Deprecated public class SimpleTransportPlugin implements ITransportPlugin { protected ThriftConnectionType type; protected Map storm_conf; http://git-wip-us.apache.org/repos/asf/storm/blob/59b29b21/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java b/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java index 27db143..f627956 100644 --- a/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java +++ b/storm-core/src/jvm/org/apache/storm/security/auth/ThriftConnectionType.java @@ -71,6 +71,12 @@ public enum ThriftConnectionType { return Utils.getInt(conf.get(_threadsConf)); } + /** + * @deprecated As SimpleTrasportPlugin is deprecated, no other thrift transport plugin uses this method. + * @param conf + * @return + */ + @Deprecated public int getMaxBufferSize(Map conf) { return Utils.getInt(conf.get(_buffConf)); } http://git-wip-us.apache.org/repos/asf/storm/blob/59b29b21/storm-core/src/jvm/org/apache/storm/testing/SingleUserSimpleTransport.java ---------------------------------------------------------------------- diff --git a/storm-core/src/jvm/org/apache/storm/testing/SingleUserSimpleTransport.java b/storm-core/src/jvm/org/apache/storm/testing/SingleUserSimpleTransport.java index 0196a23..97bb6c0 100644 --- a/storm-core/src/jvm/org/apache/storm/testing/SingleUserSimpleTransport.java +++ b/storm-core/src/jvm/org/apache/storm/testing/SingleUserSimpleTransport.java @@ -23,7 +23,10 @@ import javax.security.auth.Subject; import java.security.Principal; import java.util.HashSet; - +/** + * @deprecated This is no longer available for testing purpose. + */ +@Deprecated public class SingleUserSimpleTransport extends SimpleTransportPlugin { @Override protected Subject getDefaultSubject() {
