1 24 package com.scalagent.kjoram; 25 26 import com.scalagent.kjoram.jms.GetAdminTopicRequest; 27 import com.scalagent.kjoram.jms.GetAdminTopicReply; 28 29 import java.util.Vector ; 30 import java.util.Hashtable ; 31 32 import com.scalagent.kjoram.excepts.JMSException; 33 34 35 public class Topic extends Destination 36 { 37 42 public Topic(String agentId) 43 { 44 super(agentId); 45 } 46 47 50 public Topic() 51 {} 52 53 54 public String toString() 55 { 56 return "Topic:" + agentId; 57 } 58 59 64 public String getTopicName() throws JMSException 65 { 66 return agentId; 67 } 68 69 public Hashtable code() { 70 return super.code(); 71 } 72 73 public static Object decode(Hashtable h) { 74 Topic ret = 75 new Topic((String ) h.get("agentId")); 76 ret.addInstanceTable(ret.getId(), ret); 78 return ret; 79 } 80 } 81 | Popular Tags |