Class ServiceUpEvent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public abstract class ServiceUpEvent
    extends FanEvent
    implements java.lang.Cloneable, java.io.Serializable
    A container that can hold both kinds of service events. The service member and service composite events can either arrive separately or combined in a single event.
    Since:
    12.2
    Version:
    $Header: dbjava/simplefan/src/java/oracle/simplefan/ServiceUpEvent.java /main/1 2014/12/10 09:50:33 tzhou Exp $
    Author:
    tzhou
    See Also:
    Serialized Form
    • Method Detail

      • getKind

        public abstract ServiceUpEvent.EventKind getKind()
        Service up events can be member up, composite up, or both. This method reports which this is. A member up means just a single member instance of the service is up. A composite up means that all member instances of the service are up and so the service itself is up. A single event can report both the last member up and the composite up. These may also come as separate events.
        Returns:
        the event kind.
      • getServiceName

        public abstract java.lang.String getServiceName()
        Returns:
        the service name.
      • getDatabaseUniqueName

        public abstract java.lang.String getDatabaseUniqueName()
        Returns:
        the database unique name.
      • getReason

        public abstract ServiceUpEvent.Reason getReason()
        Returns:
        the reason for the service going up.
      • getCardinality

        public abstract int getCardinality()
        Returns:
        the cardinality for the service going up.
      • getServiceMemberEvent

        public abstract ServiceUpEvent.ServiceMemberEvent getServiceMemberEvent()
        Return the service member subevent information if this is a service member event. Returns null if this kind is COMPOSITE. A service event can be either a member or composite event, or both.
        Returns:
        a ServiceMemberEvent or null.