oracle.ucp.common.FailoverEvent, OracleFailoverEventpublic class OracleFailoverEventImpl extends Object implements OracleFailoverEvent
ABORT_AND_CLOSE_CONNECTION, DATABASE_FAILOVER_EVENT_TYPE_HOST, DATABASE_FAILOVER_EVENT_TYPE_SERVICE, DATABASE_FAILOVER_REASON_PLANNED_DOWN, DATABASE_FAILOVER_STATUS_DOWN, DATABASE_FAILOVER_STATUS_NODE_DOWN, DATABASE_FAILOVER_STATUS_NOT_RESTARTING, DATABASE_FAILOVER_STATUS_RESTART_FAILED, DATABASE_FAILOVER_STATUS_UP, MARK_DOWN_CONNECTION| Constructor | Description |
|---|---|
OracleFailoverEventImpl(String eventType) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getCardinality() |
Gets the event cardinality.
|
String |
getDbDomainName() |
Gets the name of the database domain in which the event occurred.
|
String |
getDbUniqueName() |
Gets the unique name of the database on which the event occurred.
|
int |
getDrainTimeout() |
Gets the server drain-timeout for the service going down,
in seconds.
|
String |
getEventType() |
Gets the event type.
|
String |
getHostName() |
Gets the name of the host on which the event occurred.
|
String |
getInstanceName() |
Gets the name of the instance on which the event occurred.
|
String |
getReason() |
Gets the reason why the event occurred.
|
String |
getServiceName() |
Gets the name of the service on which the event occurred.
|
String |
getStatus() |
Gets the status of the event.
|
long |
getTimestamp() |
Gets the event timestamp value.
|
String |
getTimeZone() |
Gets the event time zone string.
|
boolean |
isValid() |
Whether this event is valid.
|
void |
setCardinality(int cardinality) |
|
void |
setDbDomainName(String domainName) |
|
void |
setDbUniqueName(String dbUniqueName) |
|
void |
setEventType(String eventType) |
|
void |
setHostName(String hostName) |
|
void |
setInstanceName(String instanceName) |
|
void |
setReason(String reason) |
|
void |
setServiceName(String serviceName) |
|
void |
setStatus(String status) |
|
void |
setTimestamp(Date ts) |
|
void |
setTimeZone(String timezone) |
|
void |
setValidity(boolean isValid) |
|
String |
toString() |
public OracleFailoverEventImpl(String eventType) throws UniversalConnectionPoolException
eventType - The failover event type. See OracleFailoverEventImpl.FAILOVER_EVENT_TYPE_STRING_*
for legal event types.UniversalConnectionPoolException - If an error occurs creating the failover event.public String getServiceName()
OracleFailoverEventgetServiceName in interface OracleFailoverEventpublic void setServiceName(String serviceName)
public String getInstanceName()
OracleFailoverEventgetInstanceName in interface OracleFailoverEventpublic void setInstanceName(String instanceName)
public String getDbUniqueName()
OracleFailoverEventgetDbUniqueName in interface OracleFailoverEventpublic void setDbUniqueName(String dbUniqueName)
public String getHostName()
OracleFailoverEventgetHostName in interface OracleFailoverEventpublic void setHostName(String hostName)
public String getDbDomainName()
OracleFailoverEventgetDbDomainName in interface OracleFailoverEventpublic void setDbDomainName(String domainName)
public String getStatus()
OracleFailoverEventgetStatus in interface OracleFailoverEventpublic void setStatus(String status)
public int getCardinality()
OracleFailoverEventgetCardinality in interface OracleFailoverEventpublic void setCardinality(int cardinality)
public String getReason()
OracleFailoverEventgetReason in interface OracleFailoverEventpublic void setReason(String reason)
public String getEventType()
OracleFailoverEventgetEventType in interface OracleFailoverEventpublic void setEventType(String eventType) throws UniversalConnectionPoolException
UniversalConnectionPoolExceptionpublic long getTimestamp()
OracleFailoverEventgetTimestamp in interface OracleFailoverEventpublic void setTimestamp(Date ts)
public String getTimeZone()
OracleFailoverEventgetTimeZone in interface OracleFailoverEventpublic void setTimeZone(String timezone)
public boolean isValid()
OracleFailoverEventisValid in interface OracleFailoverEventpublic void setValidity(boolean isValid)
public int getDrainTimeout()
OracleFailoverEventgetDrainTimeout in interface OracleFailoverEvent
Copyright © 2008, 2017, Oracle. All rights reserved.