jrun.jms.core.scheduler
Class JMSSchedulerService

jrunx.kernel.ServiceAdapter
  |
  +--jrun.jms.core.util.JMSServiceAdapter
        |
        +--jrun.jms.core.scheduler.JMSSchedulerService
All Implemented Interfaces:
JMSScheduler, JMSSchedulerServiceMBean, JMSService, JMSServiceAdapterMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean

public class JMSSchedulerService
extends JMSServiceAdapter
implements JMSScheduler

See Also:
Serialized Form

Field Summary
static java.lang.String OBJECT_NAME
           
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrun.jms.core.scheduler.JMSScheduler
ALL_TYPES, CHECK_FREE_MEMORY_EVENT, CONNECTION_GARBAGE_COLLECTION, EVENT_TYPE_COUNT, GARBAGE_COLLECTION, MESSAGE_DELIVERY, PERSISTENT_EVENT, SCHEDULABLE_EVENT, SCHEDULABLE_LEASE_EXPIRED, SCHEDULABLE_MESSAGE_LEASE_EXPIRED
 
Fields inherited from interface jrun.jms.core.scheduler.JMSSchedulerServiceMBean
DEFAULT_DURATION_TIME, DEFAULT_SLEEP_TIME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
JMSSchedulerService()
           
 
Method Summary
 SchedulableEvent createSchedulableEvent(java.lang.Object object, int type, long duration, SchedulableEventListener listener)
           
 int getSchedulableEventCount(int type)
           
 void init()
          Not every service needs to init, implement it out of convenience.
static JMSSchedulerService instance()
           
 boolean isValidType(int type)
           
 void removeSchedulableEvent(SchedulableEvent event)
           
 void rescheduleSchedulable(SchedulableEvent event, long duration)
           
 void updateCount(SchedulableEvent event)
           
 
Methods inherited from class jrun.jms.core.util.JMSServiceAdapter
getMetaData, restart, resume, setMetaData, suspend
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, start, stop, updateStatus
 

Field Detail

OBJECT_NAME

public static final java.lang.String OBJECT_NAME
Constructor Detail

JMSSchedulerService

public JMSSchedulerService()
Method Detail

instance

public static JMSSchedulerService instance()

createSchedulableEvent

public SchedulableEvent createSchedulableEvent(java.lang.Object object,
                                               int type,
                                               long duration,
                                               SchedulableEventListener listener)
                                        throws IllegalEventDefinedException
Specified by:
createSchedulableEvent in interface JMSScheduler

removeSchedulableEvent

public void removeSchedulableEvent(SchedulableEvent event)
Specified by:
removeSchedulableEvent in interface JMSScheduler

rescheduleSchedulable

public void rescheduleSchedulable(SchedulableEvent event,
                                  long duration)
Specified by:
rescheduleSchedulable in interface JMSScheduler

getSchedulableEventCount

public int getSchedulableEventCount(int type)
Specified by:
getSchedulableEventCount in interface JMSScheduler

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Specified by:
init in interface Service
Overrides:
init in class ServiceAdapter

updateCount

public void updateCount(SchedulableEvent event)
Specified by:
updateCount in interface JMSScheduler

isValidType

public boolean isValidType(int type)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.