public class ReplicationManagerSiteInfo
extends java.lang.Object
ReplicationManagerSiteInfo objects are returned by
Environment.getReplicationManagerSiteList
Modifier and Type | Field | Description |
---|---|---|
ReplicationHostAddress |
addr |
The replication site's address
|
int |
eid |
The replication site's identifier
|
LogSequenceNumber |
maximumLSN |
The highest log number acknowledged as durable by this site.
|
Constructor | Description |
---|---|
ReplicationManagerSiteInfo(ReplicationHostAddress hostAddr,
LogSequenceNumber max,
int eid) |
Create a ReplicationManagerSiteInfo with the given information, isConnected defaults to false.
|
ReplicationManagerSiteInfo(ReplicationHostAddress hostAddr,
LogSequenceNumber max,
int eid,
boolean isConnected) |
Create a ReplicationManagerSiteInfo with the given information.
|
ReplicationManagerSiteInfo(ReplicationHostAddress hostAddr,
LogSequenceNumber max,
int eid,
boolean isConnected,
boolean isElectable,
boolean isPeer,
boolean isView) |
Create a ReplicationManagerSiteInfo with the given information.
|
Modifier and Type | Method | Description |
---|---|---|
ReplicationManagerConnectionStatus |
getConnectionStatus() |
The status of the replication site's connection.
|
boolean |
isConnected() |
Deprecated.
Replaced by
getConnectionStatus() |
boolean |
isElectable() |
The replication site can be elected as master.
|
boolean |
isPeer() |
The replication site is a peer.
|
boolean |
isView() |
The replication site is a view.
|
public ReplicationHostAddress addr
public LogSequenceNumber maximumLSN
public int eid
public ReplicationManagerSiteInfo(ReplicationHostAddress hostAddr, LogSequenceNumber max, int eid)
hostAddr
- the host addressmax
- the maximum log sequence numbereid
- the environment IDpublic ReplicationManagerSiteInfo(ReplicationHostAddress hostAddr, LogSequenceNumber max, int eid, boolean isConnected)
hostAddr
- the host addressmax
- the maximum log sequence numbereid
- the environment IDisConnected
- is connectedpublic ReplicationManagerSiteInfo(ReplicationHostAddress hostAddr, LogSequenceNumber max, int eid, boolean isConnected, boolean isElectable, boolean isPeer, boolean isView)
hostAddr
- the host addressmax
- the maximum log sequence numbereid
- the environment IDisElectable
- is electableisConnected
- is connectedisPeer
- is peerisView
- is viewpublic ReplicationManagerConnectionStatus getConnectionStatus()
@Deprecated public boolean isConnected()
getConnectionStatus()
public boolean isElectable()
public boolean isPeer()
public boolean isView()
Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.