|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.jmx.mbeans.BaseAdmin
com.ibm.di.api.jmx.mbeans.DIServer
public class DIServer
Field Summary | |
---|---|
static String |
MBEAN_TYPE
|
Constructor Summary | |
---|---|
DIServer(Session aSession)
|
Method Summary | |
---|---|
void |
checkInAndLeaveCheckedOut(MetamergeConfig aConfiguration,
String aRelativePath)
Checks in the specified configuration and leaves it checked out. |
void |
checkInConfiguration(MetamergeConfig aConfiguration,
String aRelativePath)
Saves the specified configuration and releases the lock. |
void |
checkInConfiguration(MetamergeConfig aConfiguration,
String aRelativePath,
boolean aEncrypt)
Encrypts and saves the specified configuration and releases the lock. |
MetamergeConfig |
checkOutConfiguration(String aRelativePath)
Checks out the specified configuration. |
MetamergeConfig |
checkOutConfiguration(String aRelativePath,
String aPassword)
Checks out the specified password protected configuration. |
javax.management.ObjectName |
checkOutConfigurationAndLoad(String aRelativePath)
Checks out the specified configuration and starts a temporary Config Instance on the Server. |
javax.management.ObjectName |
checkOutConfigurationAndLoad(String aRelativePath,
String aPassword)
Checks out the specified configuration and starts a temporary Config Instance on the Server. |
javax.management.ObjectName |
createNewConfigInstance(String aConfigUrl)
|
javax.management.ObjectName |
createNewConfigInstance(String aConfigUrl,
String aPassword)
|
MetamergeConfig |
createNewConfiguration(String aRelativePath,
boolean aOverwrite)
Creates a new empty configuration and immediately checks it out. |
javax.management.ObjectName |
createNewConfigurationAndLoad(String aRelativePath,
boolean aOverwrite)
Creates a new empty configuration, immediately checks it out and loads a temporary Config Instance on the Server. |
String |
getId()
Reads attribute "Id". |
String |
getType()
Reads attribute "Type". |
boolean |
isConfigurationCheckedOut(String aRelativePath)
Checks if the specified configuration is checked out on the Server. |
boolean |
isSSLon()
Checks if the SSL on the server is turned on. |
ArrayList |
listAllConfigurations()
Returns a list of the file names of all configurations in the directory subtree of the Server configuration codebase folder. |
ArrayList |
listConfigurations(String aRelativePath)
Returns a list of the file names of all configurations in the specified folder. |
ArrayList |
listFolders(String aRelativePath)
Returns a list of the child folders of the specified folder. |
boolean |
releaseConfigurationLock(String aRelativePath)
Administratively releases the lock of the specified configuration. |
void |
sendCustomNotification(String aType,
String aId,
Object aData)
Sends a custom, user defined notification to all registered listeners. |
void |
shutDownServer()
Shuts down the ITDI Server. |
void |
shutDownServer(Integer aExitCode)
Shuts down the ITDI Server with the specified exit code. |
javax.management.ObjectName |
startConfigInstance(String aConfigUrl)
Starts a new Config Instance on the Server with the configuration given. |
javax.management.ObjectName |
startConfigInstance(String aConfigUrl,
Boolean aKeepAlive,
String aPassword)
Starts a new Config Instance on the Server with the configuration given. |
boolean |
undoCheckOut(String aRelativePath)
Releases the lock on the specified configuration, thus aborting all changes being done. |
Methods inherited from class com.ibm.di.api.jmx.mbeans.BaseAdmin |
---|
getCurrentUserId, getKeyPropertyList |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MBEAN_TYPE
Constructor Detail |
---|
public DIServer(Session aSession)
Method Detail |
---|
public String getType()
BaseMBean
getType()
and getId()
are used in a common schema for
object names for all MBeans in the management package. The key properties part
of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getType
in interface BaseMBean
public String getId() throws DIException
BaseMBean
getType()
and getId()
are used in a common schema for
object names for all MBeans in the management package. The key properties part
of the object name of each MBean is defined as
"type=" + getType() + ",id=" + getId()
, for example
"type=AssemblyLine,id=Hello".
getId
in interface BaseMBean
DIException
- if an error occurs while obtaining MBean's Id.public javax.management.ObjectName startConfigInstance(String aConfigUrl) throws DIException
DIServerMBean
startConfigInstance
in interface DIServerMBean
aConfigUrl
- The URL where the configuration file is loaded from.
DIException
- if an error occurs on starting the new Config Instance.public javax.management.ObjectName startConfigInstance(String aConfigUrl, Boolean aKeepAlive, String aPassword) throws DIException
DIServerMBean
startConfigInstance
in interface DIServerMBean
aConfigUrl
- The URL where the configuration file is loaded from.aKeepAlive
- When true
the Config Instance will stay alive even
when no threads are running, when false
the Config Instance will automatically
terminate when its last thread terminates.aPassword
- Specify the pasword of the conofiguration when it is password-protected; specify
null
when the configuration is not password-protected.
DIException
- if an error occurs on starting the new Config Instance.public javax.management.ObjectName createNewConfigInstance(String aConfigUrl) throws DIException
createNewConfigInstance
in interface DIServerMBean
aConfigUrl
- The URL of the new configuration file to be created.
DIException
- if an error occurs while creating the new Config Instance.public javax.management.ObjectName createNewConfigInstance(String aConfigUrl, String aPassword) throws DIException
createNewConfigInstance
in interface DIServerMBean
aConfigUrl
- The URL of the new configuration file to be created.aPassword
- If this parameter is not null
, the new configuration will
be protected with the given password.
DIException
- if an error occurs while creating the new Config Instance.public void shutDownServer() throws DIException
DIServerMBean
shutDownServer
in interface DIServerMBean
DIException
- if an error occurs while shutting down the server.public void shutDownServer(Integer aExitCode) throws DIException
DIServerMBean
shutDownServer
in interface DIServerMBean
aExitCode
- the exit code used to shut down ITDI Server.
DIException
- if an error occurs while shutting down the server.public boolean isSSLon() throws DIException
DIServerMBean
isSSLon
in interface DIServerMBean
DIException
- if an error occurs while retrieving the information.public boolean releaseConfigurationLock(String aRelativePath) throws DIException
DIServerMBean
releaseConfigurationLock
in interface DIServerMBean
aRelativePath
- The path to the configuration relative to the Server configuration codebase folder.
DIException
- If an error occurs during releasing the lock.public boolean undoCheckOut(String aRelativePath) throws DIException
DIServerMBean
undoCheckOut
in interface DIServerMBean
aRelativePath
- The path to the configuration relative to the Server configuration codebase folder.
DIException
- If an error occurs during releasing the lock.public ArrayList listConfigurations(String aRelativePath) throws DIException
DIServerMBean
listConfigurations
in interface DIServerMBean
aRelativePath
- A folder relative to the Server configuration codebase folder.
DIException
- If an error occurs while retrieving configurations.public ArrayList listFolders(String aRelativePath) throws DIException
DIServerMBean
listFolders
in interface DIServerMBean
aRelativePath
- A folder relative to the Server configuration codebase folder.
DIException
- If an error occurs while retrieving child folder.public ArrayList listAllConfigurations() throws DIException
DIServerMBean
listAllConfigurations
in interface DIServerMBean
DIException
- If an error occurs while retrieving configurations.public MetamergeConfig checkOutConfiguration(String aRelativePath) throws DIException
DIServerMBean
checkOutConfiguration
in interface DIServerMBean
aRelativePath
- The path to the configuration relative to the Server configuration codebase folder.
DIException
- If an error occurs while checking out the configuration.public MetamergeConfig checkOutConfiguration(String aRelativePath, String aPassword) throws DIException
DIServerMBean
checkOutConfiguration
in interface DIServerMBean
aRelativePath
- The path to the configuration relative to the Server configuration
codebase folder.aPassword
- Specify the password for password protected configurations.
DIException
- If an error occurs while checking out the configuration.public void checkInConfiguration(MetamergeConfig aConfiguration, String aRelativePath) throws DIException
DIServerMBean
checkInConfiguration
in interface DIServerMBean
aConfiguration
- The MetamergeConfig object representing the configuration to
be checked in.aRelativePath
- The path of the configuration relative to the Server configuration
codebase folder.
DIException
- If an error occurs while checking in the configuration.public void checkInConfiguration(MetamergeConfig aConfiguration, String aRelativePath, boolean aEncrypt) throws DIException
DIServerMBean
checkInConfiguration
in interface DIServerMBean
aConfiguration
- The MetamergeConfig object representing the configuration to
be checked in.aRelativePath
- The path of the configuration relative to the Server configuration
codebase folder.aEncrypt
- If set to true, the configuration will be encrypted on the Server.
DIException
- If an error occurs while checking in the configuration.public void checkInAndLeaveCheckedOut(MetamergeConfig aConfiguration, String aRelativePath) throws DIException
DIServerMBean
checkInAndLeaveCheckedOut
in interface DIServerMBean
aConfiguration
- The MetamergeConfig object representing the configuration to
be checked in.aRelativePath
- The path of the configuration relative to the Server configuration
codebase folder.
DIException
- If an error occurs while checking in the configuration.public MetamergeConfig createNewConfiguration(String aRelativePath, boolean aOverwrite) throws DIException
DIServerMBean
createNewConfiguration
in interface DIServerMBean
aRelativePath
- The path of the new configuration file relative to the Server
configuration codebase folder.aOverwrite
- Specify whether to overwrite or not an already exising configuration file.
DIException
- If an error occurs while creating the new configuration.public javax.management.ObjectName checkOutConfigurationAndLoad(String aRelativePath, String aPassword) throws DIException
DIServerMBean
checkOutConfigurationAndLoad
in interface DIServerMBean
aRelativePath
- The path to the configuration relative to the Server configuration
codebase folder.aPassword
- Specify the password for password protected configurations.
DIException
- If an error occurs while checking out the configuration.public javax.management.ObjectName checkOutConfigurationAndLoad(String aRelativePath) throws DIException
DIServerMBean
checkOutConfigurationAndLoad
in interface DIServerMBean
aRelativePath
- The path to the configuration relative to the Server configuration
codebase folder.
DIException
- If an error occurs while checking out the configuration.public javax.management.ObjectName createNewConfigurationAndLoad(String aRelativePath, boolean aOverwrite) throws DIException
DIServerMBean
createNewConfigurationAndLoad
in interface DIServerMBean
aRelativePath
- The path of the new configuration file relative to the Server
configuration codebase folder.aOverwrite
- Specify whether to overwrite or not an already exising configuration file.
DIException
- If an error occurs while creating the new configuration.public boolean isConfigurationCheckedOut(String aRelativePath) throws DIException
DIServerMBean
isConfigurationCheckedOut
in interface DIServerMBean
aRelativePath
- The path to the configuration relative to the Server configuration codebase folder.
DIException
- If an error occurs while checking the configuration.public void sendCustomNotification(String aType, String aId, Object aData) throws DIException
DIServerMBean
sendCustomNotification
in interface DIServerMBean
aType
- Notification type, will be automatically prefixed with "user."aId
- Notification ID, usually identifies the object this event originated from.aData
- Custom user data. Make sure the object passed is serializable if you want
to send this event notification in a remote context.
DIException
- If an error occurs while sending the notification.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |