org.jinterop.dcom.test
Class JIOPCEventSink

java.lang.Object
  extended by org.jinterop.dcom.test.JIOPCEventSink

public class JIOPCEventSink
extends java.lang.Object


Field Summary
static java.lang.String OPC_IID
           
 
Constructor Summary
JIOPCEventSink()
           
 
Method Summary
 void addListener(EventNotificationListener listener)
           
static JIStruct fileTimeOutStruct()
          Create an out struct definition of this object that may be use in a call object
static JILocalCoClass getCoClass(JIOPCEventSink instance)
           
 java.lang.Object[] onEvent(int clientSubscription, int refresh, int lastRefresh, int count, JIArray eventsArray)
          This method is provided by the client to handle notifications from the OPCEventSubscription for events.
 void removeListener(EventNotificationListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPC_IID

public static final java.lang.String OPC_IID
See Also:
Constant Field Values
Constructor Detail

JIOPCEventSink

public JIOPCEventSink()
Method Detail

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)