public class XML3PrintVisitor extends AbstractXMLPrintVisitor
Modifier and Type | Class and Description |
---|---|
private static class |
XML3PrintVisitor.DirectoryTypes |
Modifier and Type | Field and Description |
---|---|
private boolean |
isFSWritten
Ensure that Directory information is written only once.
|
private Directory[] |
mDirectory
Keep track of which directories are found in the site.
|
private List<FileServer>[] |
mFileServer
Keep track of which file servers are listed in the specified directories.
|
private Directory.TYPE |
mLastDirectoryTraversed
Track which type of directory was traversed last.
|
static String |
SCHEMA_LOCATION
The "not-so-official" location URL of the DAX schema definition.
|
static String |
SCHEMA_NAMESPACE
The "official" namespace URI of the site catalog schema.
|
static String |
SCHEMA_VERSION
The version to report.
|
mCurrentIndentIndex, mNewLine, mWriter
Constructor and Description |
---|
XML3PrintVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
depart(Connection c)
Depart the connection object
|
void |
depart(Directory directory)
Depart the shared directory
|
void |
depart(FileServer server)
Depart the Directory object
|
void |
depart(GridGateway entry)
Depart the GridGateway object
|
void |
depart(ReplicaCatalog catalog)
Depart the ReplicaCatalog object
|
void |
depart(SiteCatalogEntry entry)
Depart the Site Catalog Entry object.
|
void |
depart(SiteStore store)
Depart the Site Store object.
|
void |
visit(Connection c)
Visit the connection object
|
void |
visit(Directory directory)
Visit the directory object
|
void |
visit(FileServer server)
Visit FileServer site data object
|
void |
visit(GridGateway gateway)
Visit the GridGateway object
|
void |
visit(ReplicaCatalog catalog)
Visit the ReplicaCatalog object
|
void |
visit(SiteCatalogEntry entry)
Visit the Site CatalogEntry object
|
void |
visit(SiteStore store)
Visit the SiteStore object
|
private void |
writeFileServer(Directory directory,
XML3PrintVisitor.DirectoryTypes type) |
private void |
writeFS() |
private void |
writeHeadFS() |
private void |
writeHeadFSScratch() |
private void |
writeHeadFSStorage() |
private void |
writeWorkerFS() |
private void |
writeWorkerFSScratch() |
closeElement, decrementIndentIndex, depart, getCurrentIndent, getNextIndent, incrementIndentIndex, initialize, visit, writeAttribute, writeAttribute
public static final String SCHEMA_NAMESPACE
public static final String SCHEMA_LOCATION
public static final String SCHEMA_VERSION
private Directory[] mDirectory
private List<FileServer>[] mFileServer
private Directory.TYPE mLastDirectoryTraversed
private boolean isFSWritten
public void visit(SiteStore store) throws IOException
store
- the site storeIOException
- in case of error while writing to underlying streampublic void depart(SiteStore store) throws IOException
store
- the SiteStoreIOException
- in case of error while writing to underlying streampublic void visit(SiteCatalogEntry entry) throws IOException
entry
- the site catalog entryIOException
- in case of problem of writingpublic void depart(SiteCatalogEntry entry) throws IOException
entry
- the site catalog entryIOException
- in case of error while writing to underlying streamprivate void writeFS() throws IOException
IOException
private void writeHeadFS() throws IOException
IOException
private void writeHeadFSScratch() throws IOException
IOException
private void writeFileServer(Directory directory, XML3PrintVisitor.DirectoryTypes type) throws IOException
IOException
private void writeHeadFSStorage() throws IOException
IOException
private void writeWorkerFS() throws IOException
IOException
private void writeWorkerFSScratch() throws IOException
IOException
public void visit(GridGateway gateway) throws IOException
gateway
- the grid gatewayIOException
- in case of error while writing to underlying streampublic void depart(GridGateway entry) throws IOException
entry
- GridGateway objectIOException
- in case of error while writing to underlying streampublic void visit(Directory directory) throws IOException
directory
- the directoryIOException
- in case of error while writing to underlying streampublic void depart(Directory directory) throws IOException
directory
- the directoryIOException
- in case of error while writing to underlying streampublic void visit(FileServer server) throws IOException
server
- the object corresponding to the FileServerIOException
- in case of error while writing to underlying streampublic void depart(FileServer server) throws IOException
server
- the object corresponding to the FileServerIOException
- in case of error while writing to underlying streampublic void visit(ReplicaCatalog catalog) throws IOException
catalog
- the object describing the catalogIOException
- in case of error while writing to underlying streampublic void depart(ReplicaCatalog catalog) throws IOException
catalog
- the object describing the catalogIOException
- in case of error while writing to underlying streampublic void visit(Connection c) throws IOException
c
- the connection.IOException
- in case of error while writing to underlying streampublic void depart(Connection c) throws IOException
c
- the connection.IOException
- in case of error while writing to underlying stream