01: package com.sun.portal.sra.admin.mbeans;
02:
03: import com.sun.portal.admin.common.PSMBeanException;
04:
05: import java.util.HashMap;
06: import java.util.Properties;
07: import java.util.List;
08:
09: /**
10: * This is the interface that all the SRA Servers will implement. The various
11: * servers are Gateway, RewriterProxy and Netlet Proxy.
12: *
13: * @author Sandeep Soni
14: * @version 1.0
15: * @created 04-Mar-2005 9:58:14 PM
16: */
17: public interface SraServer {
18:
19: public static final int INSTANCE_TYPE_GATEWAY = 1;
20:
21: public static final int INSTANCE_TYPE_REWRITER_PROXY = 2;
22:
23: public static final int INSTANCE_TYPE_NETLET_PROXY = 3;
24:
25: public SraServer createInstance(Properties configProperties)
26: throws PSMBeanException;
27:
28: public boolean deleteInstance() throws PSMBeanException;
29:
30: public String getclassPath();
31:
32: public String getInstanceName();
33:
34: public String getjvmProperties();
35:
36: public String getmainClass();
37:
38: public Properties getPlatformConfProperties();
39:
40: public int getServiceIdentifier();
41:
42: public boolean isGateway();
43:
44: public boolean isRewriterProxy();
45:
46: public boolean isNetletProxy();
47:
48: public HashMap getSystemProperties();
49:
50: public boolean start() throws PSMBeanException;
51:
52: public boolean stop() throws PSMBeanException;
53:
54: public boolean isStarted(String hostname, int portNumber);
55:
56: public boolean isStopped(String hostname, int portNumber);
57:
58: }
|