public abstract class ServerConnector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerConnector.State
Enum to holds the state of connector.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
id
Unique ID representing a server connector.
|
protected ServerConnector.State |
state |
| Constructor and Description |
|---|
ServerConnector(String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginConnectorMaintenance() |
protected abstract void |
beginMaintenance()
Implementation of the connector begin maintenance process.
|
protected abstract void |
destroy()
Implementation of the connector destroy process.
|
void |
destroyConnector() |
void |
endConnectorMaintenance() |
protected abstract void |
endMaintenance()
Implementation of the connector end maintenance process.
|
String |
getId()
Returns the id of the connector.
|
ServerConnector.State |
getState()
Returns the current life cycle state of the connector.
|
protected abstract void |
init()
Implementation of the connector init process.
|
void |
initConnector() |
abstract void |
setMessageProcessor(CarbonMessageProcessor messageProcessor)
Set the message processor to be used with this connector for dispatching.
|
abstract void |
start(Map<String,String> parameters)
Implementation of the connector start method.
|
abstract void |
stop()
Implementation of the connector stop method.
|
protected String id
protected ServerConnector.State state
public ServerConnector(String id)
public abstract void setMessageProcessor(CarbonMessageProcessor messageProcessor)
messageProcessor - message processor instancepublic String getId()
public ServerConnector.State getState()
public void initConnector()
throws ServerConnectorException
ServerConnectorExceptionprotected abstract void init()
throws ServerConnectorException
ServerConnectorExceptionpublic void destroyConnector()
throws ServerConnectorException
ServerConnectorExceptionprotected abstract void destroy()
throws ServerConnectorException
ServerConnectorExceptionpublic void beginConnectorMaintenance()
throws ServerConnectorException
ServerConnectorExceptionprotected abstract void beginMaintenance()
throws ServerConnectorException
ServerConnectorExceptionpublic void endConnectorMaintenance()
throws ServerConnectorException
ServerConnectorExceptionprotected abstract void endMaintenance()
throws ServerConnectorException
ServerConnectorExceptionpublic abstract void start(Map<String,String> parameters) throws ServerConnectorException
ServerConnectorException - when an error occurs during starting the connector.public abstract void stop()
throws ServerConnectorException
ServerConnectorException - when an error occurs during stoping the connector.Copyright © 2017 WSO2. All rights reserved.