JavaDoc


ScheduleHandler

org.dbreplicator.replication.schedule
Class ScheduleHandler

java.lang.Object
  extended by org.dbreplicator.replication.schedule.ScheduleHandler

public class ScheduleHandler
extends java.lang.Object

Handles scheduling for DBReplicator

This class Starts the thread for Scheduling.Whenever the replication Server starts it starts scheduling in seperate thread.This classs is used for:start schedule,edit schedule and remove schedule.

Copyright:

Company:


Constructor Summary
ScheduleHandler(_ReplicationServer repServer0, AbstractDataBaseHandler dbHandler0)
           
 
Method Summary
 void dropSchedule(java.lang.String subName0)
          This method drop the schedule by deleting the schedule information from schedule table and stopping the Schedule thread
 void editSchedule(java.lang.String scheduleName0, java.lang.String subName0, java.lang.String newPubServerName, java.lang.String newPubPortNo)
          Whenever user edits the schedule information,this methods first stops the running thread then update the schedule information in Rep_ScheduleTable then start the schedule again by giving call to startSchedule() method.
 void startSchedule(java.lang.String subName0, java.lang.String scheduleName0, java.lang.String scheduleType0, java.lang.String remoteServerName, java.lang.String remotePortNo, java.lang.String recurrenceType0, java.lang.String repType, long schTime, int counter0)
          startSchedule is called after saving Schedule information in Rep_ScheduleTable and when user edits a schedule
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleHandler

public ScheduleHandler(_ReplicationServer repServer0,
                       AbstractDataBaseHandler dbHandler0)
                throws RepException
Throws:
RepException
Method Detail

startSchedule

public void startSchedule(java.lang.String subName0,
                          java.lang.String scheduleName0,
                          java.lang.String scheduleType0,
                          java.lang.String remoteServerName,
                          java.lang.String remotePortNo,
                          java.lang.String recurrenceType0,
                          java.lang.String repType,
                          long schTime,
                          int counter0)
                   throws RepException
startSchedule is called after saving Schedule information in Rep_ScheduleTable and when user edits a schedule

Parameters:
subName0 - String
scheduleName0 - String
remoteServerName - String
remotePortNo - String
recurrenceType0 - String
repType - String
schTime - long
counter0 - int
Throws:
RepException

dropSchedule

public void dropSchedule(java.lang.String subName0)
                  throws RepException
This method drop the schedule by deleting the schedule information from schedule table and stopping the Schedule thread

Parameters:
subName0 - String
Throws:
RepException

editSchedule

public void editSchedule(java.lang.String scheduleName0,
                         java.lang.String subName0,
                         java.lang.String newPubServerName,
                         java.lang.String newPubPortNo)
                  throws RepException
Whenever user edits the schedule information,this methods first stops the running thread then update the schedule information in Rep_ScheduleTable then start the schedule again by giving call to startSchedule() method. (only publisher server name and publisher port no. is allowed to be edited)

Parameters:
scheduleName0 - String
subName0 - String
newPubServerName - String
newPubPortNo - String
Throws:
RepException



Powered by Drupal - Theme by Danger4k