com.sun.ejb.containers
Interface TimerLocal
- All Known Implementing Classes:
- TimerBean
public interface TimerLocal
Local view of the persistent representation of an EJB timer.
- Author:
- Kenneth Saks, Marina Vatkina
|
Method Summary |
void |
cancel(TimerPrimaryKey timerId)
Cancel timer. |
void |
cancelTimers(java.util.Collection<TimerState> timers)
|
boolean |
checkStatus(java.lang.String resourceJndiName,
boolean checkDatabase)
|
int |
countActiveTimersByContainer(long containerId)
|
int |
countActiveTimersOwnedBy(java.lang.String owner)
|
int |
countActiveTimersOwnedByThisServer()
|
int |
countActiveTimersOwnedByThisServerByContainer(long containerId)
|
int |
countCancelledTimersByContainer(long containerId)
|
int |
countCancelledTimersOwnedBy(java.lang.String owner)
|
int |
countCancelledTimersOwnedByThisServer()
|
int |
countCancelledTimersOwnedByThisServerByContainer(long containerId)
|
int |
countTimersByApplication(long applicationId)
|
int |
countTimersByContainer(long containerId)
|
int |
countTimersOwnedBy(java.lang.String owner)
|
java.lang.String[] |
countTimersOwnedByServerIds(java.lang.String[] serverIds)
|
int |
countTimersOwnedByThisServer()
|
int |
countTimersOwnedByThisServerByContainer(long containerId)
|
TimerState |
createTimer(java.lang.String timerId,
long containerId,
long applicationId,
java.lang.String ownerId,
java.lang.Object timedObjectPrimaryKey,
java.util.Date initialExpiration,
long intervalDuration,
TimerSchedule schedule,
TimerConfig timerConfig)
|
int |
deleteTimersByApplication(long applicationId)
|
int |
deleteTimersByContainer(long containerId)
|
java.util.Set |
findActiveNonPersistentTimersOwnedByThisServer()
|
java.util.Set |
findActiveTimerIdsByContainer(long containerId)
|
java.util.Set |
findActiveTimerIdsOwnedBy(java.lang.String owner)
|
java.util.Set |
findActiveTimerIdsOwnedByThisServer()
|
java.util.Set |
findActiveTimerIdsOwnedByThisServerByContainer(long containerId)
|
java.util.Set |
findActiveTimersByContainer(long containerId)
|
java.util.Set |
findActiveTimersOwnedBy(java.lang.String owner)
|
java.util.Set |
findActiveTimersOwnedByThisServer()
|
java.util.Set |
findActiveTimersOwnedByThisServerByContainer(long containerId)
|
java.util.Set |
findCancelledTimerIdsByContainer(long containerId)
|
java.util.Set |
findCancelledTimerIdsOwnedBy(java.lang.String owner)
|
java.util.Set |
findCancelledTimerIdsOwnedByThisServer()
|
java.util.Set |
findCancelledTimerIdsOwnedByThisServerByContainer(long containerId)
|
java.util.Set |
findCancelledTimersByContainer(long containerId)
|
java.util.Set |
findCancelledTimersOwnedBy(java.lang.String owner)
|
java.util.Set |
findCancelledTimersOwnedByThisServer()
|
java.util.Set |
findCancelledTimersOwnedByThisServerByContainer(long containerId)
|
TimerState |
findTimer(TimerPrimaryKey timerId)
|
java.util.Set |
findTimerIdsByContainer(long containerId)
|
java.util.Set |
findTimerIdsOwnedBy(java.lang.String owner)
|
java.util.Set |
findTimerIdsOwnedByThisServer()
|
java.util.Set |
findTimerIdsOwnedByThisServerByContainer(long containerId)
|
java.util.Set |
findTimersByContainer(long containerId)
|
java.util.Set |
findTimersOwnedBy(java.lang.String owner)
|
java.util.Set |
findTimersOwnedByThisServer()
|
java.util.Set |
findTimersOwnedByThisServerByContainer(long containerId)
|
int |
migrateTimers(java.lang.String fromOwnerId,
java.lang.String toOwnerId)
|
void |
remove(java.util.Set<TimerPrimaryKey> timerIds)
|
void |
remove(TimerPrimaryKey timerId)
|
cancel
void cancel(TimerPrimaryKey timerId)
throws java.lang.Exception
- Cancel timer.
- Throws:
java.lang.Exception
cancelTimers
void cancelTimers(java.util.Collection<TimerState> timers)
createTimer
TimerState createTimer(java.lang.String timerId,
long containerId,
long applicationId,
java.lang.String ownerId,
java.lang.Object timedObjectPrimaryKey,
java.util.Date initialExpiration,
long intervalDuration,
TimerSchedule schedule,
TimerConfig timerConfig)
throws CreateException
- Throws:
CreateException
findTimer
TimerState findTimer(TimerPrimaryKey timerId)
remove
void remove(TimerPrimaryKey timerId)
remove
void remove(java.util.Set<TimerPrimaryKey> timerIds)
findTimerIdsByContainer
java.util.Set findTimerIdsByContainer(long containerId)
findActiveTimerIdsByContainer
java.util.Set findActiveTimerIdsByContainer(long containerId)
findCancelledTimerIdsByContainer
java.util.Set findCancelledTimerIdsByContainer(long containerId)
findTimerIdsOwnedByThisServerByContainer
java.util.Set findTimerIdsOwnedByThisServerByContainer(long containerId)
findActiveTimerIdsOwnedByThisServerByContainer
java.util.Set findActiveTimerIdsOwnedByThisServerByContainer(long containerId)
findCancelledTimerIdsOwnedByThisServerByContainer
java.util.Set findCancelledTimerIdsOwnedByThisServerByContainer(long containerId)
findTimerIdsOwnedByThisServer
java.util.Set findTimerIdsOwnedByThisServer()
findActiveTimerIdsOwnedByThisServer
java.util.Set findActiveTimerIdsOwnedByThisServer()
findCancelledTimerIdsOwnedByThisServer
java.util.Set findCancelledTimerIdsOwnedByThisServer()
findTimerIdsOwnedBy
java.util.Set findTimerIdsOwnedBy(java.lang.String owner)
findActiveTimerIdsOwnedBy
java.util.Set findActiveTimerIdsOwnedBy(java.lang.String owner)
findCancelledTimerIdsOwnedBy
java.util.Set findCancelledTimerIdsOwnedBy(java.lang.String owner)
findTimersByContainer
java.util.Set findTimersByContainer(long containerId)
findActiveTimersByContainer
java.util.Set findActiveTimersByContainer(long containerId)
findCancelledTimersByContainer
java.util.Set findCancelledTimersByContainer(long containerId)
findTimersOwnedByThisServerByContainer
java.util.Set findTimersOwnedByThisServerByContainer(long containerId)
findActiveTimersOwnedByThisServerByContainer
java.util.Set findActiveTimersOwnedByThisServerByContainer(long containerId)
findCancelledTimersOwnedByThisServerByContainer
java.util.Set findCancelledTimersOwnedByThisServerByContainer(long containerId)
findTimersOwnedByThisServer
java.util.Set findTimersOwnedByThisServer()
findActiveTimersOwnedByThisServer
java.util.Set findActiveTimersOwnedByThisServer()
findCancelledTimersOwnedByThisServer
java.util.Set findCancelledTimersOwnedByThisServer()
findTimersOwnedBy
java.util.Set findTimersOwnedBy(java.lang.String owner)
findActiveTimersOwnedBy
java.util.Set findActiveTimersOwnedBy(java.lang.String owner)
findCancelledTimersOwnedBy
java.util.Set findCancelledTimersOwnedBy(java.lang.String owner)
countTimersByApplication
int countTimersByApplication(long applicationId)
countTimersByContainer
int countTimersByContainer(long containerId)
countActiveTimersByContainer
int countActiveTimersByContainer(long containerId)
countCancelledTimersByContainer
int countCancelledTimersByContainer(long containerId)
countTimersOwnedByThisServerByContainer
int countTimersOwnedByThisServerByContainer(long containerId)
countActiveTimersOwnedByThisServerByContainer
int countActiveTimersOwnedByThisServerByContainer(long containerId)
countCancelledTimersOwnedByThisServerByContainer
int countCancelledTimersOwnedByThisServerByContainer(long containerId)
countTimersOwnedByThisServer
int countTimersOwnedByThisServer()
countActiveTimersOwnedByThisServer
int countActiveTimersOwnedByThisServer()
countCancelledTimersOwnedByThisServer
int countCancelledTimersOwnedByThisServer()
countTimersOwnedBy
int countTimersOwnedBy(java.lang.String owner)
countActiveTimersOwnedBy
int countActiveTimersOwnedBy(java.lang.String owner)
countCancelledTimersOwnedBy
int countCancelledTimersOwnedBy(java.lang.String owner)
countTimersOwnedByServerIds
java.lang.String[] countTimersOwnedByServerIds(java.lang.String[] serverIds)
checkStatus
boolean checkStatus(java.lang.String resourceJndiName,
boolean checkDatabase)
migrateTimers
int migrateTimers(java.lang.String fromOwnerId,
java.lang.String toOwnerId)
deleteTimersByContainer
int deleteTimersByContainer(long containerId)
deleteTimersByApplication
int deleteTimersByApplication(long applicationId)
findActiveNonPersistentTimersOwnedByThisServer
java.util.Set findActiveNonPersistentTimersOwnedByThisServer()
Copyright © 2012 GlassFish Community. All Rights Reserved.