|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OpenReplicatorManagerMBean
Replicator Manager MBean interface definition. This contains all replicator management functions.
| Field Summary | |
|---|---|
static int |
signalConfigured
|
static int |
signalConsistencyFail
|
static int |
signalError
|
static int |
signalOfflineReached
|
static int |
signalRestored
|
static int |
signalShutdown
|
static int |
signalSynced
|
| Method Summary | |
|---|---|
java.lang.String |
backup(java.lang.String backupAgentName,
java.lang.String storageAgentName,
long timeout)
Spawns a backup of the database and optionally waits for completion. |
java.util.Map<java.lang.String,java.lang.String> |
capabilities()
Gets the replicator capabilities. |
void |
clearDynamicProperties()
Clears all dynamic properties. |
void |
configure(java.util.Map<java.lang.String,java.lang.String> props)
Run configuration on the replicator. |
int |
consistencyCheck(java.lang.String method,
java.lang.String schemaName,
java.lang.String tableName,
int rowOffset,
int rowLimit)
Initiates consistency check transaction on a given table. |
DynamicMBeanHelper |
createHelper()
Returns a helper that supplies MBean metadata. |
java.lang.String |
flush(long timeout)
Implements a flush operation to synchronize the state of the database with the transaction history log and return the sequence number of the log at the point where the database is synchronized. |
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
getClients()
Returns clients (slaves) of this server. |
java.lang.String |
getClusterName()
Gets the cluster name for this replication service |
java.util.Map<java.lang.String,java.lang.String> |
getDynamicProperties()
Returns a map instance containing currently set dynamic properties, if any. |
java.lang.Object |
getExtensionMBean(java.lang.String name)
Returns the JMX API for a named extension. |
java.lang.String |
getMasterConnectUri()
Returns the master remote URI to which this replicator connects when operating as a slave.stop |
int |
getMasterListenPort()
Returns the port on which the replicator will listen when it's a master. |
java.lang.String |
getMasterListenUri()
Returns the URI on which this master listens when operating as a slave. |
java.lang.String |
getMaxSeqNo()
Returns the highest applied sequence number in the local transaction history log or -1 if log is not operating. |
java.lang.String[] |
getMinMaxSeqNo()
Returns the lowest and the highest sequence numbers in the local transaction history log or -1 if log is not operating. |
java.lang.String |
getMinSeqNo()
Returns the lowest sequence number in the local transaction history log or -1 if log is not operating. |
java.lang.String |
getPendingError()
Returns description of last error if we are in OFFLINE:ERROR state or null if no error is pending. |
java.lang.String |
getPendingExceptionMessage()
Returns message from exception that provoked the last error |
java.lang.String |
getRole()
Returns the current replicator role. |
java.lang.String |
getServiceName()
Gets the service name for this replication service |
java.lang.String |
getSimpleServiceName()
Gets the simple name for this replication service |
java.lang.String |
getSiteName()
Gets the site name for this replication service |
java.lang.String |
getSourceId()
Returns current instance unique source identifier. |
java.lang.String |
getState()
Returns the current replicator state. |
TungstenProperties |
getStatus()
Deprecated. Use getStatus() |
java.lang.Boolean |
getUseSSLConnection()
Returns true if the Replicator uses SSL connections. |
java.lang.String |
getVersion()
Returns the replicator product version. |
void |
heartbeat(java.util.Map<java.lang.String,java.lang.String> props)
Inserts a heartbeat event into the replicator transaction history. |
boolean |
isAlive()
Returns true so that clients can confirm connection liveness. |
java.util.List<java.lang.String> |
listExtensionMBeans()
Returns a list of the names of currently defined extension MBeans. |
void |
offline()
Puts the replicator into the offline state immediately without clean-up, returning once the replicator is offline. |
void |
offlineDeferred(java.util.Map<java.lang.String,java.lang.String> controlParams)
Issues a request to go offline at a particular event or sequence number. |
void |
online()
Puts the replicator into the online state using defaults for all control parameters. |
void |
online2(java.util.Map<java.lang.String,java.lang.String> controlParams)
Puts the replicator into the online state. |
java.util.Map<java.lang.String,java.lang.String> |
properties(java.lang.String key)
Returns a map instance containing currently set properties, if any. |
boolean |
provision(java.lang.String donorUri,
long timeout)
Provisions a database from another copy and optionally waits for completion. |
int |
purge(java.util.Map<java.lang.String,java.lang.String> controlParams)
Attempts to kill all non-replication logins on the DBMS server. |
java.lang.String |
restore(java.lang.String uri,
long timeout)
Spawns a restore of the database and optionally waits for completion. |
void |
setRole(java.lang.String role,
java.lang.String uri)
Sets replicator role. |
void |
signal(int signal,
java.lang.String msg)
Notification signaling methods. |
void |
start(boolean forceOffline)
Starts the replicator service, which spawns all threads and underlying components necessary to perform replication. |
java.util.Map<java.lang.String,java.lang.String> |
status()
Returns the detailed, current status information from the replicator. |
java.util.List<java.util.Map<java.lang.String,java.lang.String>> |
statusList(java.lang.String name)
Returns a list of status instances for a particular list of items. |
void |
stop()
Stops the OpenReplicatorManager |
boolean |
waitForAppliedSequenceNumber(java.lang.String sequenceNo,
long timeout)
Wait for a particular event to be applied on the slave. |
boolean |
waitForState(java.lang.String state,
long timeout)
Waits for the replicator to attain a specific state, such as "SLAVE". |
| Field Detail |
|---|
static final int signalOfflineReached
static final int signalShutdown
static final int signalConfigured
static final int signalSynced
static final int signalRestored
static final int signalConsistencyFail
static final int signalError
| Method Detail |
|---|
boolean isAlive()
java.lang.String getSiteName()
java.lang.String getClusterName()
java.lang.String getServiceName()
java.lang.String getSimpleServiceName()
java.lang.String getVersion()
java.lang.String getSourceId()
java.lang.String getRole()
java.lang.String getMasterConnectUri()
java.lang.String getMasterListenUri()
java.lang.Boolean getUseSSLConnection()
throws java.net.URISyntaxException
java.net.URISyntaxExceptionint getMasterListenPort()
java.util.List<java.util.Map<java.lang.String,java.lang.String>> getClients()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getState()
java.lang.String getPendingError()
java.lang.String getPendingExceptionMessage()
java.lang.String getMaxSeqNo()
throws java.lang.Exception
java.lang.Exception
java.lang.String getMinSeqNo()
throws java.lang.Exception
java.lang.Exception
java.lang.String[] getMinMaxSeqNo()
throws java.lang.Exception
java.lang.Exception
void online2(java.util.Map<java.lang.String,java.lang.String> controlParams)
throws java.lang.Exception
| Name | Description | Default |
| initEventId | Sets initial native event ID at which to start extraction, overriding value from the last event extracted | Replication starts at either last event ID extracted or, if there is none, the current event ID | skipApplyEvents | Number of events to skip applying at startup | 0 | toEventId | Replicate up to the indicated event ID | None | toSeqno | Replicate up to the indicated sequence number | None |
waitForState(String, long) call to wait
synchronously for the replicator to go fully online.
controlParams - 0 or more control parameters expressed as name-value
pairs
java.lang.Exception
void online()
throws java.lang.Exception
java.lang.Exception
void offlineDeferred(java.util.Map<java.lang.String,java.lang.String> controlParams)
throws java.lang.Exception
| Name | Description | Parameter | Default | atEventId | Go offline at the requested event | An event ID in native format | None | atHeartbeat | Go offline at the next heartbeat event. | A heartbeat name or * to select any heartbeat | * | atSeqno | Go offline at the indicated sequence number | A valid sequence number | None | atTransaction | Go offline cleanly at the next transaction. This is the best way to take a replicator offline as it ensures the replicator can reload backups when parallel apply is in effect or make change to parallel apply parameters | Insert any value | None | atTimestamp | Go offline cleanly at the next transaction. This is the best way to take a replicator offline as it ensures the replicator can reload backups when parallel apply is in effect or make change to parallel apply parameters | A timestamp String in yyyy-MM-dd HH:mm:ss format | None |
controlParams - 0 or more control parameters expressed as name-value
pairs
java.lang.Exception
void offline()
throws java.lang.Exception
java.lang.Exception
java.lang.String flush(long timeout)
throws java.lang.Exception
timeout - Number of seconds to wait. 0 is indefinite.
java.lang.Exception - Thrown if we timeout or are canceled
int purge(java.util.Map<java.lang.String,java.lang.String> controlParams)
throws java.lang.Exception
controlParams - 0 or more control parameters expressed as name-value
pairs
java.lang.Exception - Thrown if we timeout or are canceled
@Deprecated
TungstenProperties getStatus()
throws java.lang.Exception
getStatus()
java.lang.Exception
java.util.Map<java.lang.String,java.lang.String> status()
throws java.lang.Exception
java.lang.Exception
java.util.List<java.util.Map<java.lang.String,java.lang.String>> statusList(java.lang.String name)
throws java.lang.Exception
name - Name of the status list. 'tasks' is supported by the native
Tungsten replicator plugin.
java.lang.Exception
void stop()
throws java.lang.Exception
java.lang.Exception
void configure(java.util.Map<java.lang.String,java.lang.String> props)
throws java.lang.Exception
props - A map instance or null to reread local file
java.lang.Exception
void heartbeat(java.util.Map<java.lang.String,java.lang.String> props)
throws java.lang.Exception
props - A map instance containing heartbeat parameters
java.lang.Exception
boolean waitForState(java.lang.String state,
long timeout)
throws java.lang.Exception
state - Name of state on which to wait. This can be a parent state
name--"OFFLINE" will also detect "OFFLINE:NORMAL" and
"OFFLINE:ERROR".timeout - Number of seconds to wait. 0 is indefinite.
java.lang.Exception
boolean waitForAppliedSequenceNumber(java.lang.String sequenceNo,
long timeout)
throws java.lang.Exception
sequenceNo - Id of the event to wait fortimeout - Number of seconds to wait. 0 is indefinite.
java.lang.Exception - if there is a timeout or we are canceled
int consistencyCheck(java.lang.String method,
java.lang.String schemaName,
java.lang.String tableName,
int rowOffset,
int rowLimit)
throws java.lang.Exception
method - consistency check method to useschemaName - name of the table schematableName - name of the table, if null all tables in schema are
checkedrowOffset - start consistency check from this row (numeration starts
with 0). If negative - whole table is checked.rowLimit - limit consistency check to that many rows. If rowOffset
is negative this is ignored.
java.lang.Exception
java.lang.String backup(java.lang.String backupAgentName,
java.lang.String storageAgentName,
long timeout)
throws java.lang.Exception
backupAgentName - Name of the backup agent to use or null to use the
default backupstorageAgentName - Name of the storage agent to use or null to use
the default storagetimeout - Number of seconds to wait. 0 is indefinite, negative means
no wait.
java.lang.Exception - if there is a backup failure
java.lang.String restore(java.lang.String uri,
long timeout)
throws java.lang.Exception
uri - URI of the backup to loadtimeout - Number of seconds to wait. 0 is indefinite, negative means
no wait.
java.lang.Exception - if there is a restore failure
boolean provision(java.lang.String donorUri,
long timeout)
throws java.lang.Exception
donorUri - URI of donor replicatortimeout - Number of seconds to wait. 0 is indefinite, negative means
no wait.
java.lang.Exception - if there is a provisioning failure
void start(boolean forceOffline)
throws java.lang.Exception
forceOffline - true to prevent the replicator from putting its
replication services online (if auto-enable is set to true)
java.lang.Exception - Thrown if start-up fails. This includes failure to go
online if the replicator is auto-enabled.
java.util.Map<java.lang.String,java.lang.String> properties(java.lang.String key)
throws java.lang.Exception
key - optional key of a single property
java.lang.Exception
java.util.Map<java.lang.String,java.lang.String> getDynamicProperties()
throws java.lang.Exception
java.lang.Exception
void clearDynamicProperties()
throws java.lang.Exception
java.lang.Exception
void setRole(java.lang.String role,
java.lang.String uri)
throws java.lang.Exception
role - The new replicator role; must be 'slave', 'master', or
'standby'uri - Optional uri to identify master or slave.
java.lang.Exception
java.lang.Object getExtensionMBean(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
java.util.List<java.lang.String> listExtensionMBeans()
throws java.lang.Exception
java.lang.Exception
DynamicMBeanHelper createHelper()
throws java.lang.Exception
java.lang.Exception
void signal(int signal,
java.lang.String msg)
throws java.lang.Exception
signal - one of signal* strings listed in this interfacemsg - additional message passed along the signal
java.lang.Exception
java.util.Map<java.lang.String,java.lang.String> capabilities()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||