Package org.netxms.client.packages
Class PackageInfo
java.lang.Object
org.netxms.client.packages.PackageInfo
NetXMS package info
-
Constructor Summary
ConstructorDescriptionPackageInfo
(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 Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill NXCP message with package informationlong
getId()
getName()
getType()
void
setCommand
(String command) void
setDescription
(String description) void
setFileName
(String fileName) void
setId
(long id) void
void
setPlatform
(String platform) void
void
setVersion
(String version)
-
Constructor Details
-
PackageInfo
public 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 namedescription
- package descriptionfileName
- package file nametype
- package typeplatform
- target platformversion
- package versioncommand
- package options or command for executable packages
-
PackageInfo
Create package information from NPI file- Parameters:
npiFile
- NPI file with package description- Throws:
IOException
- if NPI file cannot be read
-
PackageInfo
Create package information from NXCP message- Parameters:
msg
- NXCP message
-
-
Method Details
-
fillMessage
Fill NXCP message with package information- Parameters:
msg
- NXCP message
-
setId
public void setId(long id) - Parameters:
id
- the id to set
-
getId
public 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
-