org.inria.myriads.snoozenode.database.api
public interface GroupLeaderRepository
Modifier and Type | Method and Description |
---|---|
boolean |
addGroupManagerDescription(org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription description)
Adds a group manager description.
|
void |
addGroupManagerSummaryInformation(String groupManagerId,
org.inria.myriads.snoozecommon.communication.groupmanager.summary.GroupManagerSummaryInformation summary)
Adds group manager data.
|
boolean |
addIpAddress(String ipAddress)
Adds the IP address.
|
boolean |
dropGroupManager(String groupManagerId)
Drops a group manager.
|
org.inria.myriads.snoozecommon.communication.localcontroller.AssignedGroupManager |
getAssignedGroupManager(org.inria.myriads.snoozecommon.communication.NetworkAddress contactInformation)
Gets the group manager assigned to the localcontroller identified by its contact information.
|
String |
getFreeIpAddress()
Get the next free IP address.
|
org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription |
getGroupManagerDescription(String groupManagerId,
int numberOfBacklogEntries)
Returns the group manager description.
|
ArrayList<org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription> |
getGroupManagerDescriptions(int numberOfBacklogEntries)
Returns the group manager descriptions.
|
org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription |
getLocalControllerDescription(String localControllerId)
Gets the localController description.
|
ArrayList<org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription> |
getLocalControllerList()
Returns the local controllers list.
|
boolean |
removeIpAddress(String ipAddress)
Removes IP address from the pool.
|
boolean |
updateLocation(org.inria.myriads.snoozecommon.communication.virtualcluster.submission.VirtualMachineLocation location)
Given a local controller location updates the location with the proper groupmanager.
|
boolean addGroupManagerDescription(org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription description)
description
- The group manager descriptionArrayList<org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription> getGroupManagerDescriptions(int numberOfBacklogEntries)
numberOfBacklogEntries
- The number of backlog entriesorg.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription getGroupManagerDescription(String groupManagerId, int numberOfBacklogEntries)
groupManagerId
- The group manager idnumberOfBacklogEntries
- The number of backlog entriesvoid addGroupManagerSummaryInformation(String groupManagerId, org.inria.myriads.snoozecommon.communication.groupmanager.summary.GroupManagerSummaryInformation summary)
groupManagerId
- The group manager identifiersummary
- The group manager summary informationboolean dropGroupManager(String groupManagerId)
groupManagerId
- The group manager identifierboolean addIpAddress(String ipAddress)
ipAddress
- The ip addressboolean removeIpAddress(String ipAddress)
ipAddress
- The ip addressString getFreeIpAddress()
ArrayList<org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription> getLocalControllerList()
org.inria.myriads.snoozecommon.communication.localcontroller.AssignedGroupManager getAssignedGroupManager(org.inria.myriads.snoozecommon.communication.NetworkAddress contactInformation)
contactInformation
- the contact address/port of the local controller.boolean updateLocation(org.inria.myriads.snoozecommon.communication.virtualcluster.submission.VirtualMachineLocation location)
location
- location.org.inria.myriads.snoozecommon.communication.localcontroller.LocalControllerDescription getLocalControllerDescription(String localControllerId)
localControllerId
- Localcontroller Id.Copyright © 2013. All Rights Reserved.