public interface ScheduledApplication
Each ScheduledApplication
instance has an identifier which is unique
within the scope of the application being scheduled.
ScheduledApplication
instances are registered as services. The
APPLICATION_PID
service property contains the PID of the application
being scheduled, the SCHEDULE_ID
service property contains the
schedule identifier.
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_PID
The property key for the identifier of the application being scheduled.
|
static String |
DAY_OF_MONTH
The name of the day of month attribute of a virtual timer event.
|
static String |
DAY_OF_WEEK
The name of the day of week attribute of a virtual timer event.
|
static String |
HOUR_OF_DAY
The name of the hour of day attribute of a virtual timer event.
|
static String |
MINUTE
The name of the minute attribute of a virtual timer event.
|
static String |
MONTH
The name of the month attribute of a virtual timer event.
|
static String |
SCHEDULE_ID
The property key for the schedule identifier.
|
static String |
TIMER_TOPIC
The topic name for the virtual timer topic.
|
static String |
TRIGGERING_EVENT
The key for the startup argument used to pass the event object that
triggered the schedule to launch the application instance.
|
static String |
YEAR
The name of the year attribute of a virtual timer event.
|
Modifier and Type | Method and Description |
---|---|
ApplicationDescriptor |
getApplicationDescriptor()
Retrieves the ApplicationDescriptor which represents the application and
necessary for launching.
|
Map |
getArguments()
Queries the startup arguments specified when the application was
scheduled.
|
String |
getEventFilter()
Queries the event filter for the triggering event.
|
String |
getScheduleId()
Returns the identifier of this schedule.
|
String |
getTopic()
Queries the topic of the triggering event.
|
boolean |
isRecurring()
Queries if the schedule is recurring.
|
void |
remove()
Cancels this schedule of the application.
|
static final String APPLICATION_PID
static final String SCHEDULE_ID
static final String TRIGGERING_EVENT
GuardedObject
protected by the
corresponding TopicPermission
.static final String TIMER_TOPIC
static final String YEAR
Calendar.YEAR
.static final String MONTH
Calendar.MONTH
.static final String DAY_OF_MONTH
Calendar.DAY_OF_MONTH
.static final String DAY_OF_WEEK
Calendar.DAY_OF_WEEK
.static final String HOUR_OF_DAY
Calendar.HOUR_OF_DAY
.static final String MINUTE
Calendar.MINUTE
.String getScheduleId()
String getTopic()
IllegalStateException
- if the scheduled application service is
unregisteredString getEventFilter()
IllegalStateException
- if the scheduled application service is
unregisteredboolean isRecurring()
IllegalStateException
- if the scheduled application service is
unregisteredApplicationDescriptor getApplicationDescriptor()
IllegalStateException
- if the scheduled application service is
unregisteredMap getArguments()
IllegalStateException
- if the scheduled application service is
unregisteredvoid remove()
SecurityException
- if the caller doesn't have "schedule"
ApplicationAdminPermission for the scheduled application.IllegalStateException
- if the scheduled application service is
unregisteredCopyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0