All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lrgs.ldds.CmdInstallConfig Maven / Gradle / Ivy

Go to download

A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.

The newest version!
/*
*  $Id$
*/
package lrgs.ldds;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

import ilex.util.ArrayUtil;
import ilex.util.EnvExpander;
import ilex.util.Logger;
import ilex.util.TextUtil;

import lrgs.common.ArchiveException;
import lrgs.common.LrgsErrorCode;
import lrgs.lrgsmain.LrgsConfig;
import lrgs.networkdcp.NetworkDcpRecv;;

/**
This command installs a configuration file on the server
The request message contains a 64-byte field denoting the configuration
file to be returned:
  • lrgs - install main configuration file (usually lrgs.conf)
  • ddsrecv - install DDS Recv Config file (usually ddsrecv.conf)
  • drgs - install DRGS Recv Config file (usually drgsconf.xml)
  • networkDcp - return Network DCP Config file (network-dcp.conf)
  • netlist:name - install network list.
  • netlist-delete:name - delete network list.
After the 64-byte field, the remainder of the message is the file contents. This file just saves the file data. The LRGS modules know to check for config changes and load them synchronously with their other operations.

The response message (sent back to the client) contains the same 64-byte field without the file-contents body.

If an error occurs, the 64-byte field will contain a question mark followed by two comma-separated integer fields corresponding to 'derrno' and 'errno'. */ public class CmdInstallConfig extends CmdAdminCmd { private String cfgType; private byte[] filedata; /** @return "CmdInstallConfig"; */ public String cmdType() { return "CmdInstallConfig"; } /** Constructor. @param data configuration name and file contents */ public CmdInstallConfig(byte[] data) { int len = 0; for(; len





© 2015 - 2024 Weber Informatics LLC | Privacy Policy