|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.discovery.DiscoveryServiceInterface
public final class DiscoveryServiceInterface
Provides a pure interface object that permits interaction with the actual Discovery Service implementation without giving access to the real object.
| Field Summary |
|---|
| Fields inherited from interface net.jxta.discovery.DiscoveryService |
|---|
ADV, DEFAULT_EXPIRATION, DEFAULT_LIFETIME, GROUP, INFINITE_LIFETIME, NO_EXPIRATION, PEER |
| Fields inherited from interface net.jxta.platform.Module |
|---|
START_AGAIN_PROGRESS, START_AGAIN_STALLED, START_OK |
| Constructor Summary | |
|---|---|
DiscoveryServiceInterface(DiscoveryServiceImpl theRealThing)
Only authorized constructor |
|
| Method Summary | |
|---|---|
void |
addDiscoveryListener(DiscoveryListener listener)
|
void |
flushAdvertisement(Advertisement adv)
|
void |
flushAdvertisements(String id,
int type)
|
long |
getAdvExpirationTime(Advertisement adv)
|
long |
getAdvExpirationTime(ID id,
int type)
|
long |
getAdvLifeTime(Advertisement adv)
|
long |
getAdvLifeTime(ID id,
int type)
|
Advertisement |
getImplAdvertisement()
|
Service |
getInterface()
|
Enumeration |
getLocalAdvertisements(int type,
String attribute,
String value)
|
int |
getRemoteAdvertisements(String peer,
int type,
String attribute,
String value,
int threshold)
|
int |
getRemoteAdvertisements(String peer,
int type,
String attribute,
String value,
int threshold,
DiscoveryListener listener)
|
void |
init(PeerGroup pg,
ID assignedID,
Advertisement impl)
FIXME: This is meaningless for the interface object; it is there only to satisfy the requirements of the interface that we implement. |
void |
publish(Advertisement adv)
|
void |
publish(Advertisement adv,
int type)
|
void |
publish(Advertisement adv,
int type,
long lifetime,
long lifetimeForOthers)
|
void |
publish(Advertisement adv,
long lifetime,
long lifetimeForOthers)
|
void |
remotePublish(Advertisement adv)
|
void |
remotePublish(Advertisement adv,
int type)
|
void |
remotePublish(Advertisement adv,
int type,
long lifetime)
|
void |
remotePublish(Advertisement adv,
long lifetime)
|
void |
remotePublish(String peerid,
Advertisement adv)
|
void |
remotePublish(String peerid,
Advertisement adv,
int type)
|
void |
remotePublish(String peerid,
Advertisement adv,
int type,
long lifetime)
|
void |
remotePublish(String peerid,
Advertisement adv,
long lifetime)
|
boolean |
removeDiscoveryListener(DiscoveryListener listener)
|
int |
startApp(String[] arg)
This is here for temporary class hierarchy reasons. |
void |
stopApp()
This is here for temporary class hierarchy reasons. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DiscoveryServiceInterface(DiscoveryServiceImpl theRealThing)
theRealThing - The actual discovery implementation| Method Detail |
|---|
public Service getInterface()
getInterface in interface Servicepublic Advertisement getImplAdvertisement()
getImplAdvertisement in interface Service
public void init(PeerGroup pg,
ID assignedID,
Advertisement impl)
init in interface Modulepublic int startApp(String[] arg)
startApp in interface Modulepublic void stopApp()
stopApp in interface Module
public int getRemoteAdvertisements(String peer,
int type,
String attribute,
String value,
int threshold)
getRemoteAdvertisements in interface DiscoveryService
public int getRemoteAdvertisements(String peer,
int type,
String attribute,
String value,
int threshold,
DiscoveryListener listener)
getRemoteAdvertisements in interface DiscoveryService
public Enumeration getLocalAdvertisements(int type,
String attribute,
String value)
throws IOException
getLocalAdvertisements in interface DiscoveryServiceIOException
public void flushAdvertisement(Advertisement adv)
throws IOException
flushAdvertisement in interface DiscoveryServiceIOException
public void flushAdvertisements(String id,
int type)
throws IOException
flushAdvertisements in interface DiscoveryServiceIOException
public long getAdvExpirationTime(ID id,
int type)
getAdvExpirationTime in interface DiscoveryService
public long getAdvLifeTime(ID id,
int type)
getAdvLifeTime in interface DiscoveryServicepublic long getAdvExpirationTime(Advertisement adv)
getAdvExpirationTime in interface DiscoveryServicepublic long getAdvLifeTime(Advertisement adv)
getAdvLifeTime in interface DiscoveryService
public void publish(Advertisement adv,
int type)
throws IOException
publish in interface DiscoveryServiceIOException
public void publish(Advertisement adv)
throws IOException
publish in interface DiscoveryServiceIOException
public void publish(Advertisement adv,
int type,
long lifetime,
long lifetimeForOthers)
throws IOException
publish in interface DiscoveryServiceIOException
public void publish(Advertisement adv,
long lifetime,
long lifetimeForOthers)
throws IOException
publish in interface DiscoveryServiceIOException
public void remotePublish(Advertisement adv,
int type)
remotePublish in interface DiscoveryServicepublic void remotePublish(Advertisement adv)
remotePublish in interface DiscoveryService
public void remotePublish(Advertisement adv,
int type,
long lifetime)
remotePublish in interface DiscoveryService
public void remotePublish(Advertisement adv,
long lifetime)
remotePublish in interface DiscoveryService
public void remotePublish(String peerid,
Advertisement adv,
int type)
remotePublish in interface DiscoveryService
public void remotePublish(String peerid,
Advertisement adv)
remotePublish in interface DiscoveryService
public void remotePublish(String peerid,
Advertisement adv,
int type,
long lifetime)
remotePublish in interface DiscoveryService
public void remotePublish(String peerid,
Advertisement adv,
long lifetime)
remotePublish in interface DiscoveryServicepublic void addDiscoveryListener(DiscoveryListener listener)
addDiscoveryListener in interface DiscoveryServicepublic boolean removeDiscoveryListener(DiscoveryListener listener)
removeDiscoveryListener in interface DiscoveryService
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||