Interface OScheduler
- All Known Implementing Classes:
OSchedulerProxy
public interface OScheduler
Scheduler interface. <<<<<<< HEAD
- Since:
- Mar 28, 2013
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com) =======, Luca Garulli >>>>>>> 1b627a8... HA: fixed issues with distributed scheduler events, henryzhao81-at-gmail.com
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidcreate()Deprecated.Returns a scheduled event by name.Returns all the scheduled events.voidload()Deprecated.voidremoveEvent(String eventName) Removes a scheduled event.voidscheduleEvent(OScheduledEvent event) Creates a new scheduled event.voidupdateEvent(OScheduledEvent event) Updates a scheduled event.
-
Method Details
-
scheduleEvent
Creates a new scheduled event. -
removeEvent
Removes a scheduled event.- Parameters:
eventName- Event's name
-
updateEvent
Updates a scheduled event. -
getEvents
Map<String,OScheduledEvent> getEvents()Returns all the scheduled events.- Returns:
-
getEvent
Returns a scheduled event by name.- Parameters:
eventName- Event's name
-
load
Deprecated.Loads the scheduled events from database in memory and schedule them. -
close
Deprecated.Shuts down the scheduler. -
create
Deprecated.Creates the scheduler classes on database.
-