|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.hw.pollers.PollingService
public class PollingService
Manages the polling of sensor hardware.
Id: $Id: PollingService.java,v 1.18 2005/11/09 22:50:26 dhirwinjr Exp $
| Nested Class Summary | |
|---|---|
static class |
PollingService.PollingTypes
Define the different polling types. |
| Field Summary | |
|---|---|
static java.lang.String |
HARDWARE_POLLING
|
static java.lang.String |
POLLING_TYPE
|
| Method Summary | |
|---|---|
java.util.ArrayList<java.lang.String> |
getPollingList(PollingService.PollingTypes pollingType)
|
PollingService.PollingTypes |
getPollingType(java.lang.String pollingTypeDesc)
Get the polling type given the description. |
java.util.List<PollingService.PollingTypes> |
getPollingTypes()
Return a list of polling types. |
Scheduler |
getSchedulerReference()
Get a reference to the scheduler. |
void |
hardwareRegistered(HardwareRegistryEvent event)
Receives hardware registry events. |
void |
hardwareUnregistered(HardwareRegistryEvent event)
Receives a hardware unregistered event. |
void |
hardwareUpdate(HardwareRegistryEvent event)
Receives a hardware update event. |
void |
initializeService()
Initialize the polling service. |
static PollingService |
instance()
Return an instance of the polling manager. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Received a property change event. |
void |
startService()
Start the service. |
void |
stopService()
Stop the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String POLLING_TYPE
public static final java.lang.String HARDWARE_POLLING
| Method Detail |
|---|
public static PollingService instance()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerPropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)public void initializeService()
initializeService in interface Servicepublic void startService()
Service
startService in interface ServiceService.startService()public void stopService()
Service
stopService in interface ServiceService.stopService()public Scheduler getSchedulerReference()
Service
getSchedulerReference in interface ServiceService.getSchedulerReference()public java.util.List<PollingService.PollingTypes> getPollingTypes()
public PollingService.PollingTypes getPollingType(java.lang.String pollingTypeDesc)
pollingTypeDesc - A description of the polling type.
public java.util.ArrayList<java.lang.String> getPollingList(PollingService.PollingTypes pollingType)
public void hardwareRegistered(HardwareRegistryEvent event)
hardwareRegistered in interface HardwareRegistryListenerevent - Hardware eventjhomenet.hw.management.HardwareRegistryListener#hardwareRegistered(NewHardwareEvent)public void hardwareUpdate(HardwareRegistryEvent event)
hardwareUpdate in interface HardwareRegistryListenerevent - Hardware eventHardwareRegistryListener.hardwareUpdate(jhomenet.hw.management.HardwareRegistryEvent)public void hardwareUnregistered(HardwareRegistryEvent event)
hardwareUnregistered in interface HardwareRegistryListenerevent - Hardware eventHardwareRegistryListener.hardwareUnregistered(HardwareRegistryEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||