org.inria.myriads.snoozenode.database
Class DatabaseFactory

java.lang.Object
  extended by org.inria.myriads.snoozenode.database.DatabaseFactory

public final class DatabaseFactory
extends Object

Database factory.

Author:
Eugen Feller

Method Summary
static GroupLeaderRepository newGroupLeaderRepository(String virtualMachineSubnet, int maxCapacity, DatabaseType type)
          Returns the group leader repository.
static GroupManagerRepository newGroupManagerRepository(String groupManagerId, int maxCapacity, DatabaseType type)
          Returns the group manager repository.
static LocalControllerRepository newLocalControllerRepository(DatabaseType type)
          Returns the local controller repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newGroupLeaderRepository

public static GroupLeaderRepository newGroupLeaderRepository(String virtualMachineSubnet,
                                                             int maxCapacity,
                                                             DatabaseType type)
Returns the group leader repository.

Parameters:
virtualMachineSubnet - The virtual machine subnet
maxCapacity - The maximum capacity
type - The database type
Returns:
The group leader repository

newGroupManagerRepository

public static GroupManagerRepository newGroupManagerRepository(String groupManagerId,
                                                               int maxCapacity,
                                                               DatabaseType type)
Returns the group manager repository.

Parameters:
groupManagerId - The group manager identifier
maxCapacity - The maximum capacity
type - The database type
Returns:
The group manager repository

newLocalControllerRepository

public static LocalControllerRepository newLocalControllerRepository(DatabaseType type)
Returns the local controller repository.

Parameters:
type - The database type
Returns:
The local controller repository


Copyright © 2012. All Rights Reserved.