org.wso2.wsas
Class ServerManagement

java.lang.Object
  extended by org.wso2.wsas.ServerManagement
All Implemented Interfaces:
ServerManagementMBean

public class ServerManagement
extends java.lang.Object
implements ServerManagementMBean


Constructor Summary
ServerManagement()
           
ServerManagement(java.util.Map inTransports)
           
 
Method Summary
 java.lang.String endMaintenance()
          Method to change the state of a node from "maintenance" to "normal"
 boolean isAlive()
          Method to check whether this WSAS instance is alive
 java.lang.String startMaintenance()
          Method to switch a node to maintenance mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerManagement

public ServerManagement(java.util.Map inTransports)

ServerManagement

public ServerManagement()
Method Detail

startMaintenance

public java.lang.String startMaintenance()
                                  throws java.lang.Exception
Method to switch a node to maintenance mode.

Here is the sequence of events:

  • Client calls this method
  • The server stops accepting new requests/connections, but continues to stay alive so that old requests & connections can be served
  • Once all requests have been processed, the method returns
  • Specified by:
    startMaintenance in interface ServerManagementMBean
    Returns:
    An appropriate message
    Throws:
    java.lang.Exception - If an error occurred while switching to maintenace mode

    endMaintenance

    public java.lang.String endMaintenance()
                                    throws java.lang.Exception
    Method to change the state of a node from "maintenance" to "normal"

    Specified by:
    endMaintenance in interface ServerManagementMBean
    Returns:
    An appropriate message
    Throws:
    org.apache.axis2.AxisFault
    java.lang.Exception - If an error occurred while switching to normal mode

    isAlive

    public boolean isAlive()
    Description copied from interface: ServerManagementMBean
    Method to check whether this WSAS instance is alive

    Specified by:
    isAlive in interface ServerManagementMBean
    Returns:
    True