Compiere 3.1

org.compiere.cm.cache
Class MediaServer

java.lang.Object
  extended by org.compiere.cm.cache.CO
      extended by org.compiere.cm.cache.MediaServer

public class MediaServer
extends CO

MediaServer CO stores Cache Objects for the Media Servers, so later we will always return kind of nearest / fastest media server to user...

Version:
$Id$
Author:
Yves Sandfort

Field Summary
 
Fields inherited from class org.compiere.cm.cache.CO
cache, cacheSize, cacheUsage, ctx, log
 
Constructor Summary
MediaServer()
           
 
Method Summary
 String getMediaServer(Ctx ctx, int WebProjectID, String trxName)
          getMediaServer will return the correct MediaServer for this request
 
Methods inherited from class org.compiere.cm.cache.CO
empty, getCtx, getKeys, getSize, getSortedKeys, getValueTable, put, remove, remove, setCtx, show, use, use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaServer

public MediaServer()
Method Detail

getMediaServer

public String getMediaServer(Ctx ctx,
                             int WebProjectID,
                             String trxName)
getMediaServer will return the correct MediaServer for this request

Parameters:
ctx - Context
WebProjectID - The Web Project ID
trxName - TrxName
Returns:
String with URL, or null if none found

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.