Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols
In directory sc8-pr-cvs1:/tmp/cvs-serv13477/src/java/core/org/krysalis/ruper2/protocols
Modified Files:
DefaultProtocolOperationsManager.java
ProtocolOperationsManager.java
Added Files:
IProtocolOperationsProvider.java
Removed Files:
ProtocolOperationsProvider.java
Log Message:
Consistency changes, interfaces starting with I --- retry commit.
--- NEW FILE: IProtocolOperationsProvider.java ---
/*
* Created on Aug 27, 2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.krysalis.ruper2.protocols;
import java.util.List;
import org.krysalis.ruper2.impl.ResourceUpdaterContext;
import org.krysalis.ruper2.util.select.ISelector;
/**
* @author arb_jack
*/
public interface IProtocolOperationsProvider {
// Configuration...
void init(ResourceUpdaterContext context) throws Exception ;
List getSupportedSourceProtocols();
List getSupportedDestinationProtocols();
// Work...
boolean exists(VirtualResourceLocator container) throws Exception;
List list(VirtualResourceLocator container) throws Exception;
List list(VirtualResourceLocator container, ISelector selector) throws Exception;
void copy(VirtualResourceLocator from, VirtualResourceLocator to) throws Exception;
void copy(VirtualResourceLocator from, VirtualResourceLocator to, ISelector selector) throws Exception;
// :TODO: delete/create
}
Index: DefaultProtocolOperationsManager.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/DefaultProtocolOperationsManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DefaultProtocolOperationsManager.java 29 Sep 2003 18:09:23 -0000 1.1
--- DefaultProtocolOperationsManager.java 9 Oct 2003 14:05:34 -0000 1.2
***************
*** 30,35 ****
//
try {
! ProtocolOperationsProvider provider =
! (ProtocolOperationsProvider) RelativelySafe.attemptLoad(
VFS_PROVIDER,
URL_PROVIDER);
--- 30,35 ----
//
try {
! IProtocolOperationsProvider provider =
! (IProtocolOperationsProvider) RelativelySafe.attemptLoad(
VFS_PROVIDER,
URL_PROVIDER);
Index: ProtocolOperationsManager.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/protocols/ProtocolOperationsManager.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ProtocolOperationsManager.java 2 Oct 2003 23:56:52 -0000 1.3
--- ProtocolOperationsManager.java 9 Oct 2003 14:05:35 -0000 1.4
***************
*** 21,25 ****
import org.krysalis.ruper2.util.RuperConstants;
import org.krysalis.ruper2.util.chainprocess.HandlerManager;
! import org.krysalis.ruper2.util.select.Selector;
import org.krysalis.ruper2.util.select.SelectorHandlerChain;
import org.krysalis.version.util.debug.DebugUtils;
--- 21,25 ----
import org.krysalis.ruper2.util.RuperConstants;
import org.krysalis.ruper2.util.chainprocess.HandlerManager;
! import org.krysalis.ruper2.util.select.ISelector;
import org.krysalis.ruper2.util.select.SelectorHandlerChain;
import org.krysalis.version.util.debug.DebugUtils;
***************
*** 53,57 ****
}
! public void registerProvider(ProtocolOperationsProvider p)
throws Exception {
m_providers.add(p);
--- 53,57 ----
}
! public void registerProvider(IProtocolOperationsProvider p)
throws Exception {
m_providers.add(p);
***************
*** 71,75 ****
private void registerIntoMap(
Map map,
! ProtocolOperationsProvider p,
Iterator i) {
for (; i.hasNext();) {
--- 71,75 ----
private void registerIntoMap(
Map map,
! IProtocolOperationsProvider p,
Iterator i) {
for (; i.hasNext();) {
***************
*** 118,122 ****
public List performList(
VirtualResourceLocator container,
! Selector selector)
throws Exception {
return performList(
--- 118,122 ----
public List performList(
VirtualResourceLocator container,
! ISelector selector)
throws Exception {
return performList(
***************
*** 128,133 ****
public List performList(
VirtualResourceLocator container,
! ProtocolOperationsProvider provider,
! Selector selector)
throws Exception {
Logger.getLog().debug("Perform List " + container);
--- 128,133 ----
public List performList(
VirtualResourceLocator container,
! IProtocolOperationsProvider provider,
! ISelector selector)
throws Exception {
Logger.getLog().debug("Perform List " + container);
***************
*** 159,163 ****
VirtualResourceLocator from,
VirtualResourceLocator to,
! Selector selector)
throws Exception {
--- 159,163 ----
VirtualResourceLocator from,
VirtualResourceLocator to,
! ISelector selector)
throws Exception {
***************
*** 167,171 ****
}
! ProtocolOperationsProvider determineProviderFor(
VirtualResourceLocator source,
VirtualResourceLocator destination)
--- 167,171 ----
}
! IProtocolOperationsProvider determineProviderFor(
VirtualResourceLocator source,
VirtualResourceLocator destination)
***************
*** 186,191 ****
+ destination.getProtocol());
! ProtocolOperationsProvider provider =
! (ProtocolOperationsProvider) providers.get(0);
//
--- 186,191 ----
+ destination.getProtocol());
! IProtocolOperationsProvider provider =
! (IProtocolOperationsProvider) providers.get(0);
//
***************
*** 196,200 ****
}
! ProtocolOperationsProvider determineProviderFor(VirtualResourceLocator source)
throws RuperException {
// Locate a Provider that handles both address
--- 196,200 ----
}
! IProtocolOperationsProvider determineProviderFor(VirtualResourceLocator source)
throws RuperException {
// Locate a Provider that handles both address
***************
*** 206,211 ****
"No providers for protocol : " + source.getProtocol());
! ProtocolOperationsProvider provider =
! (ProtocolOperationsProvider) providers.get(0);
//
--- 206,211 ----
"No providers for protocol : " + source.getProtocol());
! IProtocolOperationsProvider provider =
! (IProtocolOperationsProvider) providers.get(0);
//
***************
*** 250,254 ****
}
! private List processProviderList(Selector selector) throws RuperException {
List listOfProviders = null;
--- 250,254 ----
}
! private List processProviderList(ISelector selector) throws RuperException {
List listOfProviders = null;
***************
*** 265,269 ****
Map map,
String protocol,
! ProtocolOperationsProvider p) {
List providers = (List) map.get(protocol);
if (null == providers) {
--- 265,269 ----
Map map,
String protocol,
! IProtocolOperationsProvider p) {
List providers = (List) map.get(protocol);
if (null == providers) {
***************
*** 314,319 ****
for (Iterator ii = providers.iterator(); ii.hasNext();) {
! ProtocolOperationsProvider p =
! (ProtocolOperationsProvider) ii.next();
out.print(indent);
out.print("Key: \'" + key + "\' -> ");
--- 314,319 ----
for (Iterator ii = providers.iterator(); ii.hasNext();) {
! IProtocolOperationsProvider p =
! (IProtocolOperationsProvider) ii.next();
out.print(indent);
out.print("Key: \'" + key + "\' -> ");
--- ProtocolOperationsProvider.java DELETED ---
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.