Esempio n. 1
0
        public static void InitClient()
        {
            CacheHelper <TKey, TVal> .Close();

            Properties <string, string> config = new Properties <string, string>();

            CacheHelper <TKey, TVal> .InitConfig(config);
        }
Esempio n. 2
0
 public void DoDurableCloseCache()
 {
     FwkInfo("In DoDurableCloseCache()");
     try
     {
         bool keepalive = GetBoolValue(KeepAlive);
         bool isDurable = GetBoolValue(IsDurable);
         FwkInfo("KeepAlive is {0}, isDurable is {1}", keepalive, isDurable);
         if (isDurable && keepalive)
         {
             CacheHelper <TKey, TVal> .CloseKeepAlive();
         }
         else
         {
             CacheHelper <TKey, TVal> .Close();
         }
     }
     catch (Exception ex)
     {
         FwkSevere("DoDurableCloseCache() Caught Exception: {0}", ex);
         throw;
     }
     FwkInfo("DoDurableCloseCache() complete.");
 }
Esempio n. 3
0
 public void DoCloseCache()
 {
     FwkInfo("DoCloseCache()  Closing cache and disconnecting from" +
             " distributed system.");
     CacheHelper <TKey, TVal> .Close();
 }