com.ibm.di.api.remote.impl
Class LogListenerBase
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.ibm.di.api.remote.impl.APIRemoteObject
com.ibm.di.api.remote.impl.LogListenerBase
- All Implemented Interfaces:
- LogListener, RemoteListener, java.io.Serializable, java.rmi.Remote, java.util.EventListener
public class LogListenerBase
- extends APIRemoteObject
- implements LogListener
This utility class allows remote clients to register listeners in the Server
API. Remote listeners must be RMI server objects.
- Since:
- 7.0
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
createInstance
public static LogListenerBase createInstance(LogListener localListener,
boolean useSSL)
throws java.lang.Exception,
java.rmi.RemoteException
- Creates and exports an RMI server object, which can be used as a remote
call-back. The created server object delegates calls to the specified
POJO.
- Parameters:
localListener
- a POJO listener object in the local JVMuseSSL
- if true
SSL is used
- Returns:
- the RMI server object
- Throws:
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.
createInstance
public static LogListenerBase createInstance(LogListener localListener)
throws java.lang.Exception,
java.rmi.RemoteException
- Creates and exports an RMI server object, which can be used as a remote
call-back. The created server object delegates calls to the specified
POJO.
- Parameters:
localListener
- a POJO listener object in the local JVM.
- Returns:
- the RMI server object
- Throws:
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.
createInstance
public static LogListenerBase createInstance(LogListener localListener,
boolean useSSL,
boolean useCustomProperties)
throws java.lang.Exception,
java.rmi.RemoteException
- Creates and exports an RMI server object, which can be used as a remote
call-back. The created server object delegates calls to the specified
POJO.
- Parameters:
localListener
- a POJO listener object in the local JVMuseSSL
- if true
SSL is useduseCustomProperties
- if true
custom SSL properties are used
('api.client.*'), otherwise the default JSSE properties are
used ('javax.net.ssl.*')
- Returns:
- the RMI server object
- Throws:
java.lang.Exception
- if Runtime or Security exception occurs
java.rmi.RemoteException
- if a communication-related exception occurs.
messageLogged
public void messageLogged(java.lang.String message)
throws DIException,
java.rmi.RemoteException
- Called right after the specified message is logged.
- Specified by:
messageLogged
in interface LogListener
- Parameters:
message
- the message text
- Throws:
DIException
- If an error is encountered.
java.rmi.RemoteException
- if a communication-related exception occurs.