mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-29 12:02:25 +03:00
Merge branch 'master' of https://github.com/Pardus-Kurumsal/ahenk
This commit is contained in:
commit
e3c16ea289
3 changed files with 63 additions and 0 deletions
28
opt/ahenk/base/scheduler/APSchedulerImpl.py
Normal file
28
opt/ahenk/base/scheduler/APSchedulerImpl.py
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||||
|
|
||||||
|
from base.scheduler.BaseScheduler import BaseScheduler
|
||||||
|
|
||||||
|
class APSchedulerImpl(BaseScheduler):
|
||||||
|
|
||||||
|
def initialize(self):
|
||||||
|
# Not implemented yet
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job(self):
|
||||||
|
# Not implemented yet
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job_by_hour(self):
|
||||||
|
# Not implemented yet
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job_by_mount(self):
|
||||||
|
# Not implemented yet
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job_by_minute(self):
|
||||||
|
# Not implemented yet
|
||||||
|
pass
|
||||||
|
|
25
opt/ahenk/base/scheduler/BaseScheduler.py
Normal file
25
opt/ahenk/base/scheduler/BaseScheduler.py
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||||
|
|
||||||
|
class BaseScheduler(object):
|
||||||
|
|
||||||
|
def initialize(self):
|
||||||
|
# Implement this from your implementation class
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job(self):
|
||||||
|
# Implement this from your implementation class
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job_by_hour(self):
|
||||||
|
# Implement this from your implementation class
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job_by_mount(self):
|
||||||
|
# Implement this from your implementation class
|
||||||
|
pass
|
||||||
|
|
||||||
|
def add_job_by_minute(self):
|
||||||
|
# Implement this from your implementation class
|
||||||
|
pass
|
10
opt/ahenk/base/scheduler/SchedulerFactory.py
Normal file
10
opt/ahenk/base/scheduler/SchedulerFactory.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Author: İsmail BAŞARAN <ismail.basaran@tubitak.gov.tr> <basaran.ismaill@gmail.com>
|
||||||
|
|
||||||
|
from base.scheduler.APSchedulerImpl import APSchedulerImpl
|
||||||
|
|
||||||
|
class SchedulerFactory():
|
||||||
|
|
||||||
|
def get_intstance(self):
|
||||||
|
return APSchedulerImpl()
|
Loading…
Reference in a new issue