def METHOD_NAME(self, node):
    """
    :param node: Spark node.
    :return: Class name depending on node type (master or slave).
    """
    if node == self.nodes[0]:
        return "org.apache.spark.deploy.master.Master"
    return "org.apache.spark.deploy.worker.Worker"