|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginContext
This class defines a context passed into replicator plugins that exposes call-backs into the replicator itself to fetch configuration information and invoke services.
| Method Summary | |
|---|---|
FailurePolicy |
getApplierFailurePolicy()
Returns the applier failure policy. |
int |
getChannels()
Returns the number of channels in the tail stage of the pipeline or -1 if pipeline is not active. |
java.lang.String |
getClusterName()
Cluster name to which replicator belongs. |
long |
getCommittedSeqno()
Returns the minimum safely committed sequence number from the end of the pipeline. |
com.continuent.tungsten.fsm.event.EventDispatcher |
getEventDispatcher()
Returns the event dispatcher for reporting interesting events. |
ReplicatorPlugin |
getExtension(java.lang.String name)
Returns the named extension or null if the extension does not exist. |
java.util.List<java.lang.String> |
getExtensionNames()
Returns the current list of extensions. |
FailurePolicy |
getExtractorFailurePolicy()
Returns the extractorFailurePolicy value. |
java.lang.String |
getJdbcPassword()
Returns a password suitable for login to local data source. |
java.lang.String |
getJdbcUrl(java.lang.String database)
Returns a JDBC URL suitable for login to local data source. |
java.lang.String |
getJdbcUser()
Returns a user for login to local data source. |
java.lang.String |
getLastOnlineRoleName()
Returns the role as of the last time the replicator went online or null if the role is not known. |
ReplicatorMonitor |
getMonitor()
Returns the monitoring data object. |
TungstenProperties |
getOnlineOptions()
Returns current runtime options set when the replicator went online or null if replicator has not gone online yet. |
java.lang.String |
getPipelineSource()
Returns the transaction source of the head stage in the pipeline. |
TungstenProperties |
getReplicatorProperties()
Returns the current replicator configuration properties. |
java.lang.String |
getReplicatorSchemaName()
Schema name for storing replicator catalogs. |
java.lang.String |
getRoleName()
Returns the role name. |
PipelineService |
getService(java.lang.String name)
Returns a named pipeline service component. |
java.lang.String |
getServiceName()
Service name to which replication belongs. |
java.util.List<PipelineService> |
getServices()
Returns all pipeline service components. |
java.lang.String |
getSourceId()
Source ID for this replicator. |
java.util.List<Stage> |
getStages()
Returns stages in pipeline order. |
Store |
getStore(java.lang.String name)
Returns a named storage component. |
java.util.List<Store> |
getStores()
Returns all stores. |
java.lang.String |
getTungstenTableType()
Returns the table type used for Tungsten catalog databases. |
boolean |
isAutoEnable()
Returns true if replicator should go on-line automatically. |
boolean |
isConsistencyCheckColumnNames()
Should consistency check be sensitive to column names? |
boolean |
isConsistencyCheckColumnTypes()
Should consistency check be sensitive to column types? |
boolean |
isConsistencyFailureStop()
True if the replicator should stop on checksum failure. |
boolean |
isDoChecksum()
Are checksums enabled? If false this overrides any local checksum setting. |
boolean |
isMaster()
Returns true if the replicator role is master. |
boolean |
isPrivilegedSlaveUpdate()
Returns true if the JDBC login for slave apply is a superuser. |
boolean |
isRemoteService()
Returns true if the current replication pipeline belongs to a remote data service. |
boolean |
isSlave()
Returns true if the replicator role is slave. |
boolean |
logReplicatorUpdates()
Returns true if we want to log replicator updates. |
boolean |
nativeSlaveTakeover()
Return true if operating in native slave takeover mode. |
void |
registerMBean(java.lang.Object mbean,
java.lang.Class<?> mbeanClass,
java.lang.String name)
Registers a JMX MBean from a lower-level component. |
void |
setPipelineSource(java.lang.String source)
Registers the transaction source (if any) for the head of the current pipeline. |
java.util.concurrent.Future<ReplDBMSHeader> |
waitForCommitted(long seqno)
Returns a future to allow clients to wait until the pipeline has safely committed the requested seqno. |
| Method Detail |
|---|
TungstenProperties getReplicatorProperties()
TungstenProperties getOnlineOptions()
java.lang.String getJdbcUrl(java.lang.String database)
java.lang.String getJdbcUser()
java.lang.String getJdbcPassword()
java.lang.String getReplicatorSchemaName()
FailurePolicy getApplierFailurePolicy()
FailurePolicy getExtractorFailurePolicy()
boolean isConsistencyFailureStop()
boolean isConsistencyCheckColumnNames()
boolean isConsistencyCheckColumnTypes()
boolean isDoChecksum()
java.lang.String getSourceId()
java.lang.String getClusterName()
java.lang.String getServiceName()
java.lang.String getRoleName()
java.lang.String getLastOnlineRoleName()
getRoleName(). This value is used to help with
recovery when transitioning between states.
boolean isSlave()
boolean isMaster()
boolean isAutoEnable()
java.util.List<Stage> getStages()
Store getStore(java.lang.String name)
java.util.List<Store> getStores()
PipelineService getService(java.lang.String name)
java.util.List<PipelineService> getServices()
ReplicatorMonitor getMonitor()
com.continuent.tungsten.fsm.event.EventDispatcher getEventDispatcher()
ReplicatorPlugin getExtension(java.lang.String name)
java.util.List<java.lang.String> getExtensionNames()
void registerMBean(java.lang.Object mbean,
java.lang.Class<?> mbeanClass,
java.lang.String name)
boolean isRemoteService()
boolean logReplicatorUpdates()
boolean isPrivilegedSlaveUpdate()
boolean nativeSlaveTakeover()
long getCommittedSeqno()
java.util.concurrent.Future<ReplDBMSHeader> waitForCommitted(long seqno)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionvoid setPipelineSource(java.lang.String source)
source - Typical value is a URI of some kindjava.lang.String getPipelineSource()
java.lang.String getTungstenTableType()
int getChannels()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||