com.ebasetech.xi.api
Class SnapshotQuery

java.lang.Object
  extended by com.ebasetech.xi.api.SnapshotQuery

public class SnapshotQuery
extends java.lang.Object

A Snapshot query is used to filter snapshots based on the filter information supplied. Snapshots can be filtered by supplying the following:

If no expiry date is supplied for the query, only unexpired snapshots will be included within the results.

Further documentation.

Since:
4.4
See Also:
SnapshotManager.getSnapshots(SnapshotQuery)

Constructor Summary
SnapshotQuery()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getFields()
          Returns a list of snapshot fields used to filter a snapshot.
 java.util.Date getSearchCreatedDateFrom()
          Returns query from creation date.
 java.util.Date getSearchCreatedDateTo()
          Returns query to creation date
 java.util.Date getSearchExpiryDateFrom()
          Returns query from expiry date.
 java.util.Date getSearchExpiryDateTo()
          Returns query to expiry date.
 java.lang.String getSnapshotId()
          Returns the snapshot id.
 void setFields(java.util.Map<java.lang.String,java.lang.String> snapshotFields)
          Sets additional information to filter snapshots.
 void setSearchCreatedDateFrom(java.util.Date date)
          Query snapshots created starting from this date, used in conjunction with setSearchCreatedDateTo(Date) to search between two dates.
 void setSearchCreatedDateTo(java.util.Date date)
          Query snapshots created up until this date, used in conjunction with setSearchCreatedDateFrom(Date) to search between two dates.
 void setSearchExpiryDateFrom(java.util.Date date)
          Query snapshots which expire starting from this date, used in conjunction with setSearchExpiryDateTo(Date) to search between two dates.
 void setSearchExpiryDateTo(java.util.Date date)
          Query snapshots which expire up until this date, used in conjunction with setSearchExpiryDateFrom(Date) to search between two dates.
 void setSnapshotId(java.lang.String snapshotId)
          Snapshot unique identifier
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotQuery

public SnapshotQuery()
Method Detail

setSnapshotId

public void setSnapshotId(java.lang.String snapshotId)
Snapshot unique identifier

Further documentation.

Since:
4.4

getSnapshotId

public java.lang.String getSnapshotId()
Returns the snapshot id. null if not required.

Further documentation.

Since:
4.4

setSearchCreatedDateFrom

public void setSearchCreatedDateFrom(java.util.Date date)
Query snapshots created starting from this date, used in conjunction with setSearchCreatedDateTo(Date) to search between two dates.

Further documentation.

Since:
4.4

setSearchCreatedDateTo

public void setSearchCreatedDateTo(java.util.Date date)
Query snapshots created up until this date, used in conjunction with setSearchCreatedDateFrom(Date) to search between two dates.

Further documentation.

Since:
4.4

getSearchCreatedDateFrom

public java.util.Date getSearchCreatedDateFrom()
Returns query from creation date.

Further documentation.

Since:
4.4
See Also:
setSearchCreatedDateFrom(Date)

getSearchCreatedDateTo

public java.util.Date getSearchCreatedDateTo()
Returns query to creation date

Further documentation.

Since:
4.4
See Also:
setSearchCreatedDateTo(Date)

setSearchExpiryDateFrom

public void setSearchExpiryDateFrom(java.util.Date date)
Query snapshots which expire starting from this date, used in conjunction with setSearchExpiryDateTo(Date) to search between two dates.

Further documentation.

Since:
4.4

setSearchExpiryDateTo

public void setSearchExpiryDateTo(java.util.Date date)
Query snapshots which expire up until this date, used in conjunction with setSearchExpiryDateFrom(Date) to search between two dates.

Further documentation.

Since:
4.4

getSearchExpiryDateFrom

public java.util.Date getSearchExpiryDateFrom()
Returns query from expiry date.

Further documentation.

Since:
4.4
See Also:
setSearchExpiryDateFrom(Date)

getSearchExpiryDateTo

public java.util.Date getSearchExpiryDateTo()
Returns query to expiry date.

Further documentation.

Since:
4.4
See Also:
setSearchExpiryDateTo(Date)

setFields

public void setFields(java.util.Map<java.lang.String,java.lang.String> snapshotFields)
Sets additional information to filter snapshots. This could be a application identifier, user name etc...

Further documentation.

Parameters:
snapshotFields - - key value pairs used to filter a snapshot.
Since:
4.4
See Also:
SnapshotManager.getSnapshots(SnapshotQuery)

getFields

public java.util.Map<java.lang.String,java.lang.String> getFields()
Returns a list of snapshot fields used to filter a snapshot.

Further documentation.