Listener: Listener
Represents a service listener that monitors the FTP location.
Constructor
Gets invoked during object initialization.
init (ListenerConfiguration listenerConfig)
- listenerConfig ListenerConfiguration
Configurations for FTP listener
LifeCycle Methods
attach | Binds a service to the |
Methods
'start | Starts the |
detach | Stops consuming messages and detaches the service from the |
immediateStop | Stops the |
gracefulStop | Stops the |
poll | Poll new files from a FTP server. |
register | Register a FTP service in an FTP listener server. |
attach
Isolated Function
Binds a service to the ftp:Listener
.
1error? response = listener.attach(service1);
Parameters
- ftpService Service
Service to be detached from the listener
detach
Isolated Function
Stops consuming messages and detaches the service from the ftp:Listener
.
1error? response = listener.detach(service1);
Parameters
- ftpService Service
Service to be detached from the listener
register
Isolated Function
Register a FTP service in an FTP listener server.
1error? response = listener.register(ftpService, name);