|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.shredzone.repowatch.sync
Class DatabaseLocation
java.lang.Objectorg.shredzone.repowatch.sync.DatabaseLocation
public class DatabaseLocation
- extends Object
Contains all information about a repository database and it's location.
- Version:
- $Revision: 317 $
| Constructor Summary | |
|---|---|
DatabaseLocation()
|
|
| Method Summary | |
|---|---|
String |
getChecksum()
Gets the checksum of the database. |
String |
getChecksumType()
Gets the checksum type ("sha") |
String |
getLocation()
Gets the database location. |
long |
getTimestamp()
Gets the timestamp of the last modification (milliseconds since epoch). |
Date |
getTimestampAsDate()
Gets a Date representation of getTimestamp(). |
String |
getType()
Gets the database type ("primary", "filelists", "other", ...) |
boolean |
isCompressed()
Returns true if the database XML file is gz compressed,
false if it's plaintext. |
void |
setChecksum(String checksum)
|
void |
setChecksumType(String checksumType)
|
void |
setCompressed(boolean compressed)
|
void |
setLocation(String location)
|
void |
setTimestamp(long timestamp)
|
void |
setType(String type)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DatabaseLocation
public DatabaseLocation()
| Method Detail |
|---|
getType
public String getType()
- Gets the database type ("primary", "filelists", "other", ...)
- Returns:
- Database type
setType
public void setType(String type)
getLocation
public String getLocation()
- Gets the database location. This is a relative URL to the repository
base URL (e.g. "repodata/primary.xml.gz").
- Returns:
- Database location
setLocation
public void setLocation(String location)
getChecksum
public String getChecksum()
- Gets the checksum of the database.
- Returns:
- Checksum
setChecksum
public void setChecksum(String checksum)
getChecksumType
public String getChecksumType()
- Gets the checksum type ("sha")
- Returns:
- Checksum type
setChecksumType
public void setChecksumType(String checksumType)
getTimestamp
public long getTimestamp()
- Gets the timestamp of the last modification (milliseconds since epoch).
- Returns:
- Timestamp
setTimestamp
public void setTimestamp(long timestamp)
getTimestampAsDate
public Date getTimestampAsDate()
- Gets a
Daterepresentation ofgetTimestamp().- Returns:
- Timestamp as
Date
isCompressed
public boolean isCompressed()
- Returns
trueif the database XML file is gz compressed, false if it's plaintext.- Returns:
true: gz compressed database
setCompressed
public void setCompressed(boolean compressed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
org.shredzone.repowatch.sync.DatabaseLocation