Package oracle.simplefan
Class ServiceUpEvent
- java.lang.Object
-
- java.util.EventObject
-
- oracle.simplefan.FanEvent
-
- oracle.simplefan.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceUpEvent.EventKind
static class
ServiceUpEvent.Reason
static class
ServiceUpEvent.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 int
getCardinality()
abstract java.lang.String
getDatabaseUniqueName()
abstract ServiceUpEvent.EventKind
getKind()
Service up events can be member up, composite up, or both.abstract ServiceUpEvent.Reason
getReason()
abstract ServiceUpEvent.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 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.
-
-