Package org.netxms.client.server
Class AgentFile
java.lang.Object
org.netxms.client.server.AgentFile
- All Implemented Interfaces:
- RemoteFile
Represents information about file on remote system accessible via agent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidGet file extension.getGroup()Get file modification time.getName()Get file name.longgetOwner()longgetSize()Get file size in bytes.intgetType()booleanCheck if this file object represents directory.booleanCheck if this file object is a placeholder (does not correspond to actual remote file).voidremoveChild(AgentFile child) voidsetAccessRights(String accessRights) voidsetChildren(List<AgentFile> children) voidsetFileInfo(AgentFileInfo info) voidvoidvoidvoid
- 
Field Details- 
FILEpublic static final int FILE- See Also:
 
- 
DIRECTORYpublic static final int DIRECTORY- See Also:
 
- 
SYMBOLYC_LINKpublic static final int SYMBOLYC_LINK- See Also:
 
- 
PLACEHOLDERpublic static final int PLACEHOLDER- See Also:
 
 
- 
- 
Constructor Details- 
AgentFileCreate server file object from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base variable ID
- parent- parent file for this file
- nodeId- source node of file
 
- 
AgentFileConstructor for AgentFile- Parameters:
- name- file name
- fileType- file type
- parent- parent file for this file
- nodeId- source node of file
 
- 
AgentFileCopy constructor for agent file- Parameters:
- src- AgentFile to copy
 
 
- 
- 
Method Details- 
isDirectorypublic boolean isDirectory()Description copied from interface:RemoteFileCheck if this file object represents directory.- Specified by:
- isDirectoryin interface- RemoteFile
- Returns:
- true if this file object represents directory
- See Also:
 
- 
isPlaceholderpublic boolean isPlaceholder()Description copied from interface:RemoteFileCheck if this file object is a placeholder (does not correspond to actual remote file).- Specified by:
- isPlaceholderin interface- RemoteFile
- Returns:
- true if this file object is a placeholder
- See Also:
 
- 
getNameDescription copied from interface:RemoteFileGet file name.- Specified by:
- getNamein interface- RemoteFile
- Returns:
- file name
- See Also:
 
- 
setName- Parameters:
- name- the name to set
 
- 
getSizepublic long getSize()Description copied from interface:RemoteFileGet file size in bytes.- Specified by:
- getSizein interface- RemoteFile
- Returns:
- file size in bytes
- See Also:
 
- 
getModificationTimeDescription copied from interface:RemoteFileGet file modification time.- Specified by:
- getModificationTimein interface- RemoteFile
- Returns:
- file modification time
- See Also:
 
- 
getExtensionDescription copied from interface:RemoteFileGet file extension.- Specified by:
- getExtensionin interface- RemoteFile
- Returns:
- file extension
- See Also:
 
- 
getChildren- Returns:
- the children
 
- 
setChildren- Parameters:
- children- the children to set
 
- 
removeChild- Parameters:
- child- to be removed
 
- 
addChild- Parameters:
- child- to be added
 
- 
getFullName- Returns:
- the fullName
 
- 
getFilePath- Returns:
- the fullName
 
- 
getParent- Returns:
- the parent
 
- 
setParent- Parameters:
- parent- the parent to set
 
- 
getNodeIdpublic long getNodeId()- Returns:
- the nodeId
 
- 
getTypepublic int getType()- Returns:
- the type
 
- 
getOwner- Returns:
- the owner
 
- 
setOwner- Parameters:
- owner- the owner to set
 
- 
getGroup- Returns:
- the group
 
- 
setGroup- Parameters:
- group- the group to set
 
- 
getAccessRights- Returns:
- the accessRights
 
- 
setAccessRights- Parameters:
- accessRights- the accessRights to set
 
- 
setFileInfo- Parameters:
- info- Set agent file info
 
- 
getFileInfo- Returns:
- Agent File Info
 
 
-