sharpster.daemon.externalcommunication
Class ExternalCommunication

java.lang.Object
  |
  +--sharpster.daemon.externalcommunication.ExternalCommunication

public class ExternalCommunication
extends java.lang.Object

Class responsible for communcating with other Sharpster daemons.


Constructor Summary
ExternalCommunication(sharpster.common.Mutex globalMutex)
           
 
Method Summary
 sharpster.common.ResponseCollection addFiles(sharpster.common.FileCollection files, java.lang.String user)
          Executes a file add to a CVS of an external user.
 sharpster.common.ResponseCollection checkoutFiles(sharpster.common.FileCollection files, java.lang.String user, java.lang.String role)
          Executes a checkout from a CVS of an external user.
 void clearLocalCache()
           
 sharpster.common.ResponseCollection commitFiles(sharpster.common.FileCollection files, java.lang.String user, java.lang.String role)
          Executes a commit to a CVS of an external user.
 void createPeerGroup()
           
 java.util.LinkedList findLocalPeerServices(java.lang.String nameFilter)
           
 void initialize(sharpster.daemon.usermanagement.UserManager um, sharpster.daemon.commandmanagement.ExternalCommandManager ecm)
           
 sharpster.common.ResponseCollection removeFiles(sharpster.common.FileCollection files, java.lang.String user)
          Executes a file remove to a CVS of an external user.
 void shutdown()
           
 void start()
           
 sharpster.common.ResponseCollection updateFiles(sharpster.common.FileCollection files, java.lang.String user)
          Executes a update to a CVS of an external user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalCommunication

public ExternalCommunication(sharpster.common.Mutex globalMutex)
Method Detail

start

public void start()

shutdown

public void shutdown()

initialize

public void initialize(sharpster.daemon.usermanagement.UserManager um,
                       sharpster.daemon.commandmanagement.ExternalCommandManager ecm)

clearLocalCache

public void clearLocalCache()

createPeerGroup

public void createPeerGroup()
                     throws java.lang.Exception
java.lang.Exception

findLocalPeerServices

public java.util.LinkedList findLocalPeerServices(java.lang.String nameFilter)

checkoutFiles

public sharpster.common.ResponseCollection checkoutFiles(sharpster.common.FileCollection files,
                                                         java.lang.String user,
                                                         java.lang.String role)
Executes a checkout from a CVS of an external user.


commitFiles

public sharpster.common.ResponseCollection commitFiles(sharpster.common.FileCollection files,
                                                       java.lang.String user,
                                                       java.lang.String role)
Executes a commit to a CVS of an external user.


updateFiles

public sharpster.common.ResponseCollection updateFiles(sharpster.common.FileCollection files,
                                                       java.lang.String user)
Executes a update to a CVS of an external user.


addFiles

public sharpster.common.ResponseCollection addFiles(sharpster.common.FileCollection files,
                                                    java.lang.String user)
Executes a file add to a CVS of an external user.


removeFiles

public sharpster.common.ResponseCollection removeFiles(sharpster.common.FileCollection files,
                                                       java.lang.String user)
Executes a file remove to a CVS of an external user.