public class SConnectorAdapter extends java.lang.Object implements SConnector
| Constructor and Description |
|---|
SConnectorAdapter(org.bonitasoft.engine.connector.Connector connector) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Called by the engine before the connector is executed
This method can be implemented by connectors to handle here opening of connections like database connection
|
void |
disconnect()
Called by the engine after the connector and its output operations are executed
This method can be implemented by connectors to close connections here.
|
java.util.Map<java.lang.String,java.lang.Object> |
execute()
Execute the connector.
|
org.bonitasoft.engine.connector.Connector |
getConnector() |
void |
setInputParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Set the input parameter for a connector.
|
void |
validate()
Validate the input parameters.
|
public SConnectorAdapter(org.bonitasoft.engine.connector.Connector connector)
public org.bonitasoft.engine.connector.Connector getConnector()
public void setInputParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
SConnectorsetInputParameters in interface SConnectorparameters - parameters is a map with parameter names and their value.public void validate()
throws SConnectorValidationException
SConnectorvalidate in interface SConnectorSConnectorValidationExceptionpublic java.util.Map<java.lang.String,java.lang.Object> execute()
throws SConnectorException
SConnectorexecute in interface SConnectorSConnectorExceptionpublic void connect()
throws SConnectorException
SConnectorconnect in interface SConnectorSConnectorExceptionpublic void disconnect()
throws SConnectorException
SConnectordisconnect in interface SConnectorSConnectorException