net.grinder.console.distribution
Interface AgentCacheState


public interface AgentCacheState

Simplistic model of remote file caches.

This tracks the state of all the caches, so getOutOfDate() will return true if any one of the caches is out of date. For per cache information, see AgentSet.getAddressOfOutOfDateAgents(long).

Author:
Philip Aston

Method Summary
 void addListener(PropertyChangeListener listener)
          Allow other parties to register their interest in changes to our state.
 boolean getOutOfDate()
          Enquire whether one or more agent caches is out of date.
 void setNewFileTime(long time)
          Inform that agent caches are out of date due to a change to a file.
 

Method Detail

getOutOfDate

boolean getOutOfDate()
Enquire whether one or more agent caches is out of date.

Returns:
true => at least one agent cache is out of date.

setNewFileTime

void setNewFileTime(long time)
Inform that agent caches are out of date due to a change to a file. Called whenever a new or modified file is found.

Parameters:
time - Caches need to be refreshed with files newer than this time (milliseconds since Epoch).

addListener

void addListener(PropertyChangeListener listener)
Allow other parties to register their interest in changes to our state.

Parameters:
listener - Listener to notify on a state change.


Copyright © 2000-2013. All Rights Reserved.