...
Depending on the way, the handler works, different methods need to be implemented.
Independent of Push/Pull
Code Block | ||
---|---|---|
| ||
public ITransportHandler createInstance(IProtocolHandler<?> protocolHandler, Map<String, String> options); |
This method must return a new initialized transport handler. Typically, the constructor is called.
Code Block | ||||
---|---|---|---|---|
| ||||
@Override
public ITransportHandler createInstance(
IProtocolHandler<?> protocolHandler, Map<String, String> options) {
return new FileHandler(protocolHandler, options);
} |
The methode getName() must deliver a global unique transport handler name.
Code Block | ||
---|---|---|
| ||
String getName(); |
Its a good was to use this a follows (again example of FileHandler):
Code Block | ||
---|---|---|
| ||
public static final String NAME = "File";
@Override
public String getName() {
return NAME;
} |
Source-Generic PUll
Source-Generic Push
Sink-Generic Pull
Sink-Generic Push
...