Package com.morpheusdata.core.network
Interface MorpheusNetworkRouteTableService
- All Superinterfaces:
MorpheusDataQueryService<NetworkRouteTable>
,MorpheusDataService<NetworkRouteTable,
,NetworkRouteTableIdentityProjection> MorpheusIdentityService<NetworkRouteTableIdentityProjection>
public interface MorpheusNetworkRouteTableService
extends MorpheusDataService<NetworkRouteTable,NetworkRouteTableIdentityProjection>, MorpheusIdentityService<NetworkRouteTableIdentityProjection>
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<NetworkRouteTable> addList) Deprecated.io.reactivex.rxjava3.core.Observable<NetworkRouteTable>
listById
(Collection<Long> ids) Deprecated.io.reactivex.rxjava3.core.Observable<NetworkRouteTableIdentityProjection>
listIdentityProjections
(CloudPool zonePool) Lists all route table projection objects for a specified cloud.io.reactivex.rxjava3.core.Observable<NetworkRouteTableIdentityProjection>
listIdentityProjections
(Long poolId) Lists all route table projection objects for a specified cloud.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<NetworkRouteTableIdentityProjection> removeList) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<NetworkRouteTable> routerTablesToSave) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadMethods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<NetworkRouteTableIdentityProjection> listIdentityProjections(CloudPool zonePool) Lists all route table projection objects for a specified cloud. The projection is a subset of the properties on a fullNetworkRouteTable
object for sync matching.- Parameters:
zonePool
- theCloudPool
identifier associated to the route tables to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<NetworkRouteTableIdentityProjection> listIdentityProjections(Long poolId) Lists all route table projection objects for a specified cloud. The projection is a subset of the properties on a fullNetworkRouteTable
object for sync matching.- Parameters:
poolId
- the id of theCloudPool
associated to the route tables to be listed.- Returns:
- an RxJava Observable stream of result projection objects.
-
listById
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Observable<NetworkRouteTable> listById(Collection<Long> ids) Deprecated.Lists allNetworkRouteTable
objects by a list of Identifiers. This is commonly used in sync / caching logic.- Parameters:
ids
- list of ids to grabNetworkRouteTable
objects from.- Returns:
- an RxJava Observable stream of
NetworkRouteTable
to be subscribed to.
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<NetworkRouteTableIdentityProjection> removeList) Deprecated.Removes Missing Router Tables on the Morpheus side. This accepts the Projection Object instead of the main Object. It is important to note this is an Observer pattern and must be subscribed to in order for the action to occurExample:
morpheusContext.getNetwork().getRouteTable().remove(removeItems).blockingGet()
- Specified by:
remove
in interfaceMorpheusDataService<NetworkRouteTable,
NetworkRouteTableIdentityProjection> - Parameters:
removeList
- a list of router projections to be removed- Returns:
- a Single
Observable
returning the success status of the operation. - See Also:
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<NetworkRouteTable> addList) Deprecated.Creates new Network Route Tables from cache / sync implementations- Specified by:
create
in interfaceMorpheusDataService<NetworkRouteTable,
NetworkRouteTableIdentityProjection> - Parameters:
addList
- List of newNetworkRouteTable
objects to be inserted into the database- Returns:
- notification of completion if someone really cares about it
- See Also:
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<NetworkRouteTable> routerTablesToSave) Deprecated.useMorpheusDataService.bulkSave(java.util.List<M>)
insteadSaves a list ofNetworkRouteTable
objects. Be mindful this is an RxJava implementation and must be subscribed to for any action to actually take place.- Specified by:
save
in interfaceMorpheusDataService<NetworkRouteTable,
NetworkRouteTableIdentityProjection> - Parameters:
routerTablesToSave
- a List of Network Route Table objects that need to be updated in the database.- Returns:
- the Single Observable stating the success state of the save attempt
- See Also:
-
MorpheusDataService.bulkCreate(java.util.List<M>)
instead