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
| 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 |
| 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 |
OBJECT_NAME
public static final java.lang.String OBJECT_NAME
JMSSchedulerService
public JMSSchedulerService()
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.