kaos.policy.guard
Interface GuardSynchronization

All Known Implementing Classes:
CorbaAgentDirectoryServiceProxy, CougaarAgentDirectoryServiceProxy, GridAgentDirectoryServiceProxy, GridDirectoryServicePolicyCert, KAoSAgentDirectoryServiceProxy, KAoSDirectoryService, TCPAgentDirectoryServiceProxy

public interface GuardSynchronization

This interface defines a method implemented by KAoS Directory Service allowing for synchronization of guard databases anc caches. $Revision: 1.1 $


Method Summary
 void instancesSetSynchronizationRequest(java.util.List myCurrentInstancesClassesURL, java.util.List myCurrentInstancesSetsTimeStamps)
          Send a list of the current classes for which instances set are stored in the Guard and associated with them timestamps in the second list.
 boolean isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp)
          Check with DS if synchronization is needed by providing the timstamp of the last update.
 void policiesSynchronizationRequest(java.util.List myCurrentPoliciesIds, java.util.List myCurrentPoliciesTimeStamps)
          Send a list of the current policies ids and associated with them timestamps in the second list.
 void subclassesSetSynchronizationRequest(java.util.List myCurrentSubclassesClassesURL, java.util.List myCurrentSubclassesSetsTimeStamps)
          Send a list of the current classes for which subclasses set are stored in the Guard and associated with them timestamps in the second list.
 void subpropertiesSetSynchronizationRequest(java.util.List myCurrentSubpropertiesPropertyURL, java.util.List myCurrentSubpropertiesSetsTimeStamps)
          Send a list of the current properties for which subproperties set are stored in the Guard and associated with them timestamps in the second list.
 void superclassesSetSynchronizationRequest(java.util.List myCurrentSuperclassesClassesURL, java.util.List myCurrentSuperclassesSetsTimeStamps)
          Send a list of the current classes for which superclasses set are stored in the Guard and associated with them timestamps in the second list.
 void superpropertiesSetSynchronizationRequest(java.util.List myCurrentSuperpropertiesPropertyURL, java.util.List myCurrentSuperpropertiesSetsTimeStamps)
          Send a list of the current properties for which superproperties set are stored in the Guard and associated with them timestamps in the second list.
 

Method Detail

policiesSynchronizationRequest

void policiesSynchronizationRequest(java.util.List myCurrentPoliciesIds,
                                    java.util.List myCurrentPoliciesTimeStamps)
                                    throws DirectoryFailure
Send a list of the current policies ids and associated with them timestamps in the second list. This should allow DS to determine if an update is needed.

Parameters:
myCurrentPoliciesIds - The List of the current policies ids.
myCurrentPoliciesTimeStamps - The List of the current policies timestamps.
Throws:
DirectoryFailure

instancesSetSynchronizationRequest

void instancesSetSynchronizationRequest(java.util.List myCurrentInstancesClassesURL,
                                        java.util.List myCurrentInstancesSetsTimeStamps)
                                        throws DirectoryFailure
Send a list of the current classes for which instances set are stored in the Guard and associated with them timestamps in the second list. This should allow DS to determine if an update is needed.

Parameters:
myCurrentInstancesClassesURL - The List of the current classes for which instances set are stored in the Guard identified by URLs.
myCurrentInstancesSetsTimeStamps - The List of the current intances set timestamps.
Throws:
DirectoryFailure

subclassesSetSynchronizationRequest

void subclassesSetSynchronizationRequest(java.util.List myCurrentSubclassesClassesURL,
                                         java.util.List myCurrentSubclassesSetsTimeStamps)
                                         throws DirectoryFailure
Send a list of the current classes for which subclasses set are stored in the Guard and associated with them timestamps in the second list. This should allow DS to determine if an update is needed.

Parameters:
myCurrentSubclassesClassesURL - The List of the current classes for which subclasses set are stored in the Guard identified by URLs.
myCurrentSubclassesSetsTimeStamps - The List of the current subclasses set timestamps.
Throws:
DirectoryFailure

superclassesSetSynchronizationRequest

void superclassesSetSynchronizationRequest(java.util.List myCurrentSuperclassesClassesURL,
                                           java.util.List myCurrentSuperclassesSetsTimeStamps)
                                           throws DirectoryFailure
Send a list of the current classes for which superclasses set are stored in the Guard and associated with them timestamps in the second list. This should allow DS to determine if an update is needed.

Parameters:
myCurrentSuperclassesClassesURL - The List of the current classes for which superclasses set are stored in the Guard identified by URLs.
myCurrentSuperclassesSetsTimeStamps - The List of the current superclasses set timestamps.
Throws:
DirectoryFailure

subpropertiesSetSynchronizationRequest

void subpropertiesSetSynchronizationRequest(java.util.List myCurrentSubpropertiesPropertyURL,
                                            java.util.List myCurrentSubpropertiesSetsTimeStamps)
                                            throws DirectoryFailure
Send a list of the current properties for which subproperties set are stored in the Guard and associated with them timestamps in the second list. This should allow DS to determine if an update is needed.

Parameters:
myCurrentSubpropertiesPropertyURL - The List of the current properties for which subproperties set are stored in the Guard identified by URLs.
myCurrentSubpropertiesSetsTimeStamps - The List of the current subproperties set timestamps.
Throws:
DirectoryFailure

superpropertiesSetSynchronizationRequest

void superpropertiesSetSynchronizationRequest(java.util.List myCurrentSuperpropertiesPropertyURL,
                                              java.util.List myCurrentSuperpropertiesSetsTimeStamps)
                                              throws DirectoryFailure
Send a list of the current properties for which superproperties set are stored in the Guard and associated with them timestamps in the second list. This should allow DS to determine if an update is needed.

Parameters:
myCurrentSuperpropertiesPropertyURL - The List of the current properties for which superproperties set are stored in the Guard identified by URLs.
myCurrentSuperpropertiesSetsTimeStamps - The List of the current superproperties set timestamps.
Throws:
DirectoryFailure

isSynchronizationNeeded

boolean isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp)
                                throws DirectoryFailure
Check with DS if synchronization is needed by providing the timstamp of the last update.

Parameters:
myLastUpdateTimeStamp - The timestamp of the last update
Throws:
DirectoryFailure