Package oracle.simplefan
Class ServiceDownEvent
- java.lang.Object
-
- java.util.EventObject
-
- oracle.simplefan.FanEvent
-
- oracle.simplefan.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceDownEvent.EventKind
static class
ServiceDownEvent.Reason
static class
ServiceDownEvent.ServiceMemberEvent
The service member event that reflects the status change of a service on a particular instance (and node).
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
getDatabaseUniqueName()
abstract int
getDrainTimeout()
abstract ServiceDownEvent.EventKind
getKind()
Service down events can be member down, composite down, or both.abstract ServiceDownEvent.Reason
getReason()
abstract ServiceDownEvent.ServiceMemberEvent
getServiceMemberEvent()
Return the service member subevent information if this is a service member event.abstract java.lang.String
getServiceName()
-
Methods inherited from class oracle.simplefan.FanEvent
getTimestamp
-
-
-
-
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.
-
getReason
public abstract ServiceDownEvent.Reason getReason()
- Returns:
- the reason for the service going down.
-
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.
-
-