Class CassandraContext

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, StartupValidatable

    public class CassandraContext
    extends java.lang.Object
    implements StartupValidatable, java.io.Closeable
    • Field Detail

      • clusterConfig

        @NotNull
        protected java.util.Set<o.a.c.sidecar.client.shaded.client.SidecarInstance> clusterConfig
    • Constructor Detail

      • CassandraContext

        protected CassandraContext​(BulkSparkConf conf,
                                   @Nullable
                                   java.lang.String clusterId)
    • Method Detail

      • getCluster

        public java.util.Set<o.a.c.sidecar.client.shaded.client.SidecarInstance> getCluster()
      • refreshClusterConfig

        public void refreshClusterConfig()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • initializeSidecarClient

        protected o.a.c.sidecar.client.shaded.client.SidecarClient initializeSidecarClient​(BulkSparkConf conf)
      • createClusterConfig

        protected java.util.Set<o.a.c.sidecar.client.shaded.client.SidecarInstance> createClusterConfig()
      • getSidecarClient

        public o.a.c.sidecar.client.shaded.client.SidecarClient getSidecarClient()
      • sidecarPort

        public int sidecarPort()
      • clusterId

        protected java.lang.String clusterId()
      • startupValidate

        public void startupValidate()
        Description copied from interface: StartupValidatable
        Performs startup validation using StartupValidator with currently registered StartupValidations, throws a RuntimeException if any violations are found, needs to be invoked once per execution before any actual work is started
        Specified by:
        startupValidate in interface StartupValidatable