Public Member Functions | |
DatabaseObject (String databaseName, String controllerName, boolean isDistributed) | |
String | getIpAdress () |
String | getPort () |
String | getState () |
void | setState (String state) |
String | getControllerName () |
boolean | isDistributed () |
void | setDistributed (boolean isDistributed) |
Definition at line 38 of file DatabaseObject.java.
|
Creates a new
Definition at line 52 of file DatabaseObject.java. 00054 { 00055 super(); 00056 setText(databaseName); 00057 setName(databaseName); 00058 this.controllerName = controllerName; 00059 this.isDistributed = isDistributed; 00060 setBackground(Color.white); 00061 if (isDistributed) 00062 setIcon(GuiIcons.DATABASE_DISTRIBUTED_ICON); 00063 else 00064 setIcon(GuiIcons.DATABASE_SINGLE_ICON); 00065 }
|
|
Returns the controllerName value.
Definition at line 116 of file DatabaseObject.java. Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionShutdownDatabase(). 00117 {
00118 return controllerName;
00119 }
|
|
Get ip address of this controller
Definition at line 72 of file DatabaseObject.java. 00073 { 00074 return controllerName.substring(0, controllerName.indexOf(':')); 00075 }
|
|
Get port of this controller
Definition at line 82 of file DatabaseObject.java. 00083 { 00084 return controllerName.substring(controllerName.indexOf(':') + 1); 00085 }
|
|
Get the state of the controller
Definition at line 92 of file DatabaseObject.java. 00093 {
00094 return state;
00095 }
|
|
Returns the isDistributed value.
Definition at line 126 of file DatabaseObject.java. 00127 {
00128 return isDistributed;
00129 }
|
|
Sets the isDistributed value.
Definition at line 136 of file DatabaseObject.java. 00137 {
00138 this.isDistributed = isDistributed;
00139 }
|
|
Set state of controller and change its icon
Definition at line 102 of file DatabaseObject.java. 00103 { 00104 if (state.equals(GuiConstants.CONTROLLER_STATE_UP)) 00105 setIcon(GuiIcons.CONTROLLER_READY); 00106 else 00107 setIcon(GuiIcons.CONTROLLER_DOWN); 00108 this.state = state; 00109 }
|