|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.websphere.xmlconfig.BaseConfig | +--com.ibm.websphere.xmlconfig.XMLConfig
Command-line WebSphere XML Import/Export Tool Usage:
Field Summary | |
static javax.naming.InitialContext |
ctx
|
static org.w3c.dom.Document |
globalDoc
|
static com.ibm.ejs.sm.client.ui.NLS |
nls
|
static java.lang.String |
nodeName
|
Constructor Summary | |
XMLConfig(java.util.Hashtable args)
Constructor to use for command-line access to the XMLConfig functions |
|
XMLConfig(java.lang.String adminNodeName,
boolean _advanced)
Constructor to use for programmatic access to the XMLConfig functions. |
|
XMLConfig(java.lang.String adminNodeName,
boolean _advanced,
java.lang.String nameServiceHost,
int nameServicePort)
Constructor to use for programmatic access to the XMLConfig functions. |
Method Summary | |
void |
checkVersion(java.io.File xmlFile)
|
org.w3c.dom.Document |
executeFullExport()
Performs a FULL repository export |
org.w3c.dom.Document |
executePartialExport(org.w3c.dom.Document inputDocument)
Performs a partial export using to specified XML document to control the operation |
org.w3c.dom.Document |
executePartialExport(java.io.File inputFile)
Performs a partial export using to specified control file |
java.util.Vector |
getErrors()
Gets the errors occurred during the last XMLConfig operation. |
int |
getNoOfErrors()
Gets the no of errors occurred during last XMLConfig operation. |
int |
getNoOfWarnings()
Gets the no of warnings flagged during last XMLConfig operation. |
java.util.Vector |
getWarnings()
Gets the warnings occurred during the last XMLConfig operation. |
void |
importDOM(org.w3c.dom.Element rootElement)
Imports the specified element into the repository |
void |
importFromFile(java.io.File xmlFile)
Imports the data specified file into the repository |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
qualifyName(java.lang.String name)
Qualifies the JNDI Name of an object using the admin node name specified. |
static void |
setVariableReplacementPairs(java.util.Hashtable pairs)
Sets the substitution options for the input file . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static javax.naming.InitialContext ctx
public static org.w3c.dom.Document globalDoc
public static java.lang.String nodeName
public static com.ibm.ejs.sm.client.ui.NLS nls
Constructor Detail |
public XMLConfig(java.lang.String adminNodeName, boolean _advanced) throws javax.naming.NamingException
adminNodeName
- name of the adminserver node you are connecting to._advanced
- true if connection to an advanced edition admin servernameServiceHost
- TCP/IP host name of the Object Name Server (default: localhost)nameServicePort
- TCP/IP port name of the Object Name Server (default: 900)public XMLConfig(java.lang.String adminNodeName, boolean _advanced, java.lang.String nameServiceHost, int nameServicePort) throws javax.naming.NamingException
adminNodeName
- name of the adminserver node you are connecting to._advanced
- true if connection to an advanced edition admin servernameServiceHost
- TCP/IP host name of the Object Name Server (default: localhost)nameServicePort
- TCP/IP port name of the Object Name Server (default: 900)public XMLConfig(java.util.Hashtable args) throws InvalidArgumentException, javax.naming.NamingException
args
- command line argumentsMethod Detail |
public org.w3c.dom.Document executePartialExport(java.io.File inputFile) throws InvalidArgumentException, java.lang.Exception
inputFile
- file that controls partial export operationpublic org.w3c.dom.Document executePartialExport(org.w3c.dom.Document inputDocument)
inputDocument
- XML Document that controls the partial export operationpublic org.w3c.dom.Document executeFullExport()
public void importFromFile(java.io.File xmlFile) throws InvalidArgumentException, java.lang.Exception
xmlFile
- input XML File namepublic void importDOM(org.w3c.dom.Element rootElement)
rootElement
- the XML Element to import into the repositorypublic static java.lang.String qualifyName(java.lang.String name)
public static void main(java.lang.String[] args)
public void checkVersion(java.io.File xmlFile)
public java.util.Vector getErrors()
public java.util.Vector getWarnings()
public int getNoOfErrors()
public int getNoOfWarnings()
public static void setVariableReplacementPairs(java.util.Hashtable pairs)
Hashtable
- with is the "key" "value" pairs for the substitution.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |