javax.jmdns.impl
Class NameRegister.UniqueNameAcrossInterface
java.lang.Object
javax.jmdns.impl.NameRegister.UniqueNameAcrossInterface
- All Implemented Interfaces:
- NameRegister
- Enclosing interface:
- NameRegister
public static class NameRegister.UniqueNameAcrossInterface
- extends java.lang.Object
- implements NameRegister
|
Method Summary |
boolean |
checkName(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
Checks a name that is defended by this group of mDNS. |
java.lang.String |
incrementHostName(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
Increments a name that is defended by this group of mDNS after it has been found in conflict. |
void |
register(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
Registers a name that is defended by this group of mDNS. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameRegister.UniqueNameAcrossInterface
public NameRegister.UniqueNameAcrossInterface()
register
public void register(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
- Description copied from interface:
NameRegister
- Registers a name that is defended by this group of mDNS.
- Specified by:
register in interface NameRegister
- Parameters:
networkInterface - IP address to handlename - name to registertype - name type to register
checkName
public boolean checkName(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
- Description copied from interface:
NameRegister
- Checks a name that is defended by this group of mDNS.
- Specified by:
checkName in interface NameRegister
- Parameters:
networkInterface - IP address to handlename - name to checktype - name type to check
- Returns:
true if the name is not in conflict, flase otherwise.
incrementHostName
public java.lang.String incrementHostName(java.net.InetAddress networkInterface,
java.lang.String name,
NameRegister.NameType type)
- Description copied from interface:
NameRegister
- Increments a name that is defended by this group of mDNS after it has been found in conflict.
- Specified by:
incrementHostName in interface NameRegister
- Parameters:
networkInterface - IP address to handlename - name to incrementtype - name type to increments
- Returns:
- new name