Package org.netxms.client.packages
Class PackageInfo
java.lang.Object
org.netxms.client.packages.PackageInfo
NetXMS package info
- 
Constructor SummaryConstructorsConstructorDescriptionPackageInfo(File npiFile) Create package information from NPI filePackageInfo(String name, String description, String fileName, String type, String platform, String version, String command) Create new package information object from scratch.PackageInfo(NXCPMessage msg) Create package information from NXCP message
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with package informationlonggetId()getName()getType()voidsetCommand(String command) voidsetDescription(String description) voidsetFileName(String fileName) voidsetId(long id) voidvoidsetPlatform(String platform) voidvoidsetVersion(String version) 
- 
Constructor Details- 
PackageInfopublic PackageInfo(String name, String description, String fileName, String type, String platform, String version, String command) Create new package information object from scratch.- Parameters:
- name- package name
- description- package description
- fileName- package file name
- type- package type
- platform- target platform
- version- package version
- command- package options or command for executable packages
 
- 
PackageInfoCreate package information from NPI file- Parameters:
- npiFile- NPI file with package description
- Throws:
- IOException- if NPI file cannot be read
 
- 
PackageInfoCreate package information from NXCP message- Parameters:
- msg- NXCP message
 
 
- 
- 
Method Details- 
fillMessageFill NXCP message with package information- Parameters:
- msg- NXCP message
 
- 
setIdpublic void setId(long id) - Parameters:
- id- the id to set
 
- 
getIdpublic long getId()- Returns:
- the id
 
- 
getName- Returns:
- the name
 
- 
getDescription- Returns:
- the description
 
- 
getFileName- Returns:
- the fileName
 
- 
getType- Returns:
- the type
 
- 
getCommand- Returns:
- the command
 
- 
getPlatform- Returns:
- the platform
 
- 
getVersion- Returns:
- the version
 
- 
setName- Parameters:
- name- the name to set
 
- 
setDescription- Parameters:
- description- the description to set
 
- 
setFileName- Parameters:
- fileName- the fileName to set
 
- 
setType- Parameters:
- type- the type to set
 
- 
setPlatform- Parameters:
- platform- the platform to set
 
- 
setVersion- Parameters:
- version- the version to set
 
- 
setCommand- Parameters:
- command- the command to set
 
 
-