|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dbreplicator.replication.schedule
Class ScheduleHandler
java.lang.Objectorg.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- StringscheduleName0- StringremoteServerName- StringremotePortNo- StringrecurrenceType0- StringrepType- StringschTime- longcounter0- 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- StringsubName0- StringnewPubServerName- StringnewPubPortNo- String- Throws:
RepException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dbreplicator.replication.schedule.ScheduleHandler

