Disabling Flat File Polling Ports Programmatically

Hi Is there a way, one can disable/enable the flat file ports? I’ve a requirement where I need to disable at 10.00 pm every day for maintenance. I want to schedule this task. I would like to know if enabling and disabling of flat file ports can be done through a Java/Flow Service.

Thanks in Adv
Sudheer

You can use the following to enable/disable ports:
WmRoot/wm.server.net.listeners:enableListener
WmRoot/wm.server.net.listeners:disableListener

Check WmRoot/wm.server.net.listeners:listListeners to see the input/output format that is required.

Obviously, you should be aware that these internal APIs are not supported, and can therefore change without notice.