com.alachisoft.jvcache.web.management
Class CacheManager

java.lang.Object
  extended by com.alachisoft.jvcache.web.management.CacheManager

public class CacheManager
extends java.lang.Object

Provides the methods for cache management.


Constructor Summary
CacheManager()
           
 
Method Summary
static void startCache(java.lang.String cacheId, java.lang.String serverName)
          Starts an out-proc cache.
static void startCache(java.lang.String cacheId, java.lang.String serverName, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials)
          Starts an out-proc cache.
static void stopCache(java.lang.String cacheId)
          Stops an out-proc cache.
static void stopCache(java.lang.String cacheId, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials)
          Stops an out-proc cache.
static void stopCache(java.lang.String cacheId, java.lang.String serverName)
          Stops an out-proc cache.
static void stopCache(java.lang.String cacheId, java.lang.String serverName, SecurityParams primaryUserCredentials, SecurityParams secondaryUserCredentials)
          Stops an out-proc cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManager

public CacheManager()
Method Detail

startCache

public static void startCache(java.lang.String cacheId,
                              java.lang.String serverName)
                       throws ManagementException,
                              SecurityException,
                              ConfigurationException
Starts an out-proc cache. The end result is the same as that of starting the cache using NCache Manager. It starts the cache on the specified cache server. If the Cache Server could not be contacted then it throws a exception. It tries to get the Security Parameters from the jvc-client.conf.

Parameters:
cacheId -
serverName -
Throws:
ManagementException
SecurityException
SecurityException
ConfigurationException

startCache

public static void startCache(java.lang.String cacheId,
                              java.lang.String serverName,
                              SecurityParams primaryUserCredentials,
                              SecurityParams secondaryUserCredentials)
                       throws ManagementException,
                              SecurityException
Starts an out-proc cache. The end result is the same as that of starting the cache using NCache Manager. It starts the cache on the specified cache server. If the Cache Server could not be contacted then it throws a exception.

Parameters:
cacheId -
serverName -
primaryUserCredentials -
secondaryUserCredentials -
Throws:
ManagementException
SecurityException
SecurityException

stopCache

public static void stopCache(java.lang.String cacheId)
                      throws ManagementException,
                             SecurityException,
                             ConfigurationException
Stops an out-proc cache. The end result is the same as that of stoping the cache using NCache Manager. It stops the cache only on the same server where the client application is running. If the Cache Server could not be contacted then it throws a exception. It tries to get the Security Parameters from the jvc-client.conf.

Parameters:
cacheId -
Throws:
ManagementException
SecurityException
ConfigurationException
SecurityException

stopCache

public static void stopCache(java.lang.String cacheId,
                             SecurityParams primaryUserCredentials,
                             SecurityParams secondaryUserCredentials)
                      throws SecurityException,
                             ManagementException
Stops an out-proc cache. The end result is the same as that of stoping the cache using NCache Manager. It stops the cache only on the same server where the client application is running. If the Cache Server could not be contacted then it throws a exception.

Parameters:
cacheId -
primaryUserCredentials -
secondaryUserCredentials -
Throws:
SecurityException
ManagementException
SecurityException

stopCache

public static void stopCache(java.lang.String cacheId,
                             java.lang.String serverName)
                      throws ManagementException,
                             SecurityException,
                             ConfigurationException
Stops an out-proc cache. The end result is the same as that of stoping the cache using NCache Manager. It stops the cache on the specified cache server. If the Cache Server could not be contacted then it throws a exception. It tries to get the Security Parameters from the jvc-client.conf.

Parameters:
cacheId -
serverName -
Throws:
ManagementException
SecurityException
ConfigurationException
SecurityException

stopCache

public static void stopCache(java.lang.String cacheId,
                             java.lang.String serverName,
                             SecurityParams primaryUserCredentials,
                             SecurityParams secondaryUserCredentials)
                      throws ManagementException,
                             SecurityException
Stops an out-proc cache. The end result is the same as that of stoping the cache using NCache Manager. It stops the cache on the specified cache server. If the Cache Server could not be contacted then it throws a exception.

Parameters:
cacheId -
serverName -
primaryUserCredentials -
secondaryUserCredentials -
Throws:
SecurityException
ManagementException
SecurityException