1 45 package org.openejb.server; 46 47 import java.io.*; 48 import java.net.*; 49 import java.util.*; 50 51 import org.openejb.spi.Service; 52 53 54 67 public interface ServerService extends Service { 68 69 public void init(Properties props) throws Exception ; 70 71 public void start() throws ServiceException; 72 73 public void stop() throws ServiceException; 74 75 public void service(InputStream in, OutputStream out) throws ServiceException, IOException; 76 77 public void service(Socket socket) throws ServiceException, IOException; 78 79 80 84 public String getName(); 85 86 90 public String getIP(); 91 92 96 public int getPort(); 97 98 99 } 100 | Popular Tags |