Class PackageInfo

java.lang.Object
org.netxms.client.packages.PackageInfo

public class PackageInfo extends Object
NetXMS package info
  • 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 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
    • PackageInfo

      public PackageInfo(File npiFile) throws IOException
      Create package information from NPI file
      Parameters:
      npiFile - NPI file with package description
      Throws:
      IOException - if NPI file cannot be read
    • PackageInfo

      public PackageInfo(NXCPMessage msg)
      Create package information from NXCP message
      Parameters:
      msg - NXCP message
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg)
      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

      public String getName()
      Returns:
      the name
    • getDescription

      public String getDescription()
      Returns:
      the description
    • getFileName

      public String getFileName()
      Returns:
      the fileName
    • getType

      public String getType()
      Returns:
      the type
    • getCommand

      public String getCommand()
      Returns:
      the command
    • getPlatform

      public String getPlatform()
      Returns:
      the platform
    • getVersion

      public String getVersion()
      Returns:
      the version
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • setFileName

      public void setFileName(String fileName)
      Parameters:
      fileName - the fileName to set
    • setType

      public void setType(String type)
      Parameters:
      type - the type to set
    • setPlatform

      public void setPlatform(String platform)
      Parameters:
      platform - the platform to set
    • setVersion

      public void setVersion(String version)
      Parameters:
      version - the version to set
    • setCommand

      public void setCommand(String command)
      Parameters:
      command - the command to set