1 22 package fr.dyade.aaa.admin.cmd; 23 24 import java.io.*; 25 import java.util.*; 26 27 public class ServerCmd implements AdminCmd, Serializable { 28 29 public String name = null; 30 public String hostname = null; 31 public Short sid = null; 32 33 41 public ServerCmd(String name, String hostname) { 42 this(name,hostname,null); 43 } 44 45 54 public ServerCmd(String name, 55 String hostname, 56 Short sid) { 57 this.name = name; 58 this.hostname = hostname; 59 this.sid = sid; 60 } 61 62 public String toString() { 63 StringBuffer buf = new StringBuffer (); 64 buf.append("("); 65 buf.append("name="); 66 buf.append(name); 67 buf.append(",hostname="); 68 buf.append(hostname); 69 buf.append(",sid="); 70 buf.append(sid); 71 buf.append(")"); 72 return buf.toString(); 73 } 74 } 75 | Popular Tags |