CREATE TABLE
statements.
CreateTableAll.java の 35 行で定義されています。
Public メソッド | |
CreateTableAll () | |
CreateTableAll (ArrayList backendList) | |
ArrayList | getBackends (ArrayList backends) |
String | getInformation () |
void | addBackendName (String name) |
ArrayList | getBackendList () |
int | getNumberOfNodes () |
void | setNumberOfNodes (int numberOfNodes) |
String | getTableName () |
void | setTableName (String tableName) |
int | getPolicy () |
void | setPolicy (int policy) |
boolean | isDefaultRule () |
String | getXml () |
Protected 変数 | |
ArrayList | backendList |
int | nbOfNodes = 0 |
String | tableName = null |
int | policy |
|
Creates a new CreateTableAll.java の 41 行で定義されています。
00042 { 00043 super(CreateTablePolicy.ALL); 00044 } |
|
Creates a new
CreateTableAll.java の 51 行で定義されています。
00052 { 00053 super(CreateTablePolicy.ALL, backendList); 00054 } |
|
Add a backend name to the list of backends to wait for.
CreateTableRule.java の 84 行で定義されています。
00085 { 00086 backendList.add(name); 00087 } |
|
Returns the backendList.
CreateTableRule.java の 94 行で定義されています。
00095 { 00096 return backendList; 00097 } |
|
org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRuleに実装されています. CreateTableAll.java の 59 行で定義されています。
00060 {
00061 return backends;
00062 }
|
|
org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRuleに実装されています. CreateTableAll.java の 67 行で定義されています。
00068 { 00069 String s; 00070 if (tableName == null) 00071 s = "Default rule create table on "; 00072 else 00073 s = "Rule for table " + tableName + " create table on "; 00074 00075 return s + " all nodes in " + backendList; 00076 } |
|
Returns the number of nodes.
CreateTableRule.java の 104 行で定義されています。 参照先 org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule.nbOfNodes.
00105 { 00106 return nbOfNodes; 00107 } |
|
Returns the policy.
CreateTableRule.java の 144 行で定義されています。 参照先 org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule.policy.
00145 { 00146 return policy; 00147 } |
|
Returns the table name.
CreateTableRule.java の 124 行で定義されています。 参照元 org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTablePolicy.addRule().
00125 { 00126 return tableName; 00127 } |
|
Gives information about the current policy in xml
CreateTableRule.java の 192 行で定義されています。 参照先 org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule.nbOfNodes, と org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule.policy.
00194 { 00195 StringBuffer info = new StringBuffer(); 00196 info.append( 00197 "<" 00198 + DatabasesXmlTags.ELT_CreateTable 00199 + " " 00200 + DatabasesXmlTags.ATT_tableName 00201 + "=\"" 00202 + tableName 00203 + "\" " 00204 + DatabasesXmlTags.ATT_policy 00205 + "=\"" 00206 + CreateTablePolicy.getXmlValue(policy) 00207 + "\" " 00208 + DatabasesXmlTags.ATT_numberOfNodes 00209 + "=\"" 00210 + nbOfNodes 00211 + "\">"); 00212 ArrayList list = this.getBackendList(); 00213 int count = list.size(); 00214 for (int i = 0; i < count; i++) 00215 { 00216 info.append( 00217 "<" 00218 + DatabasesXmlTags.ELT_BackendName 00219 + " " 00220 + DatabasesXmlTags.ATT_name 00221 + "=\"" 00222 + ((String) list.get(i)) 00223 + "\"/>"); 00224 } 00225 info.append("</" + DatabasesXmlTags.ELT_CreateTable + ">"); 00226 return info.toString(); 00227 } |
|
Returns
CreateTableRule.java の 164 行で定義されています。
00165 { 00166 return this.tableName == null; 00167 } |
|
Sets the number of nodes.
CreateTableRule.java の 114 行で定義されています。
00115 {
00116 this.nbOfNodes = numberOfNodes;
00117 }
|
|
Sets the policy.
CreateTableRule.java の 154 行で定義されています。
00155 {
00156 this.policy = policy;
00157 }
|
|
Sets the table name.
CreateTableRule.java の 134 行で定義されています。
00135 {
00136 this.tableName = tableName;
00137 }
|
|
List of backend names to wait for. CreateTableRule.java の 40 行で定義されています。 |
|
Number of nodes that must create the table. CreateTableRule.java の 43 行で定義されています。 参照元 org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule.getNumberOfNodes(), と org.objectweb.cjdbc.controller.loadbalancer.policies.createtable.CreateTableRule.getXml(). |
|
|
Table name pattern to which this rule apply (null means it is the default rule). CreateTableRule.java の 49 行で定義されています。 |