Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Depending on the way, the handler works, different methods need to be implemented.

Independent of Push/Pull

 

 

Code Block
languagejava
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
languagejava
titleExample of FileHandler
    @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
languagejava
    String getName();

Its a good was to use this a follows (again example of FileHandler):

Code Block
languagejava
	public static final String NAME = "File";
    
	@Override
    public String getName() {
        return NAME;
    }

 

 

Source-Generic PUll

 

 

Source-Generic Push

Sink-Generic Pull

Sink-Generic Push

...