public class SystemModelUpdater
extends java.lang.Object
Constructor and Description |
---|
SystemModelUpdater() |
Modifier and Type | Method and Description |
---|---|
static void |
addNodeMgrID() |
static java.lang.String |
getSystemModelCfgFilePath() |
static void |
main(java.lang.String[] args) |
static boolean |
nodeMgrExists() |
static boolean |
nodeMgrIDExists(java.util.ArrayList<java.lang.String> nodeMgrCfgValues) |
static java.lang.String |
readFile() |
static void |
updateFile(java.lang.String oldNodeMgrCfgLine,
java.lang.String newNodeMgrCfgLine) |
static void |
writeFile() |
public static java.lang.String getSystemModelCfgFilePath()
public static java.lang.String readFile() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static void updateFile(java.lang.String oldNodeMgrCfgLine, java.lang.String newNodeMgrCfgLine)
public static void writeFile() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static boolean nodeMgrIDExists(java.util.ArrayList<java.lang.String> nodeMgrCfgValues)
public static boolean nodeMgrExists() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static void addNodeMgrID()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception