Package com.knowgate.cache

Examples of com.knowgate.cache.DistributedCachePeer


    if (DebugFile.trace) {
      DebugFile.writeln("Begin Distances.setDistance("+sLocationFrom+","+sLocationTo+","+String.valueOf(fKm)+","+String.valueOf(sLocale)+")");
      DebugFile.incIdent();
    }
   
    if (null==oCache) oCache = new DistributedCachePeer();

  String sFromTo = sLocationFrom + "|" + sLocationTo;
  synchronized (oCache) {
    if (oCache.keySet().contains(sFromTo)) {
      oCache.expire(sFromTo);
View Full Code Here


   * Get distance between two locations from volatile memory cache
   * @return Float distance in kilometters or <b>null</b> if no cached distance for given locations is found
   */
  public static Float getDistance(String sLocationFrom, String sLocationTo, String sLocale)
    throws InstantiationException,RemoteException,ClassCastException {
    if (null==oCache) oCache = new DistributedCachePeer();
  return oCache.getFloat(sLocationFrom + "|" + sLocationTo);
  }
View Full Code Here

      sIdCmmd = oEventsPerDomain.get(oIdDomain).get(sEventId.toLowerCase());
    if (oCmmdClasses.containsKey(sIdCmmd)) {
        Class oEvntClss = (Class) oCmmdClasses.get(sIdCmmd);

        if (null!=oEvntClss) {
          if (null==oEventCache) oEventCache = new DistributedCachePeer();
          oEvnt = (Event) oEventCache.get(sEventId.toLowerCase()+"("+String.valueOf(iDomainId)+")");
          if ((null==oEvnt)) {
            if (DebugFile.trace) DebugFile.writeln("Creating instance of "+oEvntClss.getName());
            oEvnt = (Event) oEvntClss.newInstance();
            oEvnt.load(oConn, new Object[]{new Integer(iDomainId), sEventId.toLowerCase()});
View Full Code Here

TOP

Related Classes of com.knowgate.cache.DistributedCachePeer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.