Created
March 2, 2014 14:32
-
-
Save davetron5000/9307421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HooksRegistry | |
def hooks(name) | |
end | |
def clear_hooks(name) | |
end | |
def register_hook(name, &block) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JobFactory | |
def initialize() | |
end | |
def next_job(queues) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Stat | |
def initialize(redis) | |
@redis = redis | |
end | |
def incr | |
end | |
def decr | |
end | |
def get | |
end | |
def clear | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Worker | |
def initialize(job_factory,hooks_registry) | |
@job_factory = job_factory | |
@hooks_registry = hooks_registry | |
end | |
def work | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WorkerStore | |
def initialize(redis) | |
@redis = redis | |
end | |
def all | |
end | |
def working | |
end | |
def find | |
end | |
def exists? | |
end | |
def register(worker) | |
end | |
def unregister(worker) | |
end | |
def working_on(worker) | |
end | |
def done_working(worker) | |
end | |
def start_time(worker) | |
end | |
def started!(worker) | |
end | |
def job(worker) | |
end | |
def state(worker) | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment