Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.netio.rtt
Class RttEndpoint
com.newstep.solid.netio.ChannelEndpoint
  |
  +--com.newstep.solid.netio.rtt.RttEndpoint

public class RttEndpoint      
 
Links:
Kernel Association Association Link
to Class TcpChannelEndpoint
Associates type:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregationByValue
 
Kernel Association Association Link
to Class TcpChannelEndpoint
Associates type:
aggregationByValue
Client cardinality:
1
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregationByValue
 
Generalization Generalization Link
to Class ChannelEndpoint
 
 

Field Summary
int
int
protected final static String
private int
protected static Logger
private int
Constructor Summary
public void
public void
Method Summary
public static ChannelEndpoint
fromString(String text)
public int
public int
void
setClientId(Integer id)
void
void
void
setServerId(Integer id)
public String
Field Detail
className
protected final static String className
Final.
Multiplicity:
1
Static.
 

clientId
int clientId
 

clientId
private int clientId
Multiplicity:
1
 

logger
protected static Logger logger
Multiplicity:
1
Static.
 

primary
private TcpChannelEndpoint primary
Multiplicity:
1
 

secondary
private TcpChannelEndpoint secondary
Multiplicity:
1
 

serverId
int serverId
 

serverId
private int serverId
Multiplicity:
1
 
Constructor Detail
RttEndpoint
public void RttEndpoint (RttEndpoint base)
 
Stereotype:
create
 

RttEndpoint
public void RttEndpoint (TcpChannelEndpoint p, TcpChannelEndpoint s, Integer id)
 
Parameters:
p -
primary TcpChannelEndpoint
s -
secondary TcpChannelEndpoint
id -
hostId. It is always assigned to the serverId, here is the reasoning: If an RttEndpoint is created in
order to be passed to RttAccessPoint.listen(), it is a local server endpoint and when a client
connects the clientId will be supplied. If it is passed to RttAccessPoint.openChannel(), then the the
id denotes the remote server's id and the clientId will be supplied by the RttAccessPoint itself.
Stereotype:
create
 
Method Detail
fromString
public static ChannelEndpoint fromString (String text)
 
Parameters:
text -
textual representation of the RttChannelEndpoint The format for the stringified rttendpoint is:
IPAddress in the x.x.x.x form or a hostname followed by port for the first channel, followed by the
same sequence for the second channel and the host id at the end. Example:
192.168.10.11,8080,192.168.20.11,8080,33
Static.
Throws:
IOException
 

getClientId
public int getClientId ()
 
 

getPrimary
TcpChannelEndpoint getPrimary ()
 
 

getSecondary
TcpChannelEndpoint getSecondary ()
 
 

getServerId
public int getServerId ()
 
 

setClientId
void setClientId (Integer id)
 
 

setPrimary
void setPrimary (TcpChannelEndpoint primary)
 
 

setSecondary
void setSecondary (TcpChannelEndpoint secondary)
 
 

setServerId
void setServerId (Integer id)
 
 

toString
public String toString ()
 
The format for the stringified rttendpoint is: IPAddress in the x.x.x.x form or a hostname followed by port for
the first channel, followed by the same sequence for the second channel and the host id at the end. Example:
192.168.10.11,8080,192.168.20.11,8080,33
 

Class
Tree
          
PREV CLASS NEXT CLASS
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD