it.agilelab.bigdata.wasp.consumers.spark.batch
SparkConsumersBatchMasterGuardian
Companion object SparkConsumersBatchMasterGuardian
class SparkConsumersBatchMasterGuardian extends Actor with Stash with SparkBatchConfiguration with Logging with DatabaseOperations
- Alphabetic
- By Inheritance
- SparkConsumersBatchMasterGuardian
- DatabaseOperations
- Logging
- SparkBatchConfiguration
- Stash
- RequiresMessageQueue
- UnrestrictedStash
- StashSupport
- Actor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Receive = PartialFunction[Any, Unit]
- Definition Classes
- Actor
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
aroundPostRestart(reason: Throwable): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundPostStop(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundPreRestart(reason: Throwable, message: Option[Any]): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundPreStart(): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
def
aroundReceive(receive: akka.actor.Actor.Receive, msg: Any): Unit
- Attributes
- protected[akka]
- Definition Classes
- Actor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val batchJobBL: BatchJobBL
- val batchSchedulerBl: BatchSchedulersBL
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
implicit
val
context: ActorContext
- Definition Classes
- Actor
-
def
createInstanceOf(model: BatchJobModel, restConfig: Config): Try[BatchJobInstanceModel]
Creates an instance of the specified model.
Creates an instance of the specified model.
- model
The model to instantiate
- returns
A Try containing the instance model or an exception
- Definition Classes
- DatabaseOperations
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val howManySlaveActors: Int
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: WaspLogger
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
postRestart(reason: Throwable): Unit
- Definition Classes
- Actor
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
postStop(): Unit
- Definition Classes
- UnrestrictedStash → Actor
-
def
preRestart(reason: Throwable, message: Option[Any]): Unit
- Definition Classes
- UnrestrictedStash → Actor
-
def
preStart(): Unit
- Definition Classes
- SparkConsumersBatchMasterGuardian → Actor
-
def
receive: Receive
- Definition Classes
- SparkConsumersBatchMasterGuardian → Actor
-
def
retrieveBatchJob(name: String): Try[BatchJobModel]
Retrieves BatchJobModels with specified name from the db.
Retrieves BatchJobModels with specified name from the db.
if no batch job exist with name failure is returned
- returns
A Try containing the BatchJobModels or an exception
- Definition Classes
- DatabaseOperations
-
def
retrieveBatchJobInstances(job: BatchJobModel)(status: JobStatus*): Try[Seq[BatchJobInstanceModel]]
Retrieves BatchJobInstanceModels of BatchJobModel with specified statuses
Retrieves BatchJobInstanceModels of BatchJobModel with specified statuses
- job
The parent BatchJobModel whose instances should be retrieved
- status
the status of the BatchJobInstanceModel that should be retrieved
- returns
A Try containing the BatchJobInstanceModels or an exception
- Definition Classes
- DatabaseOperations
-
def
retrieveBatchJobInstances(status: JobStatus*): Try[Seq[BatchJobInstanceModel]]
Retrieves BatchJobInstanceModels with specified statuses
Retrieves BatchJobInstanceModels with specified statuses
- status
the status of the BatchJobInstanceModel that should be retrieved
- returns
A Try containing the BatchJobInstanceModels or an exception
- Definition Classes
- DatabaseOperations
-
def
retrieveBatchJobs(): Try[Seq[BatchJobModel]]
Retrieves BatchJobModels from the db.
Retrieves BatchJobModels from the db.
- returns
A Try containing the BatchJobModels or an exception
- Definition Classes
- DatabaseOperations
-
def
retrieveSchedules(): Try[Seq[BatchSchedulerModel]]
Retrieves the schedulers from the db
Retrieves the schedulers from the db
- returns
A Try containing the scheduler models or an exception
- Definition Classes
- DatabaseOperations
-
implicit final
val
self: ActorRef
- Definition Classes
- Actor
-
final
def
sender(): ActorRef
- Definition Classes
- Actor
-
lazy val
sparkBatchConfig: SparkBatchConfigModel
- Definition Classes
- SparkBatchConfiguration
-
def
stash(): Unit
- Definition Classes
- StashSupport
-
def
supervisorStrategy: SupervisorStrategy
- Definition Classes
- Actor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unhandled(message: Any): Unit
- Definition Classes
- Actor
-
def
unstashAll(): Unit
- Definition Classes
- StashSupport
-
def
updateToStatus(jobInstance: BatchJobInstanceModel, targetStatus: JobStatus, maybeError: Option[Throwable] = None): Try[BatchJobInstanceModel]
Updates the status of the supplied instance to the target status.
Updates the status of the supplied instance to the target status.
- jobInstance
The instance to update
- targetStatus
The target status
- maybeError
Maybe an error to persist on the database
- returns
A try containing the updated BatchJobInstanceModel or an exception.
- Definition Classes
- DatabaseOperations
-
def
updateToStatus(jobInstances: Seq[BatchJobInstanceModel], targetStatus: JobStatus): Try[Seq[BatchJobInstanceModel]]
Updates the status of the supplied instances to the target status.
Updates the status of the supplied instances to the target status.
- jobInstances
The instances to update
- targetStatus
The target status
- returns
A try containing the updated BatchJobInstanceModel or an exception.
- Definition Classes
- DatabaseOperations
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.