public final class LastCrawlingDateHolder extends Object
修飾子とタイプ | メソッドと説明 |
---|---|
static LastCrawlingDateHolder |
getHolder(String type)
与えられたコンテンツタイプを保持したホルダーを取得します。
|
static LastCrawlingDateHolder |
getHolder(String type,
DataStore datastore)
与えられたコンテンツタイプとデータストアを保持したホルダーを取得します。
|
static LastCrawlingDateHolder |
getHolder(String type,
String groupName)
与えられたコンテンツタイプおよびグループ名を保持したホルダーを取得します。
|
static LastCrawlingDateHolder |
getHolder(String type,
String groupName,
DataStore datastore)
与えられたコンテンツタイプとデータストアを保持したホルダーを取得します。
|
Date |
getLastCrawlingDate()
最終クロール日時を取得します。
|
String |
getType()
ホルダーのコンテンツタイプを返します。
|
void |
updateLastCrawlingDate(Date date)
与えられた最終クロール日時を保存します。
|
public static LastCrawlingDateHolder getHolder(String type)
type
- コンテンツタイプIllegalArgumentException
- 与えられたコンテンツタイプが null または空文字である場合IllegalStateException
- デフォルトのデータストアの取得に失敗した場合public static LastCrawlingDateHolder getHolder(String type, String groupName)
type
- コンテンツタイプgroupName
- グループ名IllegalArgumentException
- 与えられたコンテンツタイプが null または空文字である場合IllegalStateException
- デフォルトのデータストアの取得に失敗した場合public static LastCrawlingDateHolder getHolder(String type, DataStore datastore)
type
- コンテンツタイプdatastore
- データストアIllegalArgumentException
- 与えられたコンテンツタイプが null または空文字である場合NullPointerException
- 与えられたデータストアが null である場合public static LastCrawlingDateHolder getHolder(String type, String groupName, DataStore datastore)
type
- コンテンツタイプgroupName
- グループ名datastore
- データストアIllegalArgumentException
- 与えられたコンテンツタイプが null または空文字である場合NullPointerException
- 与えられたデータストアが null である場合public String getType()
public Date getLastCrawlingDate() throws ContentsSearchException
new Date(0L)
を返します。ContentsSearchException
- 最終クロール日時の取得に失敗した場合public void updateLastCrawlingDate(Date date) throws ContentsSearchException
date
- 最終クロール日時ContentsSearchException
- 最終クロール日時の保存に失敗した場合NullPointerException
- 与えられた最終クロール日時が null である場合Copyright © 2012 NTT DATA INTRAMART CORPORATION