public class TimerBean extends Object implements TimerLocal
| Modifier and Type | Class and Description |
|---|---|
static class |
TimerBean.Blob
To be used to read in TimerBean.Blob and replace with TimerState.Blob
on v2.x upgrade
|
| Constructor and Description |
|---|
TimerBean() |
public TimerState findTimer(com.sun.ejb.containers.TimerPrimaryKey timerId)
findTimer in interface TimerLocalpublic Set findTimerIdsByContainer(long containerId)
findTimerIdsByContainer in interface TimerLocalpublic Set findTimerIdsByContainerAndState(long containerId, int state)
public Set findTimerIdsByContainersAndState(Collection<Long> containerIds, int state)
public Set findTimerIdsByContainerAndOwner(long containerId, String ownerId)
public Set findTimerIdsByContainerAndOwnerAndState(long containerId, String ownerId, int state)
public Set findTimersByContainer(long containerId)
findTimersByContainer in interface TimerLocalpublic Set findTimersByContainerAndState(long containerId, int state)
public Set findTimersByContainerAndOwner(long containerId, String ownerId)
public Set findTimersByContainerAndOwnerAndState(long containerId, String ownerId, int state)
public int countTimersByApplication(long applicationId)
countTimersByApplication in interface TimerLocalpublic int countTimersByContainer(long containerId)
countTimersByContainer in interface TimerLocalpublic int countTimersByContainerAndState(long containerId,
int state)
public int countTimersByContainerAndOwner(long containerId,
String ownerId)
public int countTimersByContainerAndOwnerAndState(long containerId,
String ownerId,
int state)
public int countTimersByOwner(String ownerId)
public int countTimersByOwnerAndState(String ownerId, int state)
public TimerState createTimer(String timerId, long containerId, long applicationId, String ownerId, Object timedObjectPrimaryKey, Date initialExpiration, long intervalDuration, com.sun.ejb.containers.EJBTimerSchedule schedule, javax.ejb.TimerConfig timerConfig) throws javax.ejb.CreateException
createTimer in interface TimerLocaljavax.ejb.CreateExceptionpublic void remove(com.sun.ejb.containers.TimerPrimaryKey timerId)
remove in interface TimerLocalpublic void remove(Set<com.sun.ejb.containers.TimerPrimaryKey> timerIds)
remove in interface TimerLocalpublic void cancel(com.sun.ejb.containers.TimerPrimaryKey timerId)
throws javax.ejb.FinderException,
Exception
TimerLocalcancel in interface TimerLocaljavax.ejb.FinderExceptionExceptionpublic void cancelTimers(Collection<TimerState> timers)
cancelTimers in interface TimerLocalpublic Set findActiveTimerIdsByContainer(long containerId)
findActiveTimerIdsByContainer in interface TimerLocalpublic Set findActiveTimerIdsByContainers(Collection<Long> containerIds)
findActiveTimerIdsByContainers in interface TimerLocalpublic Set findCancelledTimerIdsByContainer(long containerId)
findCancelledTimerIdsByContainer in interface TimerLocalpublic Set findTimerIdsOwnedByThisServerByContainer(long containerId)
findTimerIdsOwnedByThisServerByContainer in interface TimerLocalpublic Set findActiveTimerIdsOwnedByThisServerByContainer(long containerId)
findActiveTimerIdsOwnedByThisServerByContainer in interface TimerLocalpublic Set findCancelledTimerIdsOwnedByThisServerByContainer(long containerId)
findCancelledTimerIdsOwnedByThisServerByContainer in interface TimerLocalpublic Set findTimerIdsOwnedByThisServer()
findTimerIdsOwnedByThisServer in interface TimerLocalpublic Set findActiveTimerIdsOwnedByThisServer()
findActiveTimerIdsOwnedByThisServer in interface TimerLocalpublic Set findCancelledTimerIdsOwnedByThisServer()
findCancelledTimerIdsOwnedByThisServer in interface TimerLocalpublic Set findTimerIdsOwnedBy(String ownerId)
findTimerIdsOwnedBy in interface TimerLocalpublic Set findActiveTimerIdsOwnedBy(String ownerId)
findActiveTimerIdsOwnedBy in interface TimerLocalpublic Set findCancelledTimerIdsOwnedBy(String ownerId)
findCancelledTimerIdsOwnedBy in interface TimerLocalpublic Set findActiveTimersByContainer(long containerId)
findActiveTimersByContainer in interface TimerLocalpublic Set findCancelledTimersByContainer(long containerId)
findCancelledTimersByContainer in interface TimerLocalpublic Set findTimersOwnedByThisServerByContainer(long containerId)
findTimersOwnedByThisServerByContainer in interface TimerLocalpublic Set findActiveTimersOwnedByThisServerByContainer(long containerId)
findActiveTimersOwnedByThisServerByContainer in interface TimerLocalpublic Set findCancelledTimersOwnedByThisServerByContainer(long containerId)
findCancelledTimersOwnedByThisServerByContainer in interface TimerLocalpublic Set findTimersOwnedByThisServer()
findTimersOwnedByThisServer in interface TimerLocalpublic Set findActiveTimersOwnedByThisServer()
findActiveTimersOwnedByThisServer in interface TimerLocalpublic Set findCancelledTimersOwnedByThisServer()
findCancelledTimersOwnedByThisServer in interface TimerLocalpublic Set findTimersOwnedBy(String ownerId)
findTimersOwnedBy in interface TimerLocalpublic Set findActiveTimersOwnedBy(String ownerId)
findActiveTimersOwnedBy in interface TimerLocalpublic Set findCancelledTimersOwnedBy(String ownerId)
findCancelledTimersOwnedBy in interface TimerLocalpublic int countActiveTimersByContainer(long containerId)
countActiveTimersByContainer in interface TimerLocalpublic int countCancelledTimersByContainer(long containerId)
countCancelledTimersByContainer in interface TimerLocalpublic int countTimersOwnedByThisServerByContainer(long containerId)
countTimersOwnedByThisServerByContainer in interface TimerLocalpublic int countActiveTimersOwnedByThisServerByContainer(long containerId)
countActiveTimersOwnedByThisServerByContainer in interface TimerLocalpublic int countCancelledTimersOwnedByThisServerByContainer(long containerId)
countCancelledTimersOwnedByThisServerByContainer in interface TimerLocalpublic int countTimersOwnedByThisServer()
countTimersOwnedByThisServer in interface TimerLocalpublic String[] countTimersOwnedByServerIds(String[] serverIds)
countTimersOwnedByServerIds in interface TimerLocalpublic int countActiveTimersOwnedByThisServer()
countActiveTimersOwnedByThisServer in interface TimerLocalpublic int countCancelledTimersOwnedByThisServer()
countCancelledTimersOwnedByThisServer in interface TimerLocalpublic int countTimersOwnedBy(String ownerId)
countTimersOwnedBy in interface TimerLocalpublic int countActiveTimersOwnedBy(String ownerId)
countActiveTimersOwnedBy in interface TimerLocalpublic int countCancelledTimersOwnedBy(String ownerId)
countCancelledTimersOwnedBy in interface TimerLocalpublic boolean checkStatus(String resourceJndiName, boolean checkDatabase)
checkStatus in interface TimerLocalpublic int migrateTimers(String fromOwnerId, String toOwnerId)
migrateTimers in interface TimerLocalpublic int deleteTimersByContainer(long containerId)
deleteTimersByContainer in interface TimerLocalpublic int deleteTimersByApplication(long applicationId)
deleteTimersByApplication in interface TimerLocalCopyright © 2013. All Rights Reserved.