org.ceno.tracker.cli.internal
Class CachedCenoTrackerService

java.lang.Object
  extended by org.ceno.tracker.cli.internal.CachedCenoTrackerService
All Implemented Interfaces:
ICenoTrackerService, IDeveloperResourceStatesObserver, IObserver<DeveloperResourceStates>

public class CachedCenoTrackerService
extends java.lang.Object
implements ICenoTrackerService, IDeveloperResourceStatesObserver

Since:
0.0.1
Author:
Andre Albert <andre.albert82@googlemail.com>

Constructor Summary
CachedCenoTrackerService()
           
 
Method Summary
 java.util.Collection<Developer> findConnectedDevelopers()
          
 DeveloperResourceStates findDeveloperResourceStates()
          
 DeveloperResourceStates findDeveloperResourceStatesOfResource(java.lang.String fqName)
          
 void update(DeveloperResourceStates states)
          Invoked as notify call
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedCenoTrackerService

public CachedCenoTrackerService()
Method Detail

findConnectedDevelopers

public java.util.Collection<Developer> findConnectedDevelopers()

Specified by:
findConnectedDevelopers in interface ICenoTrackerService
Returns:
developers that are currently connected to ceno

findDeveloperResourceStates

public DeveloperResourceStates findDeveloperResourceStates()

Specified by:
findDeveloperResourceStates in interface ICenoTrackerService
Returns:
currenlty opened documents maped to developers

update

public void update(DeveloperResourceStates states)
Invoked as notify call

Specified by:
update in interface IObserver<DeveloperResourceStates>

findDeveloperResourceStatesOfResource

public DeveloperResourceStates findDeveloperResourceStatesOfResource(java.lang.String fqName)

Specified by:
findDeveloperResourceStatesOfResource in interface ICenoTrackerService
Parameters:
fqName - the fully qualified of the resource to look for
Returns:
A developer-resources mapping whoese resouce consists of the fqName or null if no one has currently opened this resource