|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.web.domain.ServerRatioOrderer
public class ServerRatioOrderer
Purpose: Instance of ServerOrderer that gives higher priority to servers with the lowest percentage load. If two servers have the same load, then preference is given to the server with a greater connection limit.
Copyright 2006, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2006.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 08/10/2006 Nick Initial Release ============================================================================
| Constructor Summary | |
|---|---|
ServerRatioOrderer(DomainModel model)
|
|
| Method Summary | |
|---|---|
Comparator |
getComparator()
Returns refernce to the comparator used by the instance |
List |
getServerList(String serverGroup)
Returns a sorted list of servers for a given server group. |
List |
getServerList(String serverGroup,
List currentOrder)
Ignores currentOrder parameter and returns the results of calling getServerList(serverGroup) |
Map |
getServerLists(String[] serverGroups)
Returns a map of server groups found in pararmeter array to the sorted list of servers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServerRatioOrderer(DomainModel model)
| Method Detail |
|---|
public Comparator getComparator()
ServerOrderer
getComparator in interface ServerOrdererpublic List getServerList(String serverGroup)
ServerOrderer
getServerList in interface ServerOrdererserverGroup - Server group name
public List getServerList(String serverGroup,
List currentOrder)
getServerList in interface ServerOrdererserverGroup - Server group namecurrentOrder - A list of the current server order,
can be null or empty.
public Map getServerLists(String[] serverGroups)
getServerLists in interface ServerOrdererserverGroups - Array of servergroups which will be
keys of the resulting map.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||