Class ServerAdminCallbackHandler
- java.lang.Object
-
- org.wso2.carbon.server.admin.stub.ServerAdminCallbackHandler
-
public abstract class ServerAdminCallbackHandler extends Object
ServerAdminCallbackHandler Callback class, Users can extend this class and implement their own receiveResult and receiveError methods.
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectclientData
-
Constructor Summary
Constructors Constructor Description ServerAdminCallbackHandler()Please use this constructor if you don't want to set any clientDataServerAdminCallbackHandler(Object clientData)User can pass in any object that needs to be accessed once the NonBlocking Web service call is finished and appropriate method of this CallBack is called.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetClientData()Get the client datavoidreceiveErrorgetServerData(Exception e)auto generated Axis2 Error handler override this method for handling error response from getServerData operationvoidreceiveErrorgetServerDataAsString(Exception e)auto generated Axis2 Error handler override this method for handling error response from getServerDataAsString operationvoidreceiveErrorgetServerStatus(Exception e)auto generated Axis2 Error handler override this method for handling error response from getServerStatus operationvoidreceiveErrorgetServerVersion(Exception e)auto generated Axis2 Error handler override this method for handling error response from getServerVersion operationvoidreceiveErrorisAlive(Exception e)auto generated Axis2 Error handler override this method for handling error response from isAlive operationvoidreceiveErrorrestart(Exception e)auto generated Axis2 Error handler override this method for handling error response from restart operationvoidreceiveErrorrestartGracefully(Exception e)auto generated Axis2 Error handler override this method for handling error response from restartGracefully operationvoidreceiveErrorshutdown(Exception e)auto generated Axis2 Error handler override this method for handling error response from shutdown operationvoidreceiveErrorshutdownGracefully(Exception e)auto generated Axis2 Error handler override this method for handling error response from shutdownGracefully operationvoidreceiveResultgetServerData(ServerData result)auto generated Axis2 call back method for getServerData method override this method for handling normal response from getServerData operationvoidreceiveResultgetServerDataAsString(String result)auto generated Axis2 call back method for getServerDataAsString method override this method for handling normal response from getServerDataAsString operationvoidreceiveResultgetServerStatus(String result)auto generated Axis2 call back method for getServerStatus method override this method for handling normal response from getServerStatus operationvoidreceiveResultgetServerVersion(String result)auto generated Axis2 call back method for getServerVersion method override this method for handling normal response from getServerVersion operationvoidreceiveResultisAlive(boolean result)auto generated Axis2 call back method for isAlive method override this method for handling normal response from isAlive operationvoidreceiveResultrestart(boolean result)auto generated Axis2 call back method for restart method override this method for handling normal response from restart operationvoidreceiveResultrestartGracefully(boolean result)auto generated Axis2 call back method for restartGracefully method override this method for handling normal response from restartGracefully operationvoidreceiveResultshutdown(boolean result)auto generated Axis2 call back method for shutdown method override this method for handling normal response from shutdown operationvoidreceiveResultshutdownGracefully(boolean result)auto generated Axis2 call back method for shutdownGracefully method override this method for handling normal response from shutdownGracefully operation
-
-
-
Field Detail
-
clientData
protected Object clientData
-
-
Constructor Detail
-
ServerAdminCallbackHandler
public ServerAdminCallbackHandler(Object clientData)
User can pass in any object that needs to be accessed once the NonBlocking Web service call is finished and appropriate method of this CallBack is called.- Parameters:
clientData- Object mechanism by which the user can pass in user data that will be avilable at the time this callback is called.
-
ServerAdminCallbackHandler
public ServerAdminCallbackHandler()
Please use this constructor if you don't want to set any clientData
-
-
Method Detail
-
getClientData
public Object getClientData()
Get the client data
-
receiveResultrestart
public void receiveResultrestart(boolean result)
auto generated Axis2 call back method for restart method override this method for handling normal response from restart operation
-
receiveErrorrestart
public void receiveErrorrestart(Exception e)
auto generated Axis2 Error handler override this method for handling error response from restart operation
-
receiveResultshutdownGracefully
public void receiveResultshutdownGracefully(boolean result)
auto generated Axis2 call back method for shutdownGracefully method override this method for handling normal response from shutdownGracefully operation
-
receiveErrorshutdownGracefully
public void receiveErrorshutdownGracefully(Exception e)
auto generated Axis2 Error handler override this method for handling error response from shutdownGracefully operation
-
receiveResultisAlive
public void receiveResultisAlive(boolean result)
auto generated Axis2 call back method for isAlive method override this method for handling normal response from isAlive operation
-
receiveErrorisAlive
public void receiveErrorisAlive(Exception e)
auto generated Axis2 Error handler override this method for handling error response from isAlive operation
-
receiveResultgetServerData
public void receiveResultgetServerData(ServerData result)
auto generated Axis2 call back method for getServerData method override this method for handling normal response from getServerData operation
-
receiveErrorgetServerData
public void receiveErrorgetServerData(Exception e)
auto generated Axis2 Error handler override this method for handling error response from getServerData operation
-
receiveResultgetServerStatus
public void receiveResultgetServerStatus(String result)
auto generated Axis2 call back method for getServerStatus method override this method for handling normal response from getServerStatus operation
-
receiveErrorgetServerStatus
public void receiveErrorgetServerStatus(Exception e)
auto generated Axis2 Error handler override this method for handling error response from getServerStatus operation
-
receiveResultrestartGracefully
public void receiveResultrestartGracefully(boolean result)
auto generated Axis2 call back method for restartGracefully method override this method for handling normal response from restartGracefully operation
-
receiveErrorrestartGracefully
public void receiveErrorrestartGracefully(Exception e)
auto generated Axis2 Error handler override this method for handling error response from restartGracefully operation
-
receiveResultgetServerDataAsString
public void receiveResultgetServerDataAsString(String result)
auto generated Axis2 call back method for getServerDataAsString method override this method for handling normal response from getServerDataAsString operation
-
receiveErrorgetServerDataAsString
public void receiveErrorgetServerDataAsString(Exception e)
auto generated Axis2 Error handler override this method for handling error response from getServerDataAsString operation
-
receiveResultshutdown
public void receiveResultshutdown(boolean result)
auto generated Axis2 call back method for shutdown method override this method for handling normal response from shutdown operation
-
receiveErrorshutdown
public void receiveErrorshutdown(Exception e)
auto generated Axis2 Error handler override this method for handling error response from shutdown operation
-
receiveResultgetServerVersion
public void receiveResultgetServerVersion(String result)
auto generated Axis2 call back method for getServerVersion method override this method for handling normal response from getServerVersion operation
-
receiveErrorgetServerVersion
public void receiveErrorgetServerVersion(Exception e)
auto generated Axis2 Error handler override this method for handling error response from getServerVersion operation
-
-