1 8 9 package mx4j.tools.adaptor.http; 10 11 import java.io.IOException ; 12 import java.util.Date ; 13 import javax.management.MalformedObjectNameException ; 14 import javax.management.ObjectName ; 15 16 import mx4j.tools.adaptor.AdaptorServerSocketFactory; 17 18 23 public interface HttpAdaptorMBean 24 { 25 30 public void setPort(int port); 31 32 37 public int getPort(); 38 39 44 public void setHost(java.lang.String host); 45 46 51 java.lang.String getHost(); 52 53 58 public void setAuthenticationMethod(String method); 59 60 65 public String getAuthenticationMethod(); 66 67 73 public void setProcessor(ProcessorMBean processor); 74 75 78 public ProcessorMBean getProcessor(); 79 80 87 public void setProcessorClass(String processorClass); 88 89 94 public void setProcessorNameString(String processorName) throws MalformedObjectNameException ; 95 96 101 public void setProcessorName(ObjectName processorName); 102 103 106 public ObjectName getProcessorName(); 107 108 113 public void setSocketFactory(AdaptorServerSocketFactory factory); 114 115 120 public void setSocketFactoryName(ObjectName factoryName); 121 122 127 public void setSocketFactoryNameString(String factoryName) throws MalformedObjectNameException ; 128 129 134 public boolean isActive(); 135 136 141 public Date getStartDate(); 142 143 148 public long getRequestsCount(); 149 150 155 public String getVersion(); 156 157 160 public void addCommandProcessor(String path, HttpCommandProcessor processor); 161 162 165 public void addCommandProcessor(String path, String processorClass); 166 167 170 public void removeCommandProcessor(String path); 171 172 175 public void start() throws IOException ; 176 177 180 public void stop(); 181 182 185 public void addAuthorization(String username, String password); 186 } 187 | Popular Tags |