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(Collection<TimerState> timers)
           
 boolean checkStatus(String resourceJndiName, boolean checkDatabase)
           
 int countActiveTimersByContainer(long containerId)
           
 int countActiveTimersOwnedBy(String owner)
           
 int countActiveTimersOwnedByThisServer()
           
 int countActiveTimersOwnedByThisServerByContainer(long containerId)
           
 int countCancelledTimersByContainer(long containerId)
           
 int countCancelledTimersOwnedBy(String owner)
           
 int countCancelledTimersOwnedByThisServer()
           
 int countCancelledTimersOwnedByThisServerByContainer(long containerId)
           
 int countTimersByApplication(long applicationId)
           
 int countTimersByContainer(long containerId)
           
 int countTimersOwnedBy(String owner)
           
 String[] countTimersOwnedByServerIds(String[] serverIds)
           
 int countTimersOwnedByThisServer()
           
 int countTimersOwnedByThisServerByContainer(long containerId)
           
 TimerState createTimer(String timerId, long containerId, long applicationId, String ownerId, Object timedObjectPrimaryKey, Date initialExpiration, long intervalDuration, TimerSchedule schedule, TimerConfig timerConfig)
           
 int deleteTimersByApplication(long applicationId)
           
 int deleteTimersByContainer(long containerId)
           
 Set findActiveNonPersistentTimersOwnedByThisServer()
           
 Set findActiveTimerIdsByContainer(long containerId)
           
 Set findActiveTimerIdsOwnedBy(String owner)
           
 Set findActiveTimerIdsOwnedByThisServer()
           
 Set findActiveTimerIdsOwnedByThisServerByContainer(long containerId)
           
 Set findActiveTimersByContainer(long containerId)
           
 Set findActiveTimersOwnedBy(String owner)
           
 Set findActiveTimersOwnedByThisServer()
           
 Set findActiveTimersOwnedByThisServerByContainer(long containerId)
           
 Set findCancelledTimerIdsByContainer(long containerId)
           
 Set findCancelledTimerIdsOwnedBy(String owner)
           
 Set findCancelledTimerIdsOwnedByThisServer()
           
 Set findCancelledTimerIdsOwnedByThisServerByContainer(long containerId)
           
 Set findCancelledTimersByContainer(long containerId)
           
 Set findCancelledTimersOwnedBy(String owner)
           
 Set findCancelledTimersOwnedByThisServer()
           
 Set findCancelledTimersOwnedByThisServerByContainer(long containerId)
           
 TimerState findTimer(TimerPrimaryKey timerId)
           
 Set findTimerIdsByContainer(long containerId)
           
 Set findTimerIdsOwnedBy(String owner)
           
 Set findTimerIdsOwnedByThisServer()
           
 Set findTimerIdsOwnedByThisServerByContainer(long containerId)
           
 Set findTimersByContainer(long containerId)
           
 Set findTimersOwnedBy(String owner)
           
 Set findTimersOwnedByThisServer()
           
 Set findTimersOwnedByThisServerByContainer(long containerId)
           
 int migrateTimers(String fromOwnerId, String toOwnerId)
           
 void remove(Set<TimerPrimaryKey> timerIds)
           
 void remove(TimerPrimaryKey timerId)
           
 

Method Detail

cancel

void cancel(TimerPrimaryKey timerId)
            throws Exception
Cancel timer.

Throws:
Exception

cancelTimers

void cancelTimers(Collection<TimerState> timers)

createTimer

TimerState createTimer(String timerId,
                       long containerId,
                       long applicationId,
                       String ownerId,
                       Object timedObjectPrimaryKey,
                       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(Set<TimerPrimaryKey> timerIds)

findTimerIdsByContainer

Set findTimerIdsByContainer(long containerId)

findActiveTimerIdsByContainer

Set findActiveTimerIdsByContainer(long containerId)

findCancelledTimerIdsByContainer

Set findCancelledTimerIdsByContainer(long containerId)

findTimerIdsOwnedByThisServerByContainer

Set findTimerIdsOwnedByThisServerByContainer(long containerId)

findActiveTimerIdsOwnedByThisServerByContainer

Set findActiveTimerIdsOwnedByThisServerByContainer(long containerId)

findCancelledTimerIdsOwnedByThisServerByContainer

Set findCancelledTimerIdsOwnedByThisServerByContainer(long containerId)

findTimerIdsOwnedByThisServer

Set findTimerIdsOwnedByThisServer()

findActiveTimerIdsOwnedByThisServer

Set findActiveTimerIdsOwnedByThisServer()

findCancelledTimerIdsOwnedByThisServer

Set findCancelledTimerIdsOwnedByThisServer()

findTimerIdsOwnedBy

Set findTimerIdsOwnedBy(String owner)

findActiveTimerIdsOwnedBy

Set findActiveTimerIdsOwnedBy(String owner)

findCancelledTimerIdsOwnedBy

Set findCancelledTimerIdsOwnedBy(String owner)

findTimersByContainer

Set findTimersByContainer(long containerId)

findActiveTimersByContainer

Set findActiveTimersByContainer(long containerId)

findCancelledTimersByContainer

Set findCancelledTimersByContainer(long containerId)

findTimersOwnedByThisServerByContainer

Set findTimersOwnedByThisServerByContainer(long containerId)

findActiveTimersOwnedByThisServerByContainer

Set findActiveTimersOwnedByThisServerByContainer(long containerId)

findCancelledTimersOwnedByThisServerByContainer

Set findCancelledTimersOwnedByThisServerByContainer(long containerId)

findTimersOwnedByThisServer

Set findTimersOwnedByThisServer()

findActiveTimersOwnedByThisServer

Set findActiveTimersOwnedByThisServer()

findCancelledTimersOwnedByThisServer

Set findCancelledTimersOwnedByThisServer()

findTimersOwnedBy

Set findTimersOwnedBy(String owner)

findActiveTimersOwnedBy

Set findActiveTimersOwnedBy(String owner)

findCancelledTimersOwnedBy

Set findCancelledTimersOwnedBy(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(String owner)

countActiveTimersOwnedBy

int countActiveTimersOwnedBy(String owner)

countCancelledTimersOwnedBy

int countCancelledTimersOwnedBy(String owner)

countTimersOwnedByServerIds

String[] countTimersOwnedByServerIds(String[] serverIds)

checkStatus

boolean checkStatus(String resourceJndiName,
                    boolean checkDatabase)

migrateTimers

int migrateTimers(String fromOwnerId,
                  String toOwnerId)

deleteTimersByContainer

int deleteTimersByContainer(long containerId)

deleteTimersByApplication

int deleteTimersByApplication(long applicationId)

findActiveNonPersistentTimersOwnedByThisServer

Set findActiveNonPersistentTimersOwnedByThisServer()


Copyright © 2012 GlassFish Community. All Rights Reserved.