|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TFTPFile
TFTP File interface. The TFTPFile represents a configuration file that is created at the RDU, mixed at the DPE, and delivered to a device via TFTP. The TFTPFile can have an optional filename tag that distinquishes it from other TFTPFile objects contained in the TFTPConfig. The TFTPFile object contains the configuration file that is sent to the device in response to a DPE TFTP "get" operation. The TFTPFile object contains this configuration file, a property map, and performs validation, generation and mixing of the configuration file. The TFTPFile object must be serializable.
The TFTPFile is created by an RDU configuration extension. After all the RDU configuration extension points are executed for a given device configuration the RDU configuration engine will call the validate() and generate() methods to perform any TFTPFile-specific validation and post-processing that are required prior to sending the configuration to the DPE. When the DPE TFTP server receives a request from the device for the file it will first call the mix() method and then call the getFile() method to retrieve the configuration bytes to send in the TFTP response.
TFTPConfig| Method Summary | |
|---|---|
void |
generate()
Generate the TFTP file. |
byte[] |
getFile()
Get the configuration file to be delivered to the device. |
String |
getFilename()
Get the filename identifier for the TFTPFile. |
Map<String,Object> |
getProperties()
Get the property map. |
Object |
getProperty(String key)
Get the named property from the property map. |
void |
mix(String ipAddress,
CSRCProperties properties)
Perform DPE mixing. |
void |
setProperty(String key,
Object value)
Set the named property in the property map. |
void |
validate()
Validate the TFTP file. |
| Method Detail |
|---|
String getFilename()
byte[] getFile()
Object getProperty(String key)
key - property name
void setProperty(String key,
Object value)
key - property namevalue - property valueMap<String,Object> getProperties()
void validate()
throws InvalidConfigException
InvalidConfigException - if any errors are encountered during the
validation.
void generate()
throws InvalidConfigException
InvalidConfigException - if any errors are encountered during the
generation.
void mix(String ipAddress,
CSRCProperties properties)
throws InvalidConfigException
ipAddress - of the device requesting the TFTP fileproperties - relevant to mixing operation
InvalidConfigException - if any errors are encountered during the
mixing.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||