|
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 implementationMethod Detail |
---|
public Service getInterface()
getInterface
in interface Service
public Advertisement getImplAdvertisement()
getImplAdvertisement
in interface Service
public void init(PeerGroup pg, ID assignedID, Advertisement impl)
init
in interface Module
public int startApp(String[] arg)
startApp
in interface Module
public 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 DiscoveryService
IOException
public void flushAdvertisement(Advertisement adv) throws IOException
flushAdvertisement
in interface DiscoveryService
IOException
public void flushAdvertisements(String id, int type) throws IOException
flushAdvertisements
in interface DiscoveryService
IOException
public long getAdvExpirationTime(ID id, int type)
getAdvExpirationTime
in interface DiscoveryService
public long getAdvLifeTime(ID id, int type)
getAdvLifeTime
in interface DiscoveryService
public long getAdvExpirationTime(Advertisement adv)
getAdvExpirationTime
in interface DiscoveryService
public long getAdvLifeTime(Advertisement adv)
getAdvLifeTime
in interface DiscoveryService
public void publish(Advertisement adv, int type) throws IOException
publish
in interface DiscoveryService
IOException
public void publish(Advertisement adv) throws IOException
publish
in interface DiscoveryService
IOException
public void publish(Advertisement adv, int type, long lifetime, long lifetimeForOthers) throws IOException
publish
in interface DiscoveryService
IOException
public void publish(Advertisement adv, long lifetime, long lifetimeForOthers) throws IOException
publish
in interface DiscoveryService
IOException
public void remotePublish(Advertisement adv, int type)
remotePublish
in interface DiscoveryService
public 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 DiscoveryService
public void addDiscoveryListener(DiscoveryListener listener)
addDiscoveryListener
in interface DiscoveryService
public 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 |