View Javadoc

1   /**********************************************************************
2    * EJServerConfigMBean.java
3    * created on 25.03.2006 by netseeker
4    * $Source$
5    * $Date$
6    * $Revision$
7    *
8    * ====================================================================
9    *
10   *  Copyright 2006 netseeker aka Michael Manske
11   *
12   *  Licensed under the Apache License, Version 2.0 (the "License");
13   *  you may not use this file except in compliance with the License.
14   *  You may obtain a copy of the License at
15   *
16   *      http://www.apache.org/licenses/LICENSE-2.0
17   *
18   *  Unless required by applicable law or agreed to in writing, software
19   *  distributed under the License is distributed on an "AS IS" BASIS,
20   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21   *  See the License for the specific language governing permissions and
22   *  limitations under the License.
23   * ====================================================================
24   *
25   * This file is part of the EJOE framework.
26   * For more information on the author, please see
27   * <http://www.manskes.de/>.
28   *
29   *********************************************************************/
30  package de.netseeker.ejoe.jmx;
31  
32  /***
33   * Simple MBean interface to support runtime configuration via JMX
34   * 
35   * @author netseeker
36   * @since 0.3.9.1
37   */
38  public interface EJServerConfigMBean
39  {
40      // management attributes
41      public boolean isNonBlockingIO();
42  
43      public void setNonBlockingIO( boolean isNonBlockingIO );
44  
45      public boolean isPersistentConnections();
46  
47      public void setPersistentConnections( boolean isPersistentConnections );
48  
49      public boolean isHttpPackaging();
50  
51      public void setHttpPackaging( boolean enable );
52  
53      public boolean isCompression();
54  
55      public void setCompression( boolean compression );
56  
57      public boolean isRunning();
58  
59      // public String getBindInterfaceAddress();
60      // public void setBindInterfaceAddress(String bindInterfaceAddress);
61      public int getMaxReadProcessors();
62  
63      public void setMaxReadProcessors( int maxReadProcessors );
64  
65      public int getMaxWriteProcessors();
66  
67      public void setMaxWriteProcessors( int maxWriteProcessors );
68  
69      // management operations
70      public void stopEJServer();
71  
72      public void startEJServer();
73  
74      public void restartEJServer();
75  }