public class DeviceManager extends DeviceResourceManager
Constructor and Description |
---|
DeviceManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkForSoftwareUpdate(java.lang.String info)
Check if there are any software updates available.
|
DatabaseInfo |
getDatabaseInfo(Device device)
Retrieve Database Information from the repository.
|
static java.lang.String |
getDeviceAgent()
Get Device Management Client Agent's name.
|
DeviceInfo |
getDeviceInfo(Device device)
Retrieve device information from the repository.
|
static DeviceManager |
getInstance()
Get the singleton instance of the Device Manager class.
|
INI |
getODBCInfo(Device device)
Retrieve ODBC parameters of the device from the repository.
|
INI |
getOLiteInfo(Device device)
Retrieve Oracle Lite parameters of the Device from the repository.
|
static java.lang.String |
getRepositoryPath(java.lang.String oracleHome)
Form complete path to Mobile Server Repository directory
given ORACLE HOME.
|
oracle.lite.dm.info.SecurityInfo |
getSecurityInfo(Device device)
Retrieve security information from the repository.
|
SyncLog |
getSyncLog(Device device)
Retrieve Data Synchronization Log from the repository.
|
void |
notify(java.lang.String cls,
java.lang.String method,
Device dev,
Command cmd)
Load JAVA class and invoke its method.
|
static void |
onSend(Device dev,
Command cmd)
Process command 'SEND' notifications.
|
static void |
onStatus(Device dev,
Command cmd)
Process command 'STATUS' notifications.
|
static void |
onVerify(Device dev,
Command cmd)
Process command 'VERIFICATION' notifications.
|
getCommand, getCommands, getDevice, getDeviceFiles, getDeviceUser
public java.lang.String checkForSoftwareUpdate(java.lang.String info)
info
- Current software informationpublic DatabaseInfo getDatabaseInfo(Device device) throws ResourceException
device
- oracle.lite.resource.Device
objectoracle.lite.dm.info.DatabaseInfo
objectoracle.lite.resource.ResourceException
ResourceException
public static java.lang.String getDeviceAgent()
public DeviceInfo getDeviceInfo(Device device) throws ResourceException
DeviceInfo
object holds all hardware/system software information of a device.device
- oracle.lite.resource.Device
objectoracle.lite.dm.info.DeviceInfo
objectoracle.lite.resource.ResourceException
ResourceException
public static DeviceManager getInstance()
DeviceManager
classpublic INI getODBCInfo(Device device) throws ResourceException
device
- oracle.lite.resource.Device
objectoracle.lite.dm.info.INI
objectoracle.lite.resource.ResourceException
ResourceException
public INI getOLiteInfo(Device device) throws ResourceException
device
- oracle.lite.resource.Device
objectoracle.lite.dm.info.INI
objectoracle.lite.resource.ResourceException
ResourceException
public static java.lang.String getRepositoryPath(java.lang.String oracleHome)
oracleHome
- Oracle Homepublic oracle.lite.dm.info.SecurityInfo getSecurityInfo(Device device) throws ResourceException
SecurityInfo
object is for iOS device only.device
- oracle.lite.resource.Device
objectoracle.lite.dm.info.SecurityInfo
objectoracle.lite.resource.ResourceException
ResourceException
public SyncLog getSyncLog(Device device) throws ResourceException
device
- oracle.lite.resource.Device
objectoracle.lite.dm.info.SyncLog
objectoracle.lite.resource.ResourceException
- Create a new SyncLog object and return the same.ResourceException
public void notify(java.lang.String cls, java.lang.String method, Device dev, Command cmd) throws java.lang.Exception
cls
- Java class namemethod
- Public static method namedev
- Device objectcmd
- Command objectjava.lang.Exception
public static void onSend(Device dev, Command cmd)
dev
- oracle.lite.dm.Device
objectcmd
- oracle.lite.resource.dm.Command
objectpublic static void onStatus(Device dev, Command cmd)
dev
- oracle.lite.dm.Device
objectcmd
- oracle.lite.resource.dm.Command
object