public class DeviceService extends Object implements DeviceServiceInterface
Modifier and Type | Field and Description |
---|---|
protected Device |
device |
protected ExecutorService |
executor |
protected ScheduledExecutorService |
scheduledExecutor |
Constructor and Description |
---|
DeviceService() |
Modifier and Type | Method and Description |
---|---|
protected ExecutorService |
executerService() |
Device |
getDevice() |
protected void |
init(Device device) |
boolean |
isRunning() |
protected ScheduledExecutorService |
scheduledExecuterService() |
void |
setDevice(Device device) |
void |
start() |
void |
stop() |
protected ExecutorService executor
protected ScheduledExecutorService scheduledExecutor
public DeviceService()
public Device getDevice()
getDevice
in interface DeviceServiceInterface
public boolean isRunning()
isRunning
in interface DeviceServiceInterface
public void start() throws Exception
start
in interface DeviceServiceInterface
Exception
public void stop()
stop
in interface DeviceServiceInterface
protected ExecutorService executerService()
protected ScheduledExecutorService scheduledExecuterService()
Copyright © 2017 dcm4che.org. All rights reserved.