public class OSchedulerProxy extends OProxedResource<OSchedulerImpl> implements OScheduler
OScheduler.STATUS
database, delegate
Constructor and Description |
---|
OSchedulerProxy(OSchedulerImpl iDelegate,
ODatabaseDocumentInternal iDatabase) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the scheduler.
|
void |
create()
Creates the scheduler classes on database.
|
OScheduledEvent |
getEvent(String name)
Returns a scheduled event by name.
|
Map<String,OScheduledEvent> |
getEvents()
Returns all the scheduled events.
|
void |
load()
Loads the scheduled events from database in memory and schedule them.
|
void |
removeEvent(String eventName)
Removes a scheduled event.
|
void |
scheduleEvent(OScheduledEvent scheduler)
Creates a new scheduled event.
|
void |
updateEvent(OScheduledEvent event)
Updates a scheduled event.
|
public OSchedulerProxy(OSchedulerImpl iDelegate, ODatabaseDocumentInternal iDatabase)
public void scheduleEvent(OScheduledEvent scheduler)
OScheduler
scheduleEvent
in interface OScheduler
public void removeEvent(String eventName)
OScheduler
removeEvent
in interface OScheduler
eventName
- Event's namepublic void updateEvent(OScheduledEvent event)
OScheduler
updateEvent
in interface OScheduler
public Map<String,OScheduledEvent> getEvents()
OScheduler
getEvents
in interface OScheduler
public OScheduledEvent getEvent(String name)
OScheduler
getEvent
in interface OScheduler
name
- Event's namepublic void load()
OScheduler
load
in interface OScheduler
public void close()
OScheduler
close
in interface OScheduler
public void create()
OScheduler
create
in interface OScheduler
Copyright © 2009–2020 OrientDB. All rights reserved.