Package org.onosproject.net.resource
Interface ResourceAdminService
-
@Beta public interface ResourceAdminServiceService for administering resource service behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanregister(List<? extends Resource> resources)Registers the specified resources.default booleanregister(Resource... resources)Registers the specified resources.booleanunregister(List<? extends ResourceId> ids)Unregisters the specified resources.default booleanunregister(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(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(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.
-
-