|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface JXTAPlatform
JXTAプラットフォームのインタフェース定義
メソッドの概要 | |
---|---|
void |
clearCache()
キャッシュをクリアする |
net.jxta.document.Advertisement[] |
getAdvertisements(JXTAPlatformSearchCondition searchCondition)
ローカルにキャッシュされているアドバタイズメントを取得する |
net.jxta.platform.NetworkManager |
getNetworkManager()
NetworkManagerを取得する。 |
net.jxta.peergroup.PeerGroup |
getPeerGroup()
現在動作しているピアグループを取得する |
net.jxta.peer.PeerID |
getPeerID()
ピアを一意に識別するIDを取得する |
boolean |
isRdv()
ランデブーかどうかを取得する |
void |
localPublish(net.jxta.document.Advertisement adv)
自分宛にアドバタイズメント公開 |
void |
localPublish(net.jxta.document.Advertisement adv,
long lifetimeMillis,
long exirationMillis)
自分宛にアドバタイズメント公開 |
void |
peers_r()
アドバタイズメントを再探索する。 |
void |
publish(net.jxta.document.Advertisement advertisement)
ネットワーク上にアドバタイズメントを公開する。 |
void |
publish(net.jxta.document.Advertisement advertisement,
long lifetimeMillis,
long exirationMillis)
ネットワーク上にアドバタイズメントを公開する。 |
void |
rdvstatus(boolean verbose)
ランデブー情報を表示する |
void |
searchAdvertisements(JXTAPlatformSearchCondition searchCondition)
ネットワーク上でアドバタイズメントを検索する。 |
void |
showStatus(PrintStream stream,
boolean verbose)
状態を表示する |
void |
shutdown()
JXTAプラットフォームを停止する |
void |
start(String sourceGridId,
boolean hosted,
Collection<URL> seedUrls,
net.jxta.discovery.DiscoveryListener discoveryListener)
JXTAプラットフォームを起動する。 |
メソッドの詳細 |
---|
net.jxta.platform.NetworkManager getNetworkManager()
void start(String sourceGridId, boolean hosted, Collection<URL> seedUrls, net.jxta.discovery.DiscoveryListener discoveryListener) throws JXTAPlatformException
gridId
- このノードのグリッドIDhosted
- ノードをホストしているかどうか(していればRDV、していなければEDGEとして起動する)seedUrls
- シードURLdiscoveryListener
- リモートアドバタイズメントのリスナ
JXTAPlatformException
void publish(net.jxta.document.Advertisement advertisement) throws JXTAPlatformException
advertisement
-
JXTAPlatformException
void publish(net.jxta.document.Advertisement advertisement, long lifetimeMillis, long exirationMillis) throws JXTAPlatformException
advertisement
- lifetimeMillis
- 有効期間(ミリ秒)
JXTAPlatformException
void localPublish(net.jxta.document.Advertisement adv) throws JXTAPlatformException
stream
- adv アドバタイズメント
JXTAPlatformException
void localPublish(net.jxta.document.Advertisement adv, long lifetimeMillis, long exirationMillis) throws JXTAPlatformException
stream
- adv アドバタイズメントlifetimeMillis
- 有効期間(ミリ秒)
JXTAPlatformException
void searchAdvertisements(JXTAPlatformSearchCondition searchCondition) throws JXTAPlatformException
searchCondition
-
JXTAPlatformException
net.jxta.document.Advertisement[] getAdvertisements(JXTAPlatformSearchCondition searchCondition) throws JXTAPlatformException
searchCondition
- 検索条件
JXTAPlatformException
void shutdown()
net.jxta.peer.PeerID getPeerID()
void clearCache()
void peers_r()
void rdvstatus(boolean verbose)
verbose
- 詳細な情報を表示するかどうかvoid showStatus(PrintStream stream, boolean verbose)
stream
- 表示先のストリームverbose
- 冗長表示するかどうかnet.jxta.peergroup.PeerGroup getPeerGroup()
boolean isRdv()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |