Telnet command
SOFAArk containers provide a simple telnet server tool to run time view the container status. Currently, you can view information about Plugin and Biz.
Usage
Run the telnet command to connect to the server. The port number is 1234. The command format is as follows:
telnet localhost 1234Enter the interactive interface:
telnet localhost 1234
Trying127.0.0.1...
Connected to localhost.
Escape character is'^]'.
sofa-ark>
sofa-ark>
sofa-ark>Currently, you can view information about Plugin and Biz. For more information about related commands, see the following tips:
sofa-ark>h
PluginCommandTips:
USAGE: plugin [option...][pluginName...]
SAMPLE: plugin -m plugin-A plugin-B
-h Shows the help message.
-a Shows all plugin name.
-m Shows the meta info of specified pluginName.
-s Shows the service info of specified pluginName.
-d Shows the detail info of specified pluginName.
BizCommandTips:
USAGE: biz [option...][arguments...]
SAMPLE: biz -m bizIdentityA bizIdentityB.
-h Shows the help message.
-a Shows all biz.
-m Shows the meta info of specified bizIdentity.
-s Shows the service info of specified bizIdentity.
-d Shows the detail info of specified bizIdentity.
-i Install biz of specified bizIdentity or bizUrl.
-u Uninstall biz of specified bizIdentity.
-o Switch biz of specified bizIdentity.
sofa-ark>Plugin commands
plugin commands allow you to view information about plug-ins, such as class (resource) import and export configurations and plug-in packaging configurations. For example:
sofa-ark>plugin -md runtime-sofa-boot-plugin
PluginName: runtime-sofa-boot-plugin
Version:3.1.3
Priority:1500
Activator: com.alipay.sofa.runtime.integration.activator.SofaRuntimeActivator
ExportPackages: com.alipay.sofa.runtime.api.*,com.alipay.sofa.runtime.client.*,com.alipay.sofa.runtime.component.*,com.alipay.sofa.runtime.constants.*,com.alipay.sofa.runtime.integration.*,com.alipay.sofa.runtime.model.*,com.alipay.sofa.runtime.service.component,com.alipay.sofa.runtime.service.helper,com.alipay.sofa.runtime.spi.client,com.alipay.sofa.runtime.spi.component,com.alipay.sofa.runtime.spi.health,com.alipay.sofa.runtime.spi.log,com.alipay.sofa.runtime.spi.binding,com.alipay.sofa.runtime.spi.util,org.aopalliance.aop,org.aopalliance.intercept
ImportPackages: \
ExportClasses: com.alipay.sofa.runtime.service.binding.JvmBinding,com.alipay.sofa.runtime.SofaFramework,com.alipay.sofa.runtime.SofaRuntimeProperties,com.alipay.sofa.runtime.service.binding.JvmBindingParam,com.alipay.sofa.runtime.spi.service.ServiceProxy
ImportClasses: \
ExportResources: \
ImportResources: \
GroupId: com.alipay.sofa
ArtifactId: runtime-sofa-boot-plugin
Version:3.1.3
URL: jar:file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/
ClassLoader: com.alipay.sofa.ark.container.service.classloader.PluginClassLoader@420a63fb
ClassPath: file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/log4j-api-2.11.1.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/aopalliance-1.0.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/log4j-to-slf4j-2.11.1.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/sofa-common-tools-1.0.18.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/log-sofa-boot-starter-1.0.18.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/runtime-sofa-boot-plugin-3.1.3.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/runtime-sofa-boot-starter-3.1.3.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/slf4j-api-1.7.25.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/hessian-3.3.6.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/javax.annotation-api-1.3.2.jar!/,file:/Users/qilong.zql/.m2/repository/com/alipay/sofa/runtime-sofa-boot-plugin/3.1.3/runtime-sofa-boot-plugin-3.1.3.jar!/lib/infra-sofa-boot-starter-3.1.3.jar!/
sofa-ark>You can use other commands to view the prompt information. You cannot use -s option to view services.
Biz commands
biz commands allow you to view Biz-related information and also support Biz operation commands such as installation, uninstallation, and activation. For example:
sofa-ark>biz -m mvc-two:0.0.1-SNAPSHOT
BizName: mvc-two
Version:0.0.1-SNAPSHOT
Priority:100
MainClass: com.example.mvctwo.MvcTwoApplication
WebContextPath: another
DenyImportPackages: \
DenyImportClasses: \
DenyImportResources: \
sofa-ark>You can use other commands to view the prompt information. You cannot use -s option to view services.
The Telnet server is only a tool provided by SOFAArk for convenient run time and viewing information. You recommend not directly run telnet commands to perform Biz operations online, recommend use APIs or dynamic configuration methods.