Package org.eclipse.emf.cdo.server
Class CDOServerImporter
- java.lang.Object
-
- org.eclipse.emf.cdo.server.CDOServerImporter
-
- Direct Known Subclasses:
CDOServerImporter.Binary
,CDOServerImporter.XML
public abstract class CDOServerImporter extends java.lang.Object
Imports the complete contents of arepository
from the output created by aexporter
into a new repository.Subtypes specify the actual exchange format.
- Since:
- 4.0
- Author:
- Eike Stepper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CDOServerImporter.Binary
Animporter
that reads and interprets XML output created by anXML exporter
.static interface
CDOServerImporter.Handler
Persists the data that has been read by aimporter
into a newrepository
.static interface
CDOServerImporter.Handler2
Persists the data that has been read by aimporter
into a newrepository
.static class
CDOServerImporter.XML
Animporter
that reads and interprets XML output created by anXML exporter
.
-
Constructor Summary
Constructors Constructor Description CDOServerImporter(IRepository repository)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBranchPath()
protected InternalRepository
getRepository()
CDOServerExporter.Statistics
getStatistics()
long
getTimeStamp()
protected abstract void
importAll(java.io.InputStream in, CDOServerImporter.Handler handler)
void
importRepository(java.io.InputStream in)
protected void
setBranchPath(java.lang.String branchPath)
protected void
setTimeStamp(long timeStamp)
-
-
-
Constructor Detail
-
CDOServerImporter
public CDOServerImporter(IRepository repository)
-
-
Method Detail
-
getBranchPath
public final java.lang.String getBranchPath()
- Since:
- 4.8
-
setBranchPath
protected final void setBranchPath(java.lang.String branchPath)
- Since:
- 4.8
-
getTimeStamp
public final long getTimeStamp()
- Since:
- 4.8
-
setTimeStamp
protected final void setTimeStamp(long timeStamp)
- Since:
- 4.8
-
getRepository
protected final InternalRepository getRepository()
-
getStatistics
public CDOServerExporter.Statistics getStatistics()
- Since:
- 4.8
-
importRepository
public void importRepository(java.io.InputStream in) throws java.lang.Exception
- Throws:
java.lang.Exception
-
importAll
protected abstract void importAll(java.io.InputStream in, CDOServerImporter.Handler handler) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-