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 java.util.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 java.lang.String |
SCHEMA_LOCATION
The "not-so-official" location URL of the DAX schema definition.
|
static java.lang.String |
SCHEMA_NAMESPACE
The "official" namespace URI of the site catalog schema.
|
static java.lang.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 java.lang.String SCHEMA_NAMESPACE
public static final java.lang.String SCHEMA_LOCATION
public static final java.lang.String SCHEMA_VERSION
private Directory[] mDirectory
private java.util.List<FileServer>[] mFileServer
private Directory.TYPE mLastDirectoryTraversed
private boolean isFSWritten
public void visit(SiteStore store) throws java.io.IOException
store
- the site storejava.io.IOException
- in case of error while writing to underlying streampublic void depart(SiteStore store) throws java.io.IOException
store
- the SiteStorejava.io.IOException
- in case of error while writing to underlying streampublic void visit(SiteCatalogEntry entry) throws java.io.IOException
entry
- the site catalog entryjava.io.IOException
- in case of problem of writingpublic void depart(SiteCatalogEntry entry) throws java.io.IOException
entry
- the site catalog entryjava.io.IOException
- in case of error while writing to underlying streamprivate void writeFS() throws java.io.IOException
java.io.IOException
private void writeHeadFS() throws java.io.IOException
java.io.IOException
private void writeHeadFSScratch() throws java.io.IOException
java.io.IOException
private void writeFileServer(Directory directory, XML3PrintVisitor.DirectoryTypes type) throws java.io.IOException
java.io.IOException
private void writeHeadFSStorage() throws java.io.IOException
java.io.IOException
private void writeWorkerFS() throws java.io.IOException
java.io.IOException
private void writeWorkerFSScratch() throws java.io.IOException
java.io.IOException
public void visit(GridGateway gateway) throws java.io.IOException
gateway
- the grid gatewayjava.io.IOException
- in case of error while writing to underlying streampublic void depart(GridGateway entry) throws java.io.IOException
entry
- GridGateway objectjava.io.IOException
- in case of error while writing to underlying streampublic void visit(Directory directory) throws java.io.IOException
directory
- the directoryjava.io.IOException
- in case of error while writing to underlying streampublic void depart(Directory directory) throws java.io.IOException
directory
- the directoryjava.io.IOException
- in case of error while writing to underlying streampublic void visit(FileServer server) throws java.io.IOException
server
- the object corresponding to the FileServerjava.io.IOException
- in case of error while writing to underlying streampublic void depart(FileServer server) throws java.io.IOException
server
- the object corresponding to the FileServerjava.io.IOException
- in case of error while writing to underlying streampublic void visit(ReplicaCatalog catalog) throws java.io.IOException
catalog
- the object describing the catalogjava.io.IOException
- in case of error while writing to underlying streampublic void depart(ReplicaCatalog catalog) throws java.io.IOException
catalog
- the object describing the catalogjava.io.IOException
- in case of error while writing to underlying streampublic void visit(Connection c) throws java.io.IOException
c
- the connection.java.io.IOException
- in case of error while writing to underlying streampublic void depart(Connection c) throws java.io.IOException
c
- the connection.java.io.IOException
- in case of error while writing to underlying stream