connectionentryimplpeer.java
来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 81 行
JAVA
81 行
package org.xmlBlaster.engine.admin.extern.snmp;/** * ConnectionEntryImplPeer is the implementation side of a bridge pattern. * Implements the methods, which are called by ConnectionEntryImpl. * @version @VERSION@ * @author Udo Thalmann */public class ConnectionEntryImplPeer{ private String connectionHost; private long connectionPort; private String connectionAddress; private int connectionProtocol; /** * Initializes ConnectionEntry mib variables. * @param ConnectionHost name of connected host. * @param ConnectionPort number of connected port. * @param ConnectionAddress connection protocol specific address, e.g. http:://www.netscape.de/. * @param ConnectionProtocol e.g. bootstrap, ior, rmi, xmlrpc, socket, etc. */ public ConnectionEntryImplPeer(String connectionHost, long connectionPort, String connectionAddress, int connectionProtocol) { this.connectionHost = connectionHost; this.connectionPort = connectionPort; this.connectionAddress = connectionAddress; this.connectionProtocol = connectionProtocol; } /** * Gets connectionHost from xmlBlaster application. * @return ConnectionHost name of the connected host. */ public String get_connectionHost() { return connectionHost; } /** * Gets connectionPort from xmlBlaster application. * @return ConnectionPort port of the connected host. */ public long get_connectionPort() { return connectionPort; } /** * Gets connectionAddress from xmlBlaster application. * @return ConnectionAddress address of the connected host. */ public String get_connectionAddress() { return connectionAddress; } /** * Gets connectionProtocol from xmlBlaster application. * @return ConnectionProtocol protocol used for connection, * i.e. bootstrap, ior, rmi, xmlrpc, socket, etc. */ public int get_connectionProtocol() { return connectionProtocol; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?