1 23 24 29 30 package com.sun.enterprise.tools.upgrade.cluster; 31 32 36 import java.util.*; 37 public class IIOPCluster { 38 39 private String clusterName; 41 private List iiopServerInstanceList; 42 private IIOPServerInstance currentServerInstance; 43 44 45 public IIOPCluster(String clName) { 46 this.clusterName = clName; 47 } 48 public void addIIOPServerInstance(String serverName){ 49 IIOPServerInstance serverInstance = new IIOPServerInstance(serverName); 50 this.currentServerInstance = serverInstance; 51 if(this.iiopServerInstanceList == null) 52 this.iiopServerInstanceList = new ArrayList(); 53 this.iiopServerInstanceList.add(serverInstance); 54 } 55 public void addIIOPEndPoint(String id, String host, String port){ 56 this.currentServerInstance.addIIOPEndPoint(id,host,port); 57 } 58 public List getIIOPServerInstanceList(){ 59 return this.iiopServerInstanceList; 60 } 61 public String getClusterName(){ 62 return this.clusterName; 63 } 64 public void setClusterName(String clName){ 65 this.clusterName = clName; 66 } 67 } 68 | Popular Tags |