|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDrag_n_Drop.BNode
public class BNode
A class corresponding to a node that provides the service that it is registered for. This does not relate to a physical node which may provide more than one service, rather, a BNode always corresponds to an entity that provides only the service for which information is requested.
Constructor Summary | |
---|---|
BNode(java.lang.String fullName,
java.lang.String hostName,
int port,
com.apple.dnssd.TXTRecord txtRecord)
|
Method Summary | |
---|---|
protected void |
_localTxtRec(com.apple.dnssd.TXTRecord txtRecord)
|
java.lang.String |
get(java.lang.String key)
Return the value corresponding to the key for the node |
java.lang.String |
getHostAddress()
Return IP address of the node |
java.lang.String |
getHostName()
Return the host name of the node. |
java.lang.String[] |
getKeys()
Return all the keys associated with this node. |
int |
getPort()
Return the port number for this service. |
java.lang.String |
getServiceName()
Return service name of the node |
java.lang.String[] |
getValues()
Return all the values associated with this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BNode(java.lang.String fullName, java.lang.String hostName, int port, com.apple.dnssd.TXTRecord txtRecord)
fullName
- The full service name of the nodehostName
- The host name of the nodeport
- The primary port that the node is offering service ontxtRecord
- TXTRecords for the nodeMethod Detail |
---|
public java.lang.String[] getKeys()
public java.lang.String[] getValues()
public java.lang.String getHostName()
public java.lang.String getHostAddress()
public java.lang.String getServiceName()
public java.lang.String get(java.lang.String key)
key
- The key name
public int getPort()
protected void _localTxtRec(com.apple.dnssd.TXTRecord txtRecord)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |