Package org.onosproject.net.resource
Interface ResourceAdminService
-
@Beta public interface ResourceAdminService
Service for administering resource service behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
register(java.util.List<? extends Resource> resources)
Registers the specified resources.default boolean
register(Resource... resources)
Registers the specified resources.boolean
unregister(java.util.List<? extends ResourceId> ids)
Unregisters the specified resources.default boolean
unregister(ResourceId... ids)
Unregisters the specified resources.
-
-
-
Method Detail
-
register
default boolean register(Resource... resources)
Registers the specified resources.- Parameters:
resources
- resources to be registered- Returns:
- true if registration is successfully done, false otherwise. Registration succeeds when each resource is not registered or unallocated.
-
register
boolean register(java.util.List<? extends Resource> resources)
Registers the specified resources.- Parameters:
resources
- resources to be registered- Returns:
- true if registration is successfully done, false otherwise. Registration succeeds when each resource is not registered or unallocated.
-
unregister
default boolean unregister(ResourceId... ids)
Unregisters the specified resources.- Parameters:
ids
- IDs of resources to be unregistered- Returns:
- true if unregistration is successfully done, false otherwise. Unregistration succeeds when each resource is not registered or unallocated.
-
unregister
boolean unregister(java.util.List<? extends ResourceId> ids)
Unregisters the specified resources.- Parameters:
ids
- IDs of resources to be unregistered- Returns:
- true if unregistration is successfully done, false otherwise. Unregistration succeeds when each resource is not registered or unallocated.
-
-