|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.dataops.archivesystem.fileimpl.FileArchiveSystem
Supported API: false
Extendable: false
Field Summary | |
private WTArchiveSystemQuery |
arQuery
|
private static String |
CLASSNAME
|
private boolean |
connected
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String |
fileArchiveVol
|
private static String |
indexFileName
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
verbose
|
Constructor Summary | |
FileArchiveSystem()
|
Method Summary | |
void |
addClause(String name,
String val,
WTArchiveSystemInClauseOper oper)
Supported API: false |
void |
addOperator(WTArchiveSystemBetClauseOper op)
Supported API: false |
void |
addType(String typeName)
Supported API: false |
private void |
checkFile(String localPath,
boolean checkFile,
boolean checkWrite)
|
private void |
checkInFile(File checkVol,
boolean checkWrite)
|
boolean |
connect()
Supported API: false |
ArchiveResident |
createObject(File file,
String objName,
String aVol,
String source,
long retentionPeriod)
Supported API: false |
ArchiveResident |
createObject(InputStream is,
String objName,
String aVol,
String source,
long retentionPeriod)
Supported API: false |
ArchiveResident |
createObject(String localPath,
String objName,
String aVol,
String source,
long retentionPeriod)
Supported API: false |
void |
disconnect()
Supported API: false |
ArchiveResident[] |
executeQuery()
Supported API: false |
void |
finalizeQuery()
Supported API: false |
WTArchiveVolume[] |
getAllVolumes()
Supported API: false |
private boolean |
isPartOf(String source,
String[] sources)
|
void |
newQuery(String[] aVols,
String[] sources)
Supported API: false |
ArchiveResident[] |
queryObject(Map criteria,
String[] aVols,
String[] sources)
Supported API: false |
ArchiveResident[] |
queryObject(Map criteria,
String[] aVols,
String[] sources,
WTArchiveSystemInClauseOper operInClause,
WTArchiveSystemBetClauseOper operBetClause)
Supported API: false |
ArchiveResident[] |
queryObject(String[] queryTypes,
String queryString,
String[] aVols,
String[] sources)
Supported API: false |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(FileArchiveSystem thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
removeObject(ArchiveResident arObj)
Supported API: false |
boolean |
removeObject(String objId,
String aVol)
Supported API: false |
private void |
reset()
|
boolean |
retrieveObject(ArchiveResident arObj,
File file)
Supported API: false |
boolean |
retrieveObject(ArchiveResident arObj,
OutputStream os)
Supported API: false |
boolean |
retrieveObject(ArchiveResident arObj,
String localPath)
Supported API: false |
boolean |
retrieveObject(String objName,
String aVol,
File file)
Supported API: false |
boolean |
retrieveObject(String objName,
String aVol,
OutputStream os)
Supported API: false |
boolean |
retrieveObject(String objName,
String aVol,
String localPath)
Supported API: false |
String |
setRetentionPeriod(String aVol,
String[] objName,
Date futureDate,
String source)
Supported API: false |
String |
setRetentionPeriod(String aVol,
String[] objName,
long period,
String source)
Supported API: false |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
private static void |
writeFile(InputStream is,
String fileName,
boolean append)
|
private static void |
writeLineToIndex(String dir,
String line)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static boolean verbose
private static String indexFileName
private boolean connected
private String fileArchiveVol
private WTArchiveSystemQuery arQuery
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public FileArchiveSystem()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(FileArchiveSystem thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public boolean connect() throws WTArchiveSystemException
connect
in interface WTArchiveSystem
WTArchiveSystemException
public void disconnect() throws WTArchiveSystemException
disconnect
in interface WTArchiveSystem
WTArchiveSystemException
public ArchiveResident createObject(String localPath, String objName, String aVol, String source, long retentionPeriod) throws WTArchiveSystemException
createObject
in interface WTArchiveSystem
localPath
- objName
- aVol
- source
- retentionPeriod
-
WTArchiveSystemException
public ArchiveResident createObject(File file, String objName, String aVol, String source, long retentionPeriod) throws WTArchiveSystemException
createObject
in interface WTArchiveSystem
file
- objName
- aVol
- source
- retentionPeriod
-
WTArchiveSystemException
public ArchiveResident createObject(InputStream is, String objName, String aVol, String source, long retentionPeriod) throws WTArchiveSystemException
createObject
in interface WTArchiveSystem
is
- objName
- aVol
- source
- retentionPeriod
-
WTArchiveSystemException
public boolean retrieveObject(String objName, String aVol, String localPath) throws WTArchiveSystemException
retrieveObject
in interface WTArchiveSystem
objName
- aVol
- localPath
-
WTArchiveSystemException
public boolean retrieveObject(String objName, String aVol, File file) throws WTArchiveSystemException
retrieveObject
in interface WTArchiveSystem
objName
- aVol
- file
-
WTArchiveSystemException
public boolean retrieveObject(String objName, String aVol, OutputStream os) throws WTArchiveSystemException
retrieveObject
in interface WTArchiveSystem
objName
- aVol
- os
-
WTArchiveSystemException
public ArchiveResident[] queryObject(Map criteria, String[] aVols, String[] sources) throws WTArchiveSystemException
queryObject
in interface WTArchiveSystem
criteria
- aVols
- sources
-
WTArchiveSystemException
public ArchiveResident[] queryObject(Map criteria, String[] aVols, String[] sources, WTArchiveSystemInClauseOper operInClause, WTArchiveSystemBetClauseOper operBetClause) throws WTArchiveSystemException
queryObject
in interface WTArchiveSystem
criteria
- aVols
- sources
- operInClause
- operBetClause
-
WTArchiveSystemException
public ArchiveResident[] queryObject(String[] queryTypes, String queryString, String[] aVols, String[] sources) throws WTArchiveSystemException
queryObject
in interface WTArchiveSystem
queryTypes
- queryString
- aVols
- sources
-
WTArchiveSystemException
public void newQuery(String[] aVols, String[] sources) throws WTArchiveSystemException
newQuery
in interface WTArchiveSystem
aVols
- sources
-
WTArchiveSystemException
public void addOperator(WTArchiveSystemBetClauseOper op) throws WTArchiveSystemException
addOperator
in interface WTArchiveSystem
op
-
WTArchiveSystemException
public void addClause(String name, String val, WTArchiveSystemInClauseOper oper) throws WTArchiveSystemException
addClause
in interface WTArchiveSystem
name
- val
- oper
-
WTArchiveSystemException
public void finalizeQuery() throws WTArchiveSystemException
finalizeQuery
in interface WTArchiveSystem
WTArchiveSystemException
public ArchiveResident[] executeQuery() throws WTArchiveSystemException
executeQuery
in interface WTArchiveSystem
WTArchiveSystemException
public String setRetentionPeriod(String aVol, String[] objName, long period, String source) throws WTArchiveSystemException
setRetentionPeriod
in interface WTArchiveSystem
aVol
- objName
- period
- source
-
WTArchiveSystemException
public String setRetentionPeriod(String aVol, String[] objName, Date futureDate, String source) throws WTArchiveSystemException
setRetentionPeriod
in interface WTArchiveSystem
aVol
- objName
- futureDate
- source
-
WTArchiveSystemException
public WTArchiveVolume[] getAllVolumes() throws WTArchiveSystemException
getAllVolumes
in interface WTArchiveSystem
WTArchiveSystemException
public boolean removeObject(String objId, String aVol) throws WTArchiveSystemException
removeObject
in interface WTArchiveSystem
objId
- aVol
-
WTArchiveSystemException
public boolean retrieveObject(ArchiveResident arObj, String localPath) throws WTArchiveSystemException
retrieveObject
in interface WTArchiveSystem
arObj
- localPath
-
WTArchiveSystemException
public boolean removeObject(ArchiveResident arObj) throws WTArchiveSystemException
removeObject
in interface WTArchiveSystem
arObj
-
WTArchiveSystemException
public boolean retrieveObject(ArchiveResident arObj, File file) throws WTArchiveSystemException
retrieveObject
in interface WTArchiveSystem
arObj
- file
-
WTArchiveSystemException
public boolean retrieveObject(ArchiveResident arObj, OutputStream os) throws WTArchiveSystemException
retrieveObject
in interface WTArchiveSystem
arObj
- os
-
WTArchiveSystemException
public void addType(String typeName) throws WTArchiveSystemException
addType
in interface WTArchiveSystem
typeName
-
WTArchiveSystemException
private static void writeLineToIndex(String dir, String line) throws WTArchiveSystemException
WTArchiveSystemException
private static void writeFile(InputStream is, String fileName, boolean append) throws IOException
IOException
private void reset()
private void checkFile(String localPath, boolean checkFile, boolean checkWrite) throws WTArchiveSystemException
WTArchiveSystemException
private void checkInFile(File checkVol, boolean checkWrite) throws WTArchiveSystemException
WTArchiveSystemException
private boolean isPartOf(String source, String[] sources)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |