public class CommandFacadeEJB extends java.lang.Object implements ICommandBusiness
Constructor and Description |
---|
CommandFacadeEJB()
Instantiates a new command facade EJB.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<DeviceJPA> |
checkStatus()
Check status.
|
java.lang.Boolean |
deleteCommand(java.lang.Integer id)
Delete command.
|
java.util.Collection<CommandJPA> |
listCommands()
List commands.
|
protected void |
logInfo(java.lang.String type,
java.lang.String message) |
java.lang.Boolean |
requestBatteyLevel(java.lang.Integer deviceId)
Request battey level.
|
java.lang.Boolean |
requestGsmSignal(java.lang.Integer deviceId)
Request gsm signal.
|
java.lang.Boolean |
requestStatus(java.lang.Integer deviceId)
Request status.
|
java.lang.Boolean |
startSendPositions(java.lang.Integer deviceId)
Start send positions.
|
java.lang.Boolean |
stopSendPositions(java.lang.Integer deviceId)
Stop send positions.
|
public CommandFacadeEJB()
public java.lang.Boolean requestBatteyLevel(java.lang.Integer deviceId) throws java.lang.Exception
ICommandBusiness
requestBatteyLevel
in interface ICommandBusiness
deviceId
- the device idjava.lang.Exception
- the exceptionpublic java.lang.Boolean requestGsmSignal(java.lang.Integer deviceId) throws java.lang.Exception
ICommandBusiness
requestGsmSignal
in interface ICommandBusiness
deviceId
- the device idjava.lang.Exception
- the exceptionpublic java.util.Collection<DeviceJPA> checkStatus() throws java.lang.Exception
ICommandBusiness
checkStatus
in interface ICommandBusiness
java.lang.Exception
- the exceptionpublic java.lang.Boolean stopSendPositions(java.lang.Integer deviceId)
ICommandBusiness
stopSendPositions
in interface ICommandBusiness
deviceId
- the device idpublic java.lang.Boolean deleteCommand(java.lang.Integer id) throws java.lang.Exception
ICommandBusiness
deleteCommand
in interface ICommandBusiness
id
- the idjava.lang.Exception
- the exceptionpublic java.lang.Boolean startSendPositions(java.lang.Integer deviceId) throws java.lang.Exception
ICommandBusiness
startSendPositions
in interface ICommandBusiness
deviceId
- the device idjava.lang.Exception
- the exceptionpublic java.util.Collection<CommandJPA> listCommands() throws java.lang.Exception
ICommandBusiness
listCommands
in interface ICommandBusiness
java.lang.Exception
- the exceptionpublic java.lang.Boolean requestStatus(java.lang.Integer deviceId) throws java.lang.Exception
ICommandBusiness
requestStatus
in interface ICommandBusiness
deviceId
- the device idjava.lang.Exception
- the exceptionprotected void logInfo(java.lang.String type, java.lang.String message)