| java.lang.Object com.sun.jbi.binding.file.FileCommand
FileCommand | public class FileCommand implements Command,FileBindingResources(Code) | | The FileCommand class reads a file and sends assembles the Normalized
MEssage and sends to to the NMS.
author: Sun Microsystems, Inc. |
Method Summary | |
public void | execute() The run method which sends the normalized message to the respective
service channel. | public String | getName() Returns the name of the folder. | public void | terminate() Closes a file being read. | public void | writeErrorMessage(Exception ex) Writes a error message into file. |
FileCommand | FileCommand(File file, EndpointBean eb, QName oper, String trkid)(Code) | | Creates a new FileCommand object.
Parameters: file - file to be read Parameters: eb - folder to move the processed files. Parameters: oper - operation name. Parameters: trkid - trk id. |
execute | public void execute()(Code) | | The run method which sends the normalized message to the respective
service channel. This class is an implementation of the COmmand
interface This method is called when this object is excetuted in a
separate thread.
|
getName | public String getName()(Code) | | Returns the name of the folder.
folder name. |
terminate | public void terminate()(Code) | | Closes a file being read.
|
writeErrorMessage | public void writeErrorMessage(Exception ex)(Code) | | Writes a error message into file.
Parameters: ex - exception message. |
|
|