版权声明:本文为博主原创文章,欢迎转载,请注明出处。 https://blog.csdn.net/plgy_Y/article/details/77948491
import 枚举类型
java_import org.apache.hadoop.hbase.replication.ReplicationPeer::PeerProtocol
使用
PeerProtocol.valueOf(protocol)
protocol是string类型
PeerProtocol的定义代码为