Class DeviceConfigDispatcher
- java.lang.Object
-
- org.opennms.features.deviceconfig.sink.dispatcher.DeviceConfigDispatcher
-
- All Implemented Interfaces:
AutoCloseable
,TftpFileReceiver
public class DeviceConfigDispatcher extends Object implements TftpFileReceiver, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description DeviceConfigDispatcher(Identity identity, TftpServer tftpServer, DeviceConfigSinkModule sinkModule, MessageDispatcherFactory messageDispatcherFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
onFileReceived(InetAddress address, String fileName, byte[] content)
Signals that a file was received.
-
-
-
Constructor Detail
-
DeviceConfigDispatcher
public DeviceConfigDispatcher(Identity identity, TftpServer tftpServer, DeviceConfigSinkModule sinkModule, MessageDispatcherFactory messageDispatcherFactory) throws Exception
- Throws:
Exception
-
-
Method Detail
-
onFileReceived
public void onFileReceived(InetAddress address, String fileName, byte[] content)
Description copied from interface:TftpFileReceiver
Signals that a file was received.- Specified by:
onFileReceived
in interfaceTftpFileReceiver
- Parameters:
address
- The address where the write request originated fromfileName
- The name of the received filecontent
- The content of the file
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-