org.jumpmind.symmetric.fs.client.connector
Class AbstractTransportConnector

java.lang.Object
  extended by org.jumpmind.symmetric.fs.client.connector.AbstractTransportConnector
All Implemented Interfaces:
ITransportConnector
Direct Known Subclasses:
HttpTransportConnector, LocalTransportConnector

public class AbstractTransportConnector
extends Object
implements ITransportConnector


Field Summary
protected  org.slf4j.Logger log
           
protected  Node node
           
protected  IPersisterServices persisterSerivces
           
protected  TypedProperties properties
           
 
Constructor Summary
AbstractTransportConnector()
           
 
Method Summary
 void close()
           
 void connect(SyncStatus syncStatus)
          Validate the the destination is available.
 void destroy()
           
 void init(Node serverNode, IPersisterServices persisterServices, TypedProperties properties)
          Initialize the connector.
 void prepare(SyncStatus syncStatus)
          Update the sync status with the list of files to receive.
 void receive(SyncStatus syncStatus, DirectoryChangeTracker clientDirectoryChangeTracker)
           
 void send(SyncStatus syncStatus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log

node

protected Node node

persisterSerivces

protected IPersisterServices persisterSerivces

properties

protected TypedProperties properties
Constructor Detail

AbstractTransportConnector

public AbstractTransportConnector()
Method Detail

init

public void init(Node serverNode,
                 IPersisterServices persisterServices,
                 TypedProperties properties)
Description copied from interface: ITransportConnector
Initialize the connector. If created from the TransportConnectorFactory then this method is called by the factory.

Specified by:
init in interface ITransportConnector

connect

public void connect(SyncStatus syncStatus)
Description copied from interface: ITransportConnector
Validate the the destination is available. Initialize connections.

Specified by:
connect in interface ITransportConnector
Parameters:
syncStatus - TODO

prepare

public void prepare(SyncStatus syncStatus)
Description copied from interface: ITransportConnector
Update the sync status with the list of files to receive.

Specified by:
prepare in interface ITransportConnector

send

public void send(SyncStatus syncStatus)
Specified by:
send in interface ITransportConnector

receive

public void receive(SyncStatus syncStatus,
                    DirectoryChangeTracker clientDirectoryChangeTracker)
Specified by:
receive in interface ITransportConnector

close

public void close()
Specified by:
close in interface ITransportConnector

destroy

public void destroy()
Specified by:
destroy in interface ITransportConnector


Copyright © 2012 JumpMind, Inc.. All Rights Reserved.