1 24 25 package org.objectweb.cjdbc.controller.loadbalancer.policies.createtable; 26 27 import java.util.ArrayList ; 28 29 37 public class CreateTableAll extends CreateTableRule 38 { 39 40 43 public CreateTableAll() 44 { 45 super(CreateTablePolicy.ALL); 46 } 47 48 53 public CreateTableAll(ArrayList backendList) 54 { 55 super(CreateTablePolicy.ALL, backendList); 56 } 57 58 61 public ArrayList getBackends(ArrayList backends) throws CreateTableException 62 { 63 return super.getBackends(backends); 64 } 65 66 69 public String getInformation() 70 { 71 String s; 72 if (tableName == null) 73 s = "Default rule create table on "; 74 else 75 s = "Rule for table " + tableName + " create table on "; 76 77 return s + " all nodes in " + backendList; 78 } 79 } 80 | Popular Tags |