org.jinterop.dcom.test
Class JIOPCEventSink
java.lang.Object
org.jinterop.dcom.test.JIOPCEventSink
public class JIOPCEventSink
- extends java.lang.Object
Field Summary |
static java.lang.String |
OPC_IID
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPC_IID
public static final java.lang.String OPC_IID
- See Also:
- Constant Field Values
JIOPCEventSink
public JIOPCEventSink()
addListener
public void addListener(EventNotificationListener listener)
removeListener
public void removeListener(EventNotificationListener listener)
onEvent
public java.lang.Object[] onEvent(int clientSubscription,
int refresh,
int lastRefresh,
int count,
JIArray eventsArray)
throws JIException
- This method is provided by the client to handle notifications from the OPCEventSubscription for events. This method can be
called whether this is a refresh or standard event notification.
- Parameters:
clientSubscription
- The client handle for the subscription object sending the event notifications.refresh
- TRUE if this is a subscription refresh.lastRefresh
- TRUE if this is the last subscription refresh in response to a specific invocation of the IOPCEventSubscriptionMgt::Refresh method.count
- Number of event notifications. A value of zero indicates this is a keep-alive notification.events
- Array of event notifications
- Returns:
- An EMPTY() array.
- Throws:
JIException
fileTimeOutStruct
public static final JIStruct fileTimeOutStruct()
- Create an out struct definition of this object that may be use in a call object
- Returns:
- The OPC struct definition
getCoClass
public static final JILocalCoClass getCoClass(JIOPCEventSink instance)