Class ServiceDownEvent

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

    public abstract class ServiceDownEvent
    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:
    11.2
    Version:
    $Header: dbjava/simplefan/src/java/oracle/simplefan/ServiceDownEvent.java /main/4 2016/02/26 12:44:18 tzhou Exp $
    Author:
    dsurber
    See Also:
    Serialized Form
    • Method Detail

      • getKind

        public abstract ServiceDownEvent.EventKind getKind()
        Service down events can be member down, composite down, or both. This method reports which this is. A member down means just a single member instance of the service is down. A composite down means that all member instances of the service are down and so the service itself is down. A single event can report both the last member down and the composite down. 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.
      • getDrainTimeout

        public abstract int getDrainTimeout()
        Returns:
        The server drain-timeout for the service going down, in seconds.
      • getServiceMemberEvent

        public abstract ServiceDownEvent.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.