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