1 7 8 package org.jboss.media.engine; 9 10 import javax.management.ObjectName ; 11 12 import org.jboss.logging.Logger; 13 14 19 public abstract class MediaPublisher implements MediaPublisherMBean 20 { 21 22 private String m_host; 24 private int m_port; 26 private String m_fileName; 28 private String m_context; 30 private int m_protocolServer; 32 private ObjectName m_name; 34 35 37 protected Logger log = Logger.getLogger(getClass().getName()); 38 39 41 46 public String getContext() 47 { 48 return m_context; 49 } 50 51 56 public String getFileName() 57 { 58 return m_fileName; 59 } 60 61 66 public String getHost() 67 { 68 return m_host; 69 } 70 71 76 public int getPort() 77 { 78 return m_port; 79 } 80 81 86 public void setContext(String context) 87 { 88 m_context = context; 89 } 90 91 96 public void setFileName(String fileName) 97 { 98 m_fileName = fileName; 99 } 100 101 106 public void setHost(String host) 107 { 108 m_host = host; 109 } 110 111 116 public void setPort(int port) 117 { 118 m_port = port; 119 } 120 121 125 public ObjectName getName() 126 { 127 return m_name; 128 } 129 130 134 public void setName(ObjectName name) 135 { 136 m_name = name; 137 } 138 139 144 public abstract void publish() throws Exception ; 145 146 150 public abstract void stop(); 151 152 156 public abstract void addPluginGraph(MediaPluginGraph pg); 157 158 159 160 } 161 | Popular Tags |