public class Connector extends Object
Constructor and Description |
---|
Connector() |
Connector(String host,
int port,
String user,
String password)
构造
|
Connector(String user,
String password,
String group)
构造
|
Modifier and Type | Method and Description |
---|---|
String |
getGroup()
获得用户组名
|
String |
getHost()
获得主机名
|
String |
getPassword()
获得密码
|
int |
getPort()
获得端口号
|
String |
getUser()
获得用户名
|
void |
setGroup(String group)
设定用户组名
|
void |
setHost(String host)
设定主机名
|
void |
setPassword(String password)
设定密码
|
void |
setPort(int port)
设定端口号
|
void |
setUser(String name)
设定用户名
|
String |
toString()
toString方法仅用于测试显示
|
public Connector()
public Connector(String user, String password, String group)
user
- 用户名password
- 密码group
- 组public String getHost()
public void setHost(String host)
host
- 主机名public int getPort()
public void setPort(int port)
port
- 端口号public String getUser()
public void setUser(String name)
name
- 用户名public String getPassword()
public void setPassword(String password)
password
- 密码public String getGroup()
public void setGroup(String group)
group
- 用户组Copyright © 2024. All rights reserved.