|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.web.domain.DomainModel
public class DomainModel
Purpose: Domain model for the domain registry service. Initialized from a Domain object, this model tracks updates to metrics and is responsible for the formation of dynamically-generated domain file content.
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 ============================================================================
| Field Summary | |
|---|---|
protected List |
_listeners
Collection of listeners |
protected ServerOrderer |
_order
Server orderer, sorts servers by some priority |
protected Map |
_serverGroups
Server group name -> server group node |
protected Domain |
_sourceDomain
Reference domain file |
| Constructor Summary | |
|---|---|
DomainModel(Domain domain)
Constructor |
|
| Method Summary | |
|---|---|
void |
addListener(Object l)
Not yet implemented |
protected void |
fireServerMetricChange(String group,
String server)
Not yet implemented |
String |
getDomainContents()
|
ServerMetrics[] |
getMetricsForGroup(String groupName,
boolean filterVft)
|
String[] |
getServerGroupNames()
|
protected jpl.mipl.mdms.web.domain.DomainModel.ServerGroupNode |
getServerGroupNode(String groupName)
Handles server group node retrieval. |
static void |
main(String[] args)
|
protected static int |
parseInt(String valueString)
|
protected static long |
parseLong(String valueString)
|
protected void |
populateModel()
Initializes this model |
void |
removeListener(Object l)
Not yet implemented |
void |
updateServerMetric(Properties metricEntry)
Look up metrics for a given server and update with field. |
void |
updateServerMetric(String serverGroup,
String server,
Properties metricEntry)
Look up metrics for a given server and update with field |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map _serverGroups
protected final Domain _sourceDomain
protected final ServerOrderer _order
protected final List _listeners
| Constructor Detail |
|---|
public DomainModel(Domain domain)
throws SessionException
domain - Instance of domain that represents the initial state
of this model
SessionException| Method Detail |
|---|
protected void populateModel()
throws SessionException
SessionExceptionprotected jpl.mipl.mdms.web.domain.DomainModel.ServerGroupNode getServerGroupNode(String groupName)
groupName - Server group name
public void updateServerMetric(Properties metricEntry)
metricEntry - New metric properties entry
public void updateServerMetric(String serverGroup,
String server,
Properties metricEntry)
serverGroup - Server group nameserver - Server namemetricEntry - New metric properties entryprotected static int parseInt(String valueString)
protected static long parseLong(String valueString)
public void addListener(Object l)
public void removeListener(Object l)
protected void fireServerMetricChange(String group,
String server)
public ServerMetrics[] getMetricsForGroup(String groupName,
boolean filterVft)
public String[] getServerGroupNames()
public String getDomainContents()
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||