|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
net.java.sip.communicator.impl.protocol.zeroconf.BonjourService
public class BonjourService
Class dealing with JmDNS and treating all the incoming connections on the bonjour port
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
(package private) OperationSetPersistentPresenceZeroconfImpl |
opSetPersPresence
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
BonjourService(int port,
ProtocolProviderServiceZeroconfImpl pps)
Creates a new instance of the Bonjour service thread |
|
| Method Summary | |
|---|---|
void |
addContact(ContactZeroconfImpl contact)
Adds a contact to the locally stored list of contacts |
void |
changeStatus(PresenceStatus stat)
Changes the status of the local user. |
Iterator<ContactZeroconfImpl> |
contacts()
Returns an Iterator over all contacts. |
ContactZeroconfImpl |
getContact(String id,
InetAddress ip)
Returns the Contact with the specified identifier or IP address. |
(package private) String |
getID()
Returns the id of this service. |
ProtocolProviderServiceZeroconfImpl |
getPPS()
Returns the corresponding ProtocolProviderService |
void |
removeContact(String id,
InetAddress ip)
Removes the Contact with the specified identifier or IP address. |
void |
run()
Walk? |
void |
serviceAdded(ServiceEvent event)
A service has been added. |
void |
serviceRemoved(ServiceEvent event)
A service has been removed. |
void |
serviceResolved(ServiceEvent event)
A service has been resolved. |
void |
shutdown()
Might be used for shutdown... |
void |
updateRecord(JmDNS jmdns,
long now,
DNSRecord record)
Callback called by JmDNS to inform the BonjourService of a potential status change of some contacts. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
OperationSetPersistentPresenceZeroconfImpl opSetPersPresence
| Constructor Detail |
|---|
public BonjourService(int port,
ProtocolProviderServiceZeroconfImpl pps)
port - TCP Port number on which to try to start the Bonjour servicepps - ProtocolProviderService instance
which is creating this BonjourService| Method Detail |
|---|
public ProtocolProviderServiceZeroconfImpl getPPS()
String getID()
public void run()
run in interface Runnablerun in class Threadpublic void shutdown()
public void changeStatus(PresenceStatus stat)
stat - New presence statuspublic void serviceAdded(ServiceEvent event)
serviceAdded in interface ServiceListenerevent - The ServiceEvent providing the name and fully qualified type
of the service.public void serviceRemoved(ServiceEvent event)
serviceRemoved in interface ServiceListenerevent - The ServiceEvent providing the name and fully qualified type
of the service.public void serviceResolved(ServiceEvent event)
serviceResolved in interface ServiceListenerevent - The ServiceEvent providing the name, the fully qualified
type of the service, and the service info record,
or null if the service could not be resolved.
public void updateRecord(JmDNS jmdns,
long now,
DNSRecord record)
updateRecord in interface DNSListenerjmdns - JmDNS instance responsible for thisnow - Timestamprecord - DNSRecord which changedpublic Iterator<ContactZeroconfImpl> contacts()
public void addContact(ContactZeroconfImpl contact)
contact - Zeroconf Contact to add to the local list
public ContactZeroconfImpl getContact(String id,
InetAddress ip)
id - the identifier of the Contact we are
looking for.ip - the IP address of the Contact we are looking for.
public void removeContact(String id,
InetAddress ip)
id - the identifier of the Contact we are
looking for.ip - the IP address of the Contact we are looking for.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||