1 23 24 package org.apache.slide.common; 25 26 import org.apache.slide.authenticate.SecurityToken; 27 28 33 public interface SlideMBean { 34 35 36 38 39 42 public static final String [] states = 43 {"Stopped", "Stopping", "Starting", "Started"}; 44 45 46 public static final int STOPPED = 0; 47 public static final int STOPPING = 1; 48 public static final int STARTING = 2; 49 public static final int STARTED = 3; 50 51 52 55 public static final String NAME = "Slide content management server"; 56 57 58 61 public static final String OBJECT_NAME = ":service=Slide"; 62 63 64 66 67 70 public String getName(); 71 72 73 76 public int getState(); 77 78 79 82 public String getStateString(); 83 84 85 88 public void init() 89 throws Exception ; 90 91 92 95 public void init(String configFile) 96 throws Exception ; 97 98 99 102 public void start() 103 throws Exception ; 104 105 106 109 public void stop(); 110 111 112 115 public void destroy(); 116 117 118 125 public NamespaceAccessToken accessNamespace(SecurityToken token, 126 String namespaceName); 127 128 129 134 public void closeNamespace(NamespaceAccessToken token); 135 136 137 143 public void closeNamespace(SecurityToken token, String namespaceName); 144 145 146 152 public DomainAccessToken accessDomain(SecurityToken token); 153 154 155 } 156 | Popular Tags |