public class DBFileHandler extends Object implements org.apache.felix.fileinstall.ArtifactInstaller, IDBAdapter
Constructor and Description |
---|
DBFileHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addDPInfosListener(DPInfosListener listener) |
boolean |
canHandle(File dbFile) |
String |
getDeviceAdapterId(Set<String> interfaceSet)
Get deployment package id associated with the interface list given as parameter.
|
Object |
getDeviceAdapterUrl(String dpId)
Get the deployment package url related to the id given as parameter.
|
DPInfosListener[] |
getDPInfosListeners() |
void |
install(File dbFile) |
void |
removeDPInfosListener(DPInfosListener listener) |
void |
uninstall(File dbFile) |
void |
update(File dbFile) |
public boolean canHandle(File dbFile)
canHandle
in interface org.apache.felix.fileinstall.ArtifactListener
public void install(File dbFile) throws Exception
install
in interface org.apache.felix.fileinstall.ArtifactInstaller
Exception
public void update(File dbFile) throws Exception
update
in interface org.apache.felix.fileinstall.ArtifactInstaller
Exception
public void uninstall(File dbFile) throws Exception
uninstall
in interface org.apache.felix.fileinstall.ArtifactInstaller
Exception
public String getDeviceAdapterId(Set<String> interfaceSet)
IDBAdapter
getDeviceAdapterId
in interface IDBAdapter
public Object getDeviceAdapterUrl(String dpId)
IDBAdapter
getDeviceAdapterUrl
in interface IDBAdapter
dpId
- the dpid whose url need to be fetched.public void addDPInfosListener(DPInfosListener listener)
addDPInfosListener
in interface IDBAdapter
public void removeDPInfosListener(DPInfosListener listener)
removeDPInfosListener
in interface IDBAdapter
public DPInfosListener[] getDPInfosListeners()
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.