00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 package com.scalagent.kjoram;
00025
00026 import com.scalagent.kjoram.jms.GetAdminTopicRequest;
00027 import com.scalagent.kjoram.jms.GetAdminTopicReply;
00028
00029 import java.util.Vector;
00030 import java.util.Hashtable;
00031
00032 import com.scalagent.kjoram.excepts.JMSException;
00033
00034
00035 public class Topic extends Destination
00036 {
00042 public Topic(String agentId)
00043 {
00044 super(agentId);
00045 }
00046
00050 public Topic()
00051 {}
00052
00054 public String toString()
00055 {
00056 return "Topic:" + agentId;
00057 }
00058
00064 public String getTopicName() throws JMSException
00065 {
00066 return agentId;
00067 }
00068
00069 public Hashtable code() {
00070 return super.code();
00071 }
00072
00073 public static Object decode(Hashtable h) {
00074 Topic ret =
00075 new Topic((String) h.get("agentId"));
00076
00077 ret.addInstanceTable(ret.getId(), ret);
00078 return ret;
00079 }
00080 }