クラス org.objectweb.cjdbc.console.gui.objects.DatabaseObject

org.objectweb.cjdbc.console.gui.objects.DatabaseObjectに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.console.gui.objects.DatabaseObjectのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

This class defines a DatabaseObject

作者:
Nicolas Modrzyk
バージョン:
1.0

DatabaseObject.java38 行で定義されています。

Public メソッド

 DatabaseObject (String databaseName, String controllerName, boolean isDistributed)
String getIpAdress ()
String getPort ()
String getState ()
void setState (String state)
String getControllerName ()
boolean isDistributed ()

Private 変数

String state
String controllerName
boolean isDistributed


コンストラクタとデストラクタ

org.objectweb.cjdbc.console.gui.objects.DatabaseObject.DatabaseObject String  databaseName,
String  controllerName,
boolean  isDistributed
 

Creates a new ControllerObject object

引数:
databaseName the name of the database
controllerName the name of the controller the database belongs to
isDistributed if the database is distributed set to true
DatabaseObject.java52 行で定義されています。
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 }


メソッド

String org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getControllerName  ) 
 

Returns the controllerName value.

戻り値:
Returns the controllerName.
DatabaseObject.java116 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.controllerName.

参照元 org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionShutdownDatabase().

00117 { 00118 return controllerName; 00119 }

String org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getIpAdress  ) 
 

Get ip address of this controller

戻り値:
ipAddress
DatabaseObject.java72 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.controllerName.

参照元 org.objectweb.cjdbc.console.gui.CjdbcGui.actionGETDatabaseBean().

00073 { 00074 return controllerName.substring(0, controllerName.indexOf(':')); 00075 }

String org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getPort  ) 
 

Get port of this controller

戻り値:
port
DatabaseObject.java82 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.controllerName.

参照元 org.objectweb.cjdbc.console.gui.CjdbcGui.actionGETDatabaseBean().

00083 { 00084 return controllerName.substring(controllerName.indexOf(':') + 1); 00085 }

String org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getState  ) 
 

Get the state of the controller

戻り値:
state of controller as defined in gui constants , null if unknown
DatabaseObject.java92 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.state.

00093 { 00094 return state; 00095 }

boolean org.objectweb.cjdbc.console.gui.objects.DatabaseObject.isDistributed  ) 
 

Returns the isDistributed value.

戻り値:
Returns the isDistributed.
DatabaseObject.java125 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.isDistributed.

00126 { 00127 return isDistributed; 00128 }

void org.objectweb.cjdbc.console.gui.objects.DatabaseObject.setState String  state  ) 
 

Set state of controller and change its icon

引数:
state string description of the state
DatabaseObject.java102 行で定義されています。
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 }


変数

String org.objectweb.cjdbc.console.gui.objects.DatabaseObject.controllerName [private]
 

DatabaseObject.java41 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getControllerName(), org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getIpAdress(), と org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getPort().

boolean org.objectweb.cjdbc.console.gui.objects.DatabaseObject.isDistributed [private]
 

DatabaseObject.java42 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.isDistributed().

String org.objectweb.cjdbc.console.gui.objects.DatabaseObject.state [private]
 

DatabaseObject.java40 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getState().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:22 2004に生成されました。 doxygen 1.3.8