|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.APIEngine
public class APIEngine
This is the core class of the Server API. The APIEngine class does all initialization of the Server API. Both the local and the remote APIs are initialized by this class. During the initialization the values of the "api.*" properties in global.properties/solution.properties are used. This class provides methods which give access to a local session needed for using the local API.
Constructor Summary | |
---|---|
APIEngine()
|
Method Summary | |
---|---|
static void |
addEventListener(DIEventListener aListener,
String aTypeFilter,
String aIdFilter)
Adds a new event listener. |
static void |
assemblyLineStarted(AssemblyLine aAssemblyLine)
This is a notification method, that notifies the engine that the specified Assembly Line has been started. |
static void |
assemblyLineTerminated(AssemblyLine aAssemblyLine)
This is a notification method, that notifies the engine that the specified Assembly Line has been terminated. |
static void |
configInstanceStarted(RSInterface aConfigInstance)
This is a notification method, that notifies the engine that the specified Config Instance has been started. |
static void |
configInstanceStopped(RSInterface aConfigInstance)
This is a notification method, that notifies the engine that the specified Config Instance has been stopped. |
static void |
eventHandlerStarted(Switchboard aEventHandler)
This is a notification method, that notifies the engine that the specified Event Handler has been started. |
static void |
eventHandlerTerminated(Switchboard aEventHandler)
This is a notification method, that notifies the engine that the specified Event Handler has been terminated. |
static Hashtable |
getAssemblyLines()
Returns a hashtable whose key elements are the Configuration Instances currently started, and the values are vectors containing all Assembly Lines currently started in the corresponding Configuration Instance. |
static APIAuthenticator |
getAuthenticator()
Returns the API Authenticator object. |
static RMIClientSocketFactory |
getClientSF()
|
static String |
getConfigId(RSInterface configInstance)
Obtain the configuration instance id for a running configuration instance, which has already loaded its configuration file. |
static Vector |
getConfigInstances()
Returns a vector containing all configuration instances currently started. |
static ConfigurationRegistry |
getConfigurationRegistry()
Returns Configuration Registry object. |
static Hashtable |
getEventHandlers()
Returns a hashtable whose key elements are the Configuration Instances currently started, and the values are vectors containing all Event Handlers currently started in the corresponding Configuration Instance. |
static EventNotifier |
getEventNotifier()
Returns the Event Notifier object. |
static Identity |
getIdentity(String aUserId)
Returns the Identity object from the Security Registry corresponding to the user id passes as parameter. |
static String |
getInvokeClassesAllowed()
This methods returns a list of classes. |
static LDAPAuthentication |
getLDAPAuthenticator()
Returns the LDAP Authenticator. |
static Session |
getLocalSession()
Creates a local Session object using a local SessionFactory created during the initialization. |
static Session |
getLocalSession(String aUserName,
String aPassword)
Creates a local Session object using a local SessionFactory created during the initialization. |
static boolean |
getMethodInvokeEnabled()
If method invokation is enabled, then this method returns true. |
static int |
getNamingPort()
|
static ResourceHash |
getResHash()
|
static RMIServerSocketFactory |
getServerSF()
|
static TombstoneManager |
getTombstoneManager()
Returns the Tombstone Manager object. |
static void |
initialize()
Initializes the Server API. |
static void |
initializeRemote()
Initializes the Server API for remote access. |
static Registry |
initRMIRegistry()
Creates and initializes the RMI Registry. |
static boolean |
isDebugEnabled()
Returns "true" if debug is enabled and "false" otherwise. |
static boolean |
isLDAPAuthenticationEnabled()
Returns true if LDAP Authentication is enabled. |
static boolean |
isSSLClientAuthenticationOn()
Returns true if SSL Client Authentiation is on. |
static boolean |
isSSLon()
Returns true if SSL has been turned on. |
static void |
logDebug(String aMessage)
Logs a message using the DEBUG log level. |
static void |
logError(String aMessage)
Logs a message using the ERROR log level. |
static void |
logErrorAndThrowException(String aErrorMsg)
Logs a message using the ERROR log level and then throws a DIException using the same message. |
static void |
logErrorAndThrowException(String aErrorMsg,
Throwable e)
Logs a message composed from the message passes as parameter and the message in the Throwable object. |
static void |
logFatal(String aMessage)
Logs a message using the FATAL log level. |
static void |
logInfo(String aMessage)
Logs a message using the INFO log level. |
static void |
logWarn(String aMessage)
Logs a message using the WARN log level. |
static boolean |
removeEventListener(DIEventListener aListener)
Removes existing event listener. |
static void |
sendCustomNotification(String aType,
String aId,
Object aData)
Sends a custom notification event using the API Engine's Event Notifier. |
static void |
sendEventToACT(Serializable event)
Process event by the Active Correlation Technology engine. |
static void |
serverStopped(long aServerStarted)
This is a notification method, that notifies the engine that server has been stopped. |
static void |
setKeyStorePasswords(String aKeyStorePassword,
String aKeyPassword)
|
static void |
triggerStarted(Trigger aTrigger)
This is a notification method, that notifies the engine that the specified Trigger has been started. |
static void |
triggerTerminated(Trigger aTrigger)
This is a notification method, that notifies the engine that the specified Trigger has been terminated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_API_ON
public static final String PROP_API_USER_REGISTRY
public static final String PROP_API_USER_REGISTRY_ENCRYPTION_ON
public static final String PROP_API_REMOTE_ON
public static final String PROP_API_REMOTE_NAMING_PORT
public static final String PROP_API_REMOTE_SSL_ON
public static final String PROP_API_REMOTE_SSL_CLIENT_AUTH_ON
public static final String PROP_API_REMOTE_NONSSL_HOSTS
public static final String PROP_API_JMX_ON
public static final String PROP_API_JMX_REMOTE_ON
public static final String PROP_TOMBSTONE_MANAGER_ON
public static final String PROP_API_CUSTOM_AUTH
public static final String PROP_API_CUSTOM_METHOD_INVOKE
public static final String PROP_API_CUSTOM_METHOD_INVOKE_ALLOWED_CLASSES
public static final String PROP_API_CUSTOM_AUTH_LDAP_CRITICAL
public static final String PROP_API_CUSTOM_AUTH_LDAP_HOSTNAME
public static final String PROP_API_CUSTOM_AUTH_LDAP_PORT
public static final String PROP_API_CUSTOM_AUTH_LDAP_USE_SSL
public static final String PROP_API_CUSTOM_AUTH_LDAP_SEARCHBASE
public static final String PROP_API_CUSTOM_AUTH_LDAP_ADMIN_DN
public static final String PROP_API_CUSTOM_AUTH_LDAP_ADMIN_PASSWORD
public static final String PROP_API_CUSTOM_AUTH_LDAP_USER_ATTRIBUTE
public static final String PROP_API_CUSTOM_AUTH_LDAP_VALUE
public static final int DEFAULT_REGISTRY_PORT
public static final String REMOTE_SESSION_FACTORY_NAME
Constructor Detail |
---|
public APIEngine()
Method Detail |
---|
public static ResourceHash getResHash()
public static void initialize() throws DIException
DIException
public static Session getLocalSession() throws DIException
DIException
public static Session getLocalSession(String aUserName, String aPassword) throws DIException
DIException
public static void initializeRemote() throws DIException
DIException
public static void configInstanceStarted(RSInterface aConfigInstance) throws DIException
DIException
public static void configInstanceStopped(RSInterface aConfigInstance) throws DIException
DIException
public static void assemblyLineStarted(AssemblyLine aAssemblyLine) throws DIException
DIException
public static void assemblyLineTerminated(AssemblyLine aAssemblyLine) throws DIException
DIException
public static void eventHandlerStarted(Switchboard aEventHandler) throws DIException
DIException
public static void eventHandlerTerminated(Switchboard aEventHandler) throws DIException
DIException
public static void triggerStarted(Trigger aTrigger) throws DIException
DIException
public static void triggerTerminated(Trigger aTrigger) throws DIException
DIException
public static void serverStopped(long aServerStarted) throws DIException
DIException
public static Vector getConfigInstances() throws DIException
DIException
public static Hashtable getAssemblyLines() throws DIException
DIException
public static Hashtable getEventHandlers() throws DIException
DIException
public static Identity getIdentity(String aUserId) throws DIException
DIException
public static void addEventListener(DIEventListener aListener, String aTypeFilter, String aIdFilter) throws DIException
DIException
public static boolean removeEventListener(DIEventListener aListener) throws DIException
DIException
public static boolean isDebugEnabled()
public static void logDebug(String aMessage)
public static void logInfo(String aMessage)
public static void logError(String aMessage)
public static void logWarn(String aMessage)
public static void logFatal(String aMessage)
public static void logErrorAndThrowException(String aErrorMsg) throws DIException
DIException
public static void logErrorAndThrowException(String aErrorMsg, Throwable e) throws DIException
DIException
public static int getNamingPort()
public static boolean isSSLon()
true
if SSL has been turned on. Otherwise returns false
.
public static boolean isSSLClientAuthenticationOn()
true
if SSL Client Authentiation is on. Otherwise returns false
.
public static RMIServerSocketFactory getServerSF()
public static RMIClientSocketFactory getClientSF()
public static Registry initRMIRegistry() throws DIException
DIException
public static void setKeyStorePasswords(String aKeyStorePassword, String aKeyPassword) throws Exception
Exception
public static TombstoneManager getTombstoneManager()
public static ConfigurationRegistry getConfigurationRegistry()
public static EventNotifier getEventNotifier()
public static APIAuthenticator getAuthenticator()
public static void sendCustomNotification(String aType, String aId, Object aData) throws DIException
DIException
public static LDAPAuthentication getLDAPAuthenticator()
public static boolean isLDAPAuthenticationEnabled()
true
if LDAP Authentication is enabled. Otherwise returns false
.
public static boolean getMethodInvokeEnabled()
public static String getInvokeClassesAllowed()
public static void sendEventToACT(Serializable event) throws DIException
event
- The event to be processed.
DIException
- An error while processing the event.public static String getConfigId(RSInterface configInstance)
configInstance
- A running configuration instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |