Commits

timemachine committed a3ac45b

Added oracle config examples.

Comments (0)

Files changed (5)

timemachine-hibernate/config/scheduler-oracle-create-schema.properties

+# Copyright 2012 Zemian Deng
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Setup multiple scheduler nodes
+timemachine.scheduler.schedulerName = TimeMachineScheduler
+timemachine.scheduler.nodeName = TimeMachineScheduler
+
+# Use MySQL for scheduler as data store
+timemachine.scheduler.dataStore.class = timemachine.scheduler.hibernate.HibernateDataStore
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.hbm2ddl.auto = create
+
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:XE
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.username = admin
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.password = admin123
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.pool_size = 5
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.dialect = org.hibernate.dialect.Oracle10gDialect
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.show_sql = false

timemachine-hibernate/config/scheduler-oracle-jobs.properties

+# Copyright 2012 Zemian Deng
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Use MySQL for scheduler as data store
+timemachine.scheduler.dataStore.class = timemachine.scheduler.hibernate.HibernateDataStore
+
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:XE
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.username = admin
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.password = admin123
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.pool_size = 5
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.dialect = org.hibernate.dialect.Oracle10gDialect
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.show_sql = false
+
+# Load some sample jobs
+timemachine.scheduler.userservice.jobLoader.class = timemachine.scheduler.userservice.JobLoaderService
+JobLoaderService.00myJob.timemachine.scheduler.jobtask.LoggerJobTask = RepeatSchedule{interval=3|intervalUnit=SECOND}
+JobLoaderService.01myJob.timemachine.scheduler.jobtask.LoggerJobTask = RepeatSchedule{interval=2|intervalUnit=SECOND|endCount=2}
+JobLoaderService.02myJob.timemachine.scheduler.jobtask.LoggerJobTask = RepeatSchedule{interval=1|intervalUnit=MINUTE|startTime=23:15:00}
+JobLoaderService.03myJob.timemachine.scheduler.jobtask.LoggerJobTask = JobProps{msg=hello|test=foo}; RepeatSchedule{interval=17|intervalUnit=SECOND|endTime=1/1/2099 00:00:00}
+JobLoaderService.04myJob.timemachine.scheduler.jobtask.LoggerJobTask = CronSchedule{expression=* * * * * ?}
+JobLoaderService.05myJob.timemachine.scheduler.jobtask.LoggerJobTask = CronSchedule{expression=0 * * * * ?}
+JobLoaderService.06myJob.timemachine.scheduler.jobtask.LoggerJobTask = CronSchedule{expression=0 0 8 ? * MON,FRI}
+JobLoaderService.07myJob.timemachine.scheduler.jobtask.LoggerJobTask = CronSchedule{expression=0,15,30,45 * * * * ? | endCount=5}
+JobLoaderService.08myJob.timemachine.scheduler.jobtask.SleepyJobTask = DateListSchedule{datetime.1=1/1/2012 00:00:00}
+JobLoaderService.09myJob.timemachine.scheduler.jobtask.LoggerJobTask = DateListSchedule{datetime.1=1/1/2012 00:00:00|datetime.2=2/1/2012 23:59:59}
+JobLoaderService.10myJob.timemachine.scheduler.jobtask.ScriptingJobTask = JobProps{scriptEgnineName=JavaScript|scriptText=1+1}; RepeatSchedule{endCount=1}
+JobLoaderService.11myJob.timemachine.scheduler.jobtask.OsCommandJobTask = JobProps{commandLine=echo "Hello World!"}; RepeatSchedule{endCount=1}
+JobLoaderService.12myJob.timemachine.scheduler.jobtask.LoggerJobTask = RepeatSchedule{interval=1|intervalUnit=SECOND}

timemachine-hibernate/config/scheduler-oracle-node1.properties

+# Copyright 2012 Zemian Deng
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Setup multiple scheduler nodes
+timemachine.scheduler.schedulerName = TimeMachineScheduler
+timemachine.scheduler.nodeName = Node1
+
+# Use MySQL for scheduler as data store
+timemachine.scheduler.dataStore.class = timemachine.scheduler.hibernate.HibernateDataStore
+
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:XE
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.username = admin
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.password = admin123
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.pool_size = 5
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.dialect = org.hibernate.dialect.Oracle10gDialect
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.show_sql = false

timemachine-hibernate/config/scheduler-oracle-node2.properties

+# Copyright 2012 Zemian Deng
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Setup multiple scheduler nodes
+timemachine.scheduler.schedulerName = TimeMachineScheduler
+timemachine.scheduler.nodeName = Node2
+
+# Use MySQL for scheduler as data store
+timemachine.scheduler.dataStore.class = timemachine.scheduler.hibernate.HibernateDataStore
+
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:XE
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.username = admin
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.password = admin123
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.pool_size = 5
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.dialect = org.hibernate.dialect.Oracle10gDialect
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.show_sql = false

timemachine-hibernate/config/scheduler-oracle-node3.properties

+# Copyright 2012 Zemian Deng
+# 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Setup multiple scheduler nodes
+timemachine.scheduler.schedulerName = TimeMachineScheduler
+timemachine.scheduler.nodeName = Node3
+
+# Use MySQL for scheduler as data store
+timemachine.scheduler.dataStore.class = timemachine.scheduler.hibernate.HibernateDataStore
+
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.driver_class = oracle.jdbc.driver.OracleDriver
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.url = jdbc:oracle:thin:@localhost:1521:XE
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.username = admin
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.password = admin123
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.connection.pool_size = 5
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.dialect = org.hibernate.dialect.Oracle10gDialect
+timemachine.scheduler.dataStore.hibernateDataStore.hibernate.show_sql = false