public class FlyCache
extends java.lang.Object
| Constructor and Description |
|---|
FlyCache()
When we create a cache we also start it by convention
|
| Modifier and Type | Method and Description |
|---|---|
void |
flyRepReply(FlyServerRep rep) |
java.util.Collection<FlyServerRep> |
getAllReps() |
java.util.Collection<FlyServerRep> |
getMatchingReps(java.lang.String[] tags) |
void |
issueRequest() |
void |
registerDiscoveredHandler(FlyDiscoveredHandler handler)
Register a handler that wants to know if a fly instance has been started
|
void |
registerLostHandler(FlyLostHandler handler)
Register a handler that wants to know if a fly instance has been stopped
|
void |
removeDiscoveredHandler(FlyDiscoveredHandler handler)
No longer inerested in discoveries
|
void |
removeLostHandler(FlyLostHandler handler)
No longer inerested in removed events
|
void |
start() |
void |
terminate() |
public java.util.Collection<FlyServerRep> getAllReps()
public java.util.Collection<FlyServerRep> getMatchingReps(java.lang.String[] tags)
public void registerDiscoveredHandler(FlyDiscoveredHandler handler)
handler - the handler to registerpublic void removeDiscoveredHandler(FlyDiscoveredHandler handler)
handler - the handler to removepublic void registerLostHandler(FlyLostHandler handler)
handler - the lost handler to registerpublic void removeLostHandler(FlyLostHandler handler)
handler - the lost handler to removepublic void flyRepReply(FlyServerRep rep)
public void issueRequest()
public void start()
public void terminate()