1 22 package org.jnp.server; 23 24 import java.net.UnknownHostException ; 25 26 33 public interface MainMBean 34 { 35 37 void setRmiPort(int port); 38 int getRmiPort(); 39 40 void setPort(int port); 41 int getPort(); 42 43 void setBindAddress(String host) throws UnknownHostException ; 44 String getBindAddress(); 45 46 void setRmiBindAddress(String host) throws UnknownHostException ; 47 String getRmiBindAddress(); 48 49 void setBacklog(int backlog); 50 int getBacklog(); 51 52 53 void setInstallGlobalService(boolean flag); 54 boolean getInstallGlobalService(); 55 56 57 void setClientSocketFactory(String factoryClassName) 58 throws ClassNotFoundException , InstantiationException , IllegalAccessException ; 59 String getClientSocketFactory(); 60 61 62 void setServerSocketFactory(String factoryClassName) 63 throws ClassNotFoundException , InstantiationException , IllegalAccessException ; 64 String getServerSocketFactory(); 65 66 67 void setJNPServerSocketFactory(String factoryClassName) 68 throws ClassNotFoundException , InstantiationException , IllegalAccessException ; 69 70 72 public void start() throws Exception ; 73 74 public void stop(); 75 76 } | Popular Tags |