|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.microfocus.cobol.connector.spi.CobolConnectionEventListener
The connector architecture provides an event callback mechanism that enables an application server to receive notifications from a ManagedConnection instance. The App server implements this class in order to listen to event notifications from ManagedConnection instance.
| Constructor Summary | |
|---|---|
CobolConnectionEventListener(ManagedConnection mcon)
Create a connection event listener. |
|
| Method Summary | |
|---|---|
protected void |
addConnectorListener(ConnectionEventListener l)
Add a connection listener to the list of listeners. |
void |
connectionClosed(ConnectionEvent event)
Send a connection closed event. |
void |
connectionErrorOccurred(ConnectionEvent event)
Send a connection error occured event. |
void |
localTransactionCommitted(ConnectionEvent event)
Send a local transaction commited event |
void |
localTransactionRolledback(ConnectionEvent event)
Send a local transaction rolled back event |
void |
localTransactionStarted(ConnectionEvent event)
Send a local transaction started event |
protected void |
removeConnectorListener(ConnectionEventListener l)
Remove a connection listener from the list of listeners. |
protected void |
sendEvent(int eventType,
Exception ex,
Object connectionHandle)
Send the event to all listeners of the connectionEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CobolConnectionEventListener(ManagedConnection mcon)
mcon - CobolManagedConnection instance| Method Detail |
protected void sendEvent(int eventType,
Exception ex,
Object connectionHandle)
eventType - The event type.ex - The exception to be associated with Connection event.connectionHandle - The connection handle to be associated with
Connection event.protected void addConnectorListener(ConnectionEventListener l)
l - The connection listener.protected void removeConnectorListener(ConnectionEventListener l)
l - The connection listener.public void connectionClosed(ConnectionEvent event)
connectionClosed in interface ConnectionEventListenerevent - The connection event.public void connectionErrorOccurred(ConnectionEvent event)
connectionErrorOccurred in interface ConnectionEventListenerevent - The connection event.public void localTransactionCommitted(ConnectionEvent event)
localTransactionCommitted in interface ConnectionEventListenerevent - Connection event instancepublic void localTransactionRolledback(ConnectionEvent event)
localTransactionRolledback in interface ConnectionEventListenerevent - Connection event instancepublic void localTransactionStarted(ConnectionEvent event)
localTransactionStarted in interface ConnectionEventListenerevent - Connection event instance
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.