Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Thomas Vachuska
2014-10-24 11:55:05 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f99769573d7e911b1c8ebba3855c5f4d4b61bfc5
f9976957
1 parent
719b3c50
Sketched out changes to link resource service to support intent replacement mechanism.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceService.java
core/net/src/main/java/org/onlab/onos/net/resource/impl/LinkResourceManager.java
core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceService.java
View file @
f997695
...
...
@@ -24,6 +24,16 @@ public interface LinkResourceService {
void
releaseResources
(
LinkResourceAllocations
allocations
);
/**
* Updates previously made allocations with a new resource request.
*
* @param req updated resource request
* @param oldAllocations old resource allocations
* @return new resource allocations
*/
LinkResourceAllocations
updateResources
(
LinkResourceRequest
req
,
LinkResourceAllocations
oldAllocations
);
/**
* Returns all allocated resources.
*
* @return allocated resources
...
...
@@ -61,4 +71,15 @@ public interface LinkResourceService {
* @return available resources for the target link
*/
ResourceRequest
getAvailableResources
(
Link
link
);
/**
* Returns available resources for given link.
*
* @param link a target link
* @param allocations allocations to be included as available
* @return available resources for the target link
*/
ResourceRequest
getAvailableResources
(
Link
link
,
LinkResourceAllocations
allocations
);
}
...
...
core/net/src/main/java/org/onlab/onos/net/resource/impl/LinkResourceManager.java
View file @
f997695
...
...
@@ -79,6 +79,12 @@ public class LinkResourceManager implements LinkResourceService {
}
@Override
public
LinkResourceAllocations
updateResources
(
LinkResourceRequest
req
,
LinkResourceAllocations
oldAllocations
)
{
return
null
;
}
@Override
public
Iterable
<
LinkResourceAllocations
>
getAllocations
()
{
// TODO Auto-generated method stub
return
null
;
...
...
@@ -108,4 +114,10 @@ public class LinkResourceManager implements LinkResourceService {
return
null
;
}
@Override
public
ResourceRequest
getAvailableResources
(
Link
link
,
LinkResourceAllocations
allocations
)
{
return
null
;
}
}
...
...
Please
register
or
login
to post a comment