org.sdnplatform.sync.client
Class SyncClientBase

java.lang.Object
  extended by org.sdnplatform.sync.client.SyncClientBase
Direct Known Subclasses:
BootstrapTool, SyncClient

public abstract class SyncClientBase
extends java.lang.Object

Base class for implementing command-line tools that interact with the sync store

Author:
readams

Nested Class Summary
protected static class SyncClientBase.SyncClientBaseSettings
          Command-line settings for base sync client
 
Field Summary
protected  java.io.PrintStream err
          Stream to use for errors
protected  java.io.PrintStream out
          Stream to use for output
protected  SyncClientBase.SyncClientBaseSettings settings
          Command-line settings
protected  RemoteSyncManager syncManager
          Remote sync manager provides connection to remote store
 
Constructor Summary
SyncClientBase(SyncClientBase.SyncClientBaseSettings settings)
           
 
Method Summary
protected  void cleanup()
           
protected  void connect()
          Set up the remote sync manager and prepare for requests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

syncManager

protected RemoteSyncManager syncManager
Remote sync manager provides connection to remote store


settings

protected SyncClientBase.SyncClientBaseSettings settings
Command-line settings


out

protected java.io.PrintStream out
Stream to use for output


err

protected java.io.PrintStream err
Stream to use for errors

Constructor Detail

SyncClientBase

public SyncClientBase(SyncClientBase.SyncClientBaseSettings settings)
Method Detail

connect

protected void connect()
                throws java.lang.Exception
Set up the remote sync manager and prepare for requests

Throws:
java.lang.Exception

cleanup

protected void cleanup()
                throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException