com.cafesoft.cams.agent
Interface CamsAgentContext


public interface CamsAgentContext

CamsAgentContext This structure provides CamsAgent instances with various resources and services including: 1. configuration Properties 2. a trace Logger 3. a CamsClient instance used to communicate with a CamsPolicyServer 4. an optional CamsRemoteSessionManager instance, used to cache information about sessions associated with authenticated Cams users. 5. an optioanl CamsAccessControlCheckCache instance, used to cache certain access control responses to improve agent performance.

Since:
6/18/03

Method Summary
 boolean cacheAccessControlChecks()
          Determine if AccessControlCheck caching is enabled.
 boolean cacheRemoteSessions()
          Determine if RemoteSession caching is enabled.
 void destroy()
          Destroys the CamsAgentContext.
 AccessControlCheckCache getAccessControlCheckCache()
          Returns the CamsAccessControlCheckCache.
 CamsClient getClient()
          Returns the CamsClient.
 Config getConfig()
          Returns the configuration.
 boolean getDebug()
          Determine if debugging is enabled.
 long getLastAccessControlResponseTime()
          Returns the last time an AccessControlResponse was received.
 RemoteSessionManager getRemoteSessionManager()
          Returns the CamsRemoteSessionManager.
 long getServerModifiedTime()
          Returns the last time the Cams policy server was modified.
 void setLastAccessControlResponseTime(long lastAccessControlResponseTime)
          Sets the last time the Cams policy server was modified.
 void setServerModifiedTime(long serverModifiedTime)
          Sets the last time the Cams policy server was modified.
 

Method Detail

getConfig

public Config getConfig()
Returns the configuration.

Returns:
a Config which contains configuration parameters, and a Logger

getClient

public CamsClient getClient()
Returns the CamsClient.

Returns:
the CamsClient to be used by the CamsAgent

getDebug

public boolean getDebug()
Determine if debugging is enabled.

Returns:
true if debugging is enabled, false otherwise.

cacheRemoteSessions

public boolean cacheRemoteSessions()
Determine if RemoteSession caching is enabled.

Returns:
true if caching is enabled, false otherwise.

getRemoteSessionManager

public RemoteSessionManager getRemoteSessionManager()
Returns the CamsRemoteSessionManager.

Returns:
the CamsRemoteSessionManager to be used by the CamsAgent

cacheAccessControlChecks

public boolean cacheAccessControlChecks()
Determine if AccessControlCheck caching is enabled.

Returns:
true if caching is enabled, false otherwise.

getAccessControlCheckCache

public AccessControlCheckCache getAccessControlCheckCache()
Returns the CamsAccessControlCheckCache.

Returns:
the CamsAccessControlCheckCache to be used by the CamsAgent

destroy

public void destroy()
Destroys the CamsAgentContext.


getLastAccessControlResponseTime

public long getLastAccessControlResponseTime()
Returns the last time an AccessControlResponse was received.

Returns:
the last time an AccessControlResponse was received

setLastAccessControlResponseTime

public void setLastAccessControlResponseTime(long lastAccessControlResponseTime)
Sets the last time the Cams policy server was modified.

Parameters:
lastAccessControlResponseTime - the last time the Cams policy server was modified

getServerModifiedTime

public long getServerModifiedTime()
Returns the last time the Cams policy server was modified.

Returns:
the last time the Cams policy server was modified

setServerModifiedTime

public void setServerModifiedTime(long serverModifiedTime)
Sets the last time the Cams policy server was modified.

Parameters:
serverModifiedTime - the last time the Cams policy server was modified


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.