public class RemotePool extends Object
| Constructor and Description |
|---|
RemotePool(ForegroundPane foregroundPane)
Constructor for the RemotePool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fillUnitAndLocationMap()
Fills the unit and the location hashmap with all remotes.
|
void |
fillUserMap()
Fills the user map with all remotes.
|
rct.TransformReceiver |
getTransformReceiver()
Returns the TransformReceiver.
|
<Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> |
getUnitRemoteById(String unitId)
Returns the AbstractIdentifiableRemote to the given unitId and class.
|
<Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> |
getUnitRemoteByIdAndLocation(String unitId,
String locationId)
Returns the AbstractIdentifiableRemote to the given unitId and
locationId.
|
<Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> |
getUnitRemoteListOfClass(Class<? extends Remote> remoteClass)
Returns a List with all Remotes of the given remote class.
|
List<org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> |
getUnitRemoteListOfLocation(String locationId)
Returns a List of all DALRemoteServices to the given locationId.
|
<Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> |
getUnitRemoteListOfLocationAndClass(String locationId,
Class<? extends Remote> remoteClass)
Returns a List of all DALRemoteServices to a given locationId and
inherited Class of AbstractIdentifiableRemote.
|
Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote>> |
getUnitRemoteMapOfLocation(String locationId)
Returns a Map of all DALRemoteServices of the given Location sorted by
their UnitType.
|
List<org.openbase.bco.dal.remote.unit.user.UserRemote> |
getUserRemoteList()
Returns a List of all UserRemotes.
|
void |
initRegistryRemotes()
Initiate RegistryRemotes.
|
boolean |
isInit()
Returns the information whether the remotepool is initialized or not.
|
boolean |
isMapsFilled()
Returns the information whether the maps are filled or not.
|
void |
shutdownAllRemotes()
Shut down all DALRemotes and the RegistryRemotes.
|
void |
shutdownDALRemotes()
Shut down all DALRemotes.
|
void |
shutdownDALRemotesAndClearMaps()
Shut down all DALRemotes and clear the unitMap and the locationMap.
|
public RemotePool(ForegroundPane foregroundPane)
foregroundPane - ForegroundPanepublic void initRegistryRemotes()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException,
rct.TransformerFactory.TransformerFactoryException
org.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionInterruptedException - InterruptedExceptionTransformerFactory.TransformerFactoryException - TransformerFactoryExceptionpublic void fillUnitAndLocationMap()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
org.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionInterruptedExceptionpublic void fillUserMap()
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
org.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionInterruptedExceptionpublic <Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> Remote getUnitRemoteById(String unitId) throws org.openbase.jul.exception.CouldNotPerformException
Remote - the corresponding class of the remoteunitId - the unit IDorg.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionpublic <Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> Remote getUnitRemoteByIdAndLocation(String unitId, String locationId) throws org.openbase.jul.exception.CouldNotPerformException
Remote - the corresponding class of the remoteunitId - the unit IDlocationId - the location IDorg.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionpublic <Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> List<Remote> getUnitRemoteListOfClass(Class<? extends Remote> remoteClass) throws org.openbase.jul.exception.CouldNotPerformException
Remote - the corresponding class of the remoteremoteClass - the remote classorg.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionpublic List<org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> getUnitRemoteListOfLocation(String locationId) throws org.openbase.jul.exception.CouldNotPerformException
locationId - the location IDorg.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionpublic Map<rst.domotic.unit.UnitTemplateType.UnitTemplate.UnitType,List<org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote>> getUnitRemoteMapOfLocation(String locationId)
locationId - locationIdpublic <Remote extends org.openbase.jul.extension.rsb.com.AbstractIdentifiableRemote> List<Remote> getUnitRemoteListOfLocationAndClass(String locationId, Class<? extends Remote> remoteClass) throws org.openbase.jul.exception.CouldNotPerformException
Remote - the corresponding class of the remotelocationId - the location IDremoteClass - the inherited Class of AbstractIdentifiableRemoteorg.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionpublic List<org.openbase.bco.dal.remote.unit.user.UserRemote> getUserRemoteList() throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionpublic void shutdownDALRemotesAndClearMaps()
public void shutdownDALRemotes()
public void shutdownAllRemotes()
public rct.TransformReceiver getTransformReceiver()
throws org.openbase.jul.exception.CouldNotPerformException
org.openbase.jul.exception.CouldNotPerformException - CouldNotPerformExceptionpublic boolean isInit()
public boolean isMapsFilled()
Copyright © 2015–2016 openbase.org. All rights reserved.