use of com.cubrid.cubridmanager.core.replication.model.MasterInfo in project cubrid-manager by CUBRID.
the class ReplServerDialog method initialize.
/**
* initialize some values
*/
private void initialize() {
if (node != null) {
ReplicationInfo replInfo = (ReplicationInfo) node.getAdapter(ReplicationInfo.class);
if (replInfo != null && replInfo.getMasterList() != null && replInfo.getMasterList().size() > 0) {
MasterInfo masterInfo = replInfo.getMasterList().get(0);
ipText.setText(masterInfo.getMasterIp());
portText.setText("8001");
portText.selectAll();
userNameText.setText("admin");
passwordText.setText("");
mdbNameText.setText(masterInfo.getMasterDbName());
replServerPortText.setText(masterInfo.getReplServerPort());
}
portText.addModifyListener(this);
passwordText.addModifyListener(this);
}
}
use of com.cubrid.cubridmanager.core.replication.model.MasterInfo in project cubrid-manager by CUBRID.
the class ChangeTablesPage method initialize.
/**
* initialize some values
*/
private void initialize() {
MasterInfo masterInfo = null;
if (replNode != null) {
String type = replNode.getType();
if (CubridNodeType.DATABASE.equals(type)) {
ReplicationInfo replInfo = (ReplicationInfo) replNode.getAdapter(ReplicationInfo.class);
masterInfo = replInfo != null && replInfo.getMasterList() != null && replInfo.getMasterList().size() > 0 ? replInfo.getMasterList().get(0) : null;
}
}
if (masterInfo == null) {
return;
}
List<String> replClassList = masterInfo.getReplTableList();
boolean isReplAll = masterInfo.isReplAllTable();
selectTableComp.setReplAllTables(isReplAll);
selectTableComp.setSelectedTableList(replClassList);
}
Aggregations