public class TCPIPProtocolID extends ProtocolID
ProtocolID
,
Serialized FormConstructor and Description |
---|
TCPIPProtocolID() |
Modifier and Type | Method and Description |
---|---|
protected NodeAddressID |
createAddressID(java.lang.String stAddressID,
boolean uniqueAddress)
Creates an address from a string form.
|
boolean |
equals(java.lang.Object o)
Compares two protocol IDs
|
protected LinkFactory.Builder |
getLinkBuilder(java.util.Hashtable settings)
Returns the factory builder for this protocol.
|
boolean |
isActive()
Always returns true.
|
boolean |
requiresUserInteraction()
Always returns false.
|
protected LinkServer |
startLinkServer(NodeAddressID addressID)
Starts the TCP/IP link server at this node using the given address ID.
|
getPosition, hashCode
public boolean equals(java.lang.Object o)
equals
in class ProtocolID
o
- an object to compare with this object.true
iff the supplied object's class is the same as
the class of this object.public boolean isActive()
isActive
in class ProtocolID
public boolean requiresUserInteraction()
requiresUserInteraction
in class ProtocolID
protected LinkFactory.Builder getLinkBuilder(java.util.Hashtable settings)
getLinkBuilder
in class ProtocolID
settings
- Hashtable
containing settings.Builder
for constructing Links.protected LinkServer startLinkServer(NodeAddressID addressID) throws java.lang.IllegalArgumentException
startLinkServer
in class ProtocolID
addressID
- The address for the server to listen on.LinkServer
java.lang.IllegalArgumentException
- if the supplied NodeAddressID
is invalid.protected NodeAddressID createAddressID(java.lang.String stAddressID, boolean uniqueAddress) throws java.lang.IllegalArgumentException
createAddressID
in class ProtocolID
stAddressID
- The address in String form.uniqueAddress
- boolean indicating whether address is unique.NodeAddressID
java.lang.IllegalArgumentException
- if the String
supplied is invalid.Copyright © 1996–2019. All rights reserved.