Package com.tibco.tibjms.admin
Class Configuration
- java.lang.Object
-
- com.tibco.tibjms.admin.Configuration
-
public class Configuration extends java.lang.ObjectA Configuration object represents a server configuration. Configuration objects can be created locally and used to update a server's configuration, or retrieved from a server.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getAsBytes()Returns the contents of this configuration object.java.lang.StringgetAsString()Returns the contents of this configuration object.voidloadFromFile(java.lang.String fileName)Loads the contents of a file in a configuration object.voidset(byte[] configurationBytes)Sets the contents of this configuration object.voidset(java.lang.String configurationString)Sets the contents of this configuration object.voidwriteToFile(java.lang.String fileName)Writes the contents of a configuration object to a file.
-
-
-
Method Detail
-
getAsBytes
public byte[] getAsBytes()
Returns the contents of this configuration object.- Returns:
- a byte array containing the configuration represented by this object.
- Since:
- EMS 6.0
-
getAsString
public java.lang.String getAsString()
Returns the contents of this configuration object.- Returns:
- a string containing the configuration represented by this object.
- Since:
- EMS 6.0
-
set
public void set(java.lang.String configurationString)
Sets the contents of this configuration object.- Parameters:
configurationString- A string containing the configuration this object will represent.- Since:
- EMS 6.0
-
set
public void set(byte[] configurationBytes)
Sets the contents of this configuration object.- Parameters:
configurationBytes- A byte array containing the configuration this object will represent.- Since:
- EMS 6.0
-
loadFromFile
public void loadFromFile(java.lang.String fileName) throws TibjmsAdminException, java.io.FileNotFoundException, java.io.IOExceptionLoads the contents of a file in a configuration object.- Parameters:
fileName- The filename of the file to load.- Throws:
TibjmsAdminException- if not authorized or an error occurred.java.io.FileNotFoundExceptionjava.io.IOException- Since:
- EMS 6.0
-
writeToFile
public void writeToFile(java.lang.String fileName) throws java.lang.ExceptionWrites the contents of a configuration object to a file.- Parameters:
fileName- The filename of the file to create.- Throws:
TibjmsAdminException- if not authorized or an error occurred.java.lang.Exception- Since:
- EMS 6.0
-
-