public class MountConsumer extends java.lang.Object implements AcsEventSubscriber.Callback<MountEventData>
| Constructor and Description |
|---|
MountConsumer(ContainerServices cServices)
Creates a new instance of MountConsumer
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<MountEventData> |
getEventType()
This method is needed for adding event-specific subscriptions
and for the type-safety of this API (based on java generics),
and should be implemented like
|
static void |
main(java.lang.String[] args)
Illustrates a simple example outside of the component/container model.
|
void |
receive(MountEventData joe,
EventDescription eventDescrip)
A
receive method must be created for each type of event
we plan on receiving. |
public MountConsumer(ContainerServices cServices) throws AcsJException
AcsJExceptionpublic void receive(MountEventData joe,
EventDescription eventDescrip)
receive method must be created for each type of event
we plan on receiving.receive in interface AcsEventSubscriber.Callback<MountEventData>joe - A data structure extracted from a CORBA event.eventDescrip - Event meta data.public java.lang.Class<MountEventData> getEventType()
AcsEventSubscriber.Callback
public Class<MyEvent> getEventType() {
return MyEvent.class;
}
getEventType in interface AcsEventSubscriber.Callback<MountEventData>public static void main(java.lang.String[] args)
args - Not used!