com.mizar.metadata.mcserver
Class CacheInstance

java.lang.Object
  extended by com.mizar.metadata.mcserver.CacheInstance

public class CacheInstance
extends java.lang.Object


Constructor Summary
CacheInstance()
           
CacheInstance(org.jdom.Element instance)
           
 
Method Summary
 java.lang.String getBaseMap()
           
 java.lang.String getCacheRoot()
           
 java.lang.String getDataSource()
           
static java.util.List<CacheInstance> getFromTileServerStatus(java.lang.String tileServerStatusXML)
          Example input parameter returned by mcserver:
 java.lang.String getName()
           
 java.lang.String getStatus()
           
 java.lang.String getType()
           
 int getZoomLevels()
           
 boolean isOnline()
           
 void setBaseMap(java.lang.String baseMap)
           
 void setCacheRoot(java.lang.String cacheRoot)
           
 void setDataSource(java.lang.String dataSource)
           
 void setName(java.lang.String name)
           
 void setOnline(boolean online)
           
 void setStatus(java.lang.String status)
           
 void setType(java.lang.String type)
           
 void setZoomLevels(int zoomLevels)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheInstance

public CacheInstance()

CacheInstance

public CacheInstance(org.jdom.Element instance)
Method Detail

getFromTileServerStatus

public static java.util.List<CacheInstance> getFromTileServerStatus(java.lang.String tileServerStatusXML)
                                                             throws org.jdom.JDOMException,
                                                                    java.io.IOException

Example input parameter returned by mcserver:

The input has been formatted for readability here but does not contain new lines as delivered by mcserver and mcsadmin

The <map_tile_server_response> is delivered by mcsadmin but is not delivered by mcserver. The method handles both cases.


   <map_tile_server_response>
     <tile_server_status>
       <cache_instance data_source="MVDEMO" name="CUSTOMER_MAP" type="internal" base_map="CUSTOMER_MAP" zoom_levels="10" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\MVDEMO.CUSTOMER_MAP\" status="ready" online="true"/>
       <cache_instance data_source="MVDEMO" name="DEMO_MAP" type="internal" base_map="DEMO_MAP" zoom_levels="10" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\MVDEMO.DEMO_MAP\" status="ready" online="true"/>
       <cache_instance data_source="PRECINCT" name="BASE_MAP" type="internal" base_map="OHIO_MAP" zoom_levels="11" cache_root="/temp\PRECINCT.BASE_MAP\" status="ready" online="true"/>
       <cache_instance data_source="PRECINCT" name="LYR_BLOCK_GROUP" type="internal" base_map="LYR_BLOCK_GROUP" zoom_levels="11" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\PRECINCT.LYR_BLOCK_GROUP\" status="ready" online="true"/>
       <cache_instance data_source="PRECINCT" name="LYR_CENSUS_BLOCK" type="internal" base_map="LYR_CENSUS_BLOCK" zoom_levels="11" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\PRECINCT.LYR_CENSUS_BLOCK\" status="ready" online="true"/>
       <cache_instance data_source="PRECINCT" name="LYR_STREET" type="internal" base_map="LYR_STREET" zoom_levels="11" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\PRECINCT.LYR_STREET\" status="ready" online="true"/>
       <cache_instance data_source="PRECINCT" name="LYR_TRACT" type="internal" base_map="LYR_TRACT" zoom_levels="11" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\PRECINCT.LYR_TRACT\" status="ready" online="true"/>
       <cache_instance data_source="PRECINCT" name="OHIO_82249_MAP" type="internal" base_map="OHIO_MAP" zoom_levels="11" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\PRECINCT.OHIO_82249_MAP\" status="ready" online="true"/>
       <cache_instance data_source="PRECINCT" name="OHIO_MAP" type="internal" base_map="OHIO_MAP" zoom_levels="11" cache_root="C:\oracle\Middleware\mapviewer\mapviewer.ear\web.war\tilecache\PRECINCT.OHIO_MAP\" status="ready" online="true"/>
     </tile_server_status>
   </map_tile_server_response>
 

Parameters:
tileServerStatusXML -
Returns:
Throws:
org.jdom.JDOMException
java.io.IOException
See Also:
MapCacheUtils#getClientConfig(String)

setDataSource

public void setDataSource(java.lang.String dataSource)

getDataSource

public java.lang.String getDataSource()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setType

public void setType(java.lang.String type)

getType

public java.lang.String getType()

setBaseMap

public void setBaseMap(java.lang.String baseMap)

getBaseMap

public java.lang.String getBaseMap()

setZoomLevels

public void setZoomLevels(int zoomLevels)

getZoomLevels

public int getZoomLevels()

setCacheRoot

public void setCacheRoot(java.lang.String cacheRoot)

getCacheRoot

public java.lang.String getCacheRoot()

setStatus

public void setStatus(java.lang.String status)

getStatus

public java.lang.String getStatus()

setOnline

public void setOnline(boolean online)

isOnline

public boolean isOnline()