Package com.zendesk.maxwell
Class MaxwellContext
- java.lang.Object
-
- com.zendesk.maxwell.MaxwellContext
-
public class MaxwellContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description com.codahale.metrics.health.HealthCheckRegistry
healthCheckRegistry
com.codahale.metrics.MetricRegistry
metricRegistry
-
Constructor Summary
Constructors Constructor Description MaxwellContext(MaxwellConfig config)
-
Method Summary
-
-
-
Constructor Detail
-
MaxwellContext
public MaxwellContext(MaxwellConfig config) throws SQLException, URISyntaxException
- Throws:
SQLException
URISyntaxException
-
-
Method Detail
-
getConfig
public MaxwellConfig getConfig()
-
getReplicationConnection
public Connection getReplicationConnection() throws SQLException
- Throws:
SQLException
-
getReplicationConnectionPool
public ConnectionPool getReplicationConnectionPool()
-
getMaxwellConnectionPool
public ConnectionPool getMaxwellConnectionPool()
-
getSchemaConnectionPool
public ConnectionPool getSchemaConnectionPool()
-
getMaxwellConnection
public Connection getMaxwellConnection() throws SQLException
- Throws:
SQLException
-
getRawMaxwellConnection
public Connection getRawMaxwellConnection() throws SQLException
- Throws:
SQLException
-
start
public void start() throws IOException
- Throws:
IOException
-
addTask
public void addTask(StoppableTask task)
-
terminate
public Thread terminate()
-
shutdown
public void shutdown(AtomicBoolean complete)
-
startTask
public Thread startTask(RunLoopProcess task, String name)
-
getError
public Exception getError()
-
getPositionStoreThread
public PositionStoreThread getPositionStoreThread()
-
getInitialPosition
public Position getInitialPosition() throws SQLException
- Throws:
SQLException
-
getOtherClientPosition
public Position getOtherClientPosition() throws SQLException
- Throws:
SQLException
-
getRecoveryInfo
public RecoveryInfo getRecoveryInfo() throws SQLException
- Throws:
SQLException
-
setPosition
public void setPosition(RowMap r)
-
setPosition
public void setPosition(Position position)
-
getPosition
public Position getPosition() throws SQLException
- Throws:
SQLException
-
getPositionStore
public MysqlPositionStore getPositionStore()
-
getServerID
public Long getServerID() throws SQLException
- Throws:
SQLException
-
getMysqlVersion
public MysqlVersion getMysqlVersion() throws SQLException
- Throws:
SQLException
-
shouldHeartbeat
public boolean shouldHeartbeat() throws SQLException
- Throws:
SQLException
-
getCaseSensitivity
public CaseSensitivity getCaseSensitivity() throws SQLException
- Throws:
SQLException
-
getProducer
public AbstractProducer getProducer() throws IOException
- Throws:
IOException
-
runBootstrapNow
public void runBootstrapNow()
-
getBootstrapController
public BootstrapController getBootstrapController(Long currentSchemaID) throws IOException
- Throws:
IOException
-
startSchemaCompactor
public void startSchemaCompactor() throws SQLException
- Throws:
SQLException
-
getFilter
public Filter getFilter()
-
getReplayMode
public boolean getReplayMode()
-
setReplicator
public void setReplicator(Replicator replicator)
-
getMetrics
public Metrics getMetrics()
-
getHeartbeatNotifier
public HeartbeatNotifier getHeartbeatNotifier()
-
getDiagnosticContext
public MaxwellDiagnosticContext getDiagnosticContext()
-
-