Telnet Command Extensions
Expansion Description
All servers support telnet access for manual intervention.
Extension ports
org.apache.dubbo.remoting.telnet.TelnetHandler
Extended configuration
<dubbo:protocol telnet="xxx,yyy" />
<!-- The default value setting, when <dubbo:protocol> does not configure the telnet attribute, use this configuration -->
<dubbo:provider telnet="xxx,yyy" />
Known extensions
org.apache.dubbo.remoting.telnet.support.ClearTelnetHandlerorg.apache.dubbo.remoting.telnet.support.ExitTelnetHandlerorg.apache.dubbo.remoting.telnet.support.HelpTelnetHandlerorg.apache.dubbo.remoting.telnet.support.StatusTelnetHandlerorg.apache.dubbo.rpc.dubbo.telnet.ListTelnetHandlerorg.apache.dubbo.rpc.dubbo.telnet.ChangeTelnetHandlerorg.apache.dubbo.rpc.dubbo.telnet.CurrentTelnetHandlerorg.apache.dubbo.rpc.dubbo.telnet.InvokeTelnetHandlerorg.apache.dubbo.rpc.dubbo.telnet.TraceTelnetHandlerorg.apache.dubbo.rpc.dubbo.telnet.CountTelnetHandlerorg.apache.dubbo.rpc.dubbo.telnet.PortTelnetHandler
Extended example
Maven project structure:
src
 |-main
    |-java
        |-com
            |-xxx
                |-XxxTelnetHandler.java (implement TelnetHandler interface)
    |-resources
        |-META-INF
            |-dubbo
                |-org.apache.dubbo.remoting.telnet.TelnetHandler (plain text file, content: xxx=com.xxx.XxxTelnetHandler)
XxxTelnetHandler.java:
package com.xxx;
 
import org.apache.dubbo.remoting.telnet.TelnetHandler;
 
@Help(parameter="...", summary="...", detail="...")
 
public class XxxTelnetHandler implements TelnetHandler {
    public String telnet(Channel channel, String message) throws RemotingException {
        //...
    }
}
META-INF/dubbo/org.apache.dubbo.remoting.telnet.TelnetHandler:
xxx=com.xxx.XxxTelnetHandler
Usage
telnet 127.0.0.1 20880
dubbo> xxx args
Last modified January 2, 2023: Enhance en docs (#1798) (95a9f4f6c1)
