org.wso2.wsas
Interface ServerManagementMBean

All Known Implementing Classes:
ServerManagement

public interface ServerManagementMBean


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.
 

Method Detail

startMaintenance

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
  • Returns:
    An appropriate message
    Throws:
    java.lang.Exception - If an error occurred while switching to maintenace mode

    endMaintenance

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

    Returns:
    An appropriate message
    Throws:
    java.lang.Exception - If an error occurred while switching to normal mode

    isAlive

    boolean isAlive()
    Method to check whether this WSAS instance is alive

    Returns:
    True