class cMsgClientData extends cMsgClientInfo
Modifier and Type | Class and Description |
---|---|
(package private) static class |
cMsgClientData.monitorData
Convenience class to store all monitoring quantities.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.nio.ByteBuffer |
buffer
Direct buffer for reading TCP nonblocking IO.
|
(package private) int |
bytesRead |
(package private) java.util.concurrent.atomic.AtomicBoolean |
calledSubdomainShutdown
Keep track of whether the handleShutdown method of the subdomain
handler object has already been called.
|
(package private) int |
clientKey
Unique key sent by cMsgNameServer to client as an ID.
|
(package private) java.lang.String |
clientPassword
For server clients, the password clients must use to connect to that server.
|
(package private) cMsg |
cMsgSubdomainHandler
Reference to cMsg subdomain handler object if appropriate.
|
(package private) boolean |
inCmsgSubdomain
Is this client in the cMsg domain?
|
(package private) java.nio.ByteBuffer |
kaBuffer
Buffer for sending keep-alive/monitoring info to this client if there are "issues".
|
(package private) java.nio.channels.SocketChannel |
keepAliveChannel
Socket channel used by this server to get monitor data from client and
to send monitor data to client (dual functions as keepAlive).
|
(package private) cMsgClientData.monitorData |
monData |
(package private) boolean |
readingSize
Internal bookkeeping.
|
(package private) int |
size
Size of data in bytes (not including int representing size which
is the first data sent).
|
(package private) cMsgSubdomainInterface |
subdomainHandler
Reference to subdomain handler object.
|
(package private) java.net.DatagramSocket |
udpSocket
Socket to receive UDP sends from the client.
|
(package private) long |
updateTime |
clientHost, deliverer, description, domainHost, domainPort, domainUdpPort, dottedDecimalAddr, isServer, messageChannel, multicastPort, name, namespace, serverPort, subdomain, UDL, UDLremainder
Constructor and Description |
---|
cMsgClientData(java.lang.String name,
int nsPort,
int mPort,
java.lang.String host,
java.lang.String password,
int uniqueKey)
Constructor used when cMsg server acts as a client and connects a to cMsg server.
|
cMsgClientData(java.lang.String name,
int nsPort,
int port,
java.lang.String host,
java.lang.String dotDec,
java.lang.String subdomain,
java.lang.String UDLRemainder,
java.lang.String UDL,
java.lang.String description,
int uniqueKey)
Constructor specifing client's name, port, host, subdomain, and UDL remainder.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPassword()
Gets server client's client-connect password.
|
getClientHost, getDeliverer, getDescription, getDomainHost, getDomainPort, getDomainUdpPort, getDottedDecimalAddr, getMessageChannel, getMessageChannelRemoteSocketAddress, getName, getNamespace, getServerHost, getServerMulticastPort, getServerPort, getSubdomain, getUDL, getUDLremainder, isServer, setDeliverer, setDomainHost, setDomainPort, setDomainUdpPort, setMessageChannel, setNamespace
java.lang.String clientPassword
java.net.DatagramSocket udpSocket
java.nio.channels.SocketChannel keepAliveChannel
cMsgSubdomainInterface subdomainHandler
cMsg cMsgSubdomainHandler
java.util.concurrent.atomic.AtomicBoolean calledSubdomainShutdown
boolean inCmsgSubdomain
boolean readingSize
int size
int bytesRead
int clientKey
java.nio.ByteBuffer buffer
java.nio.ByteBuffer kaBuffer
cMsgClientData.monitorData monData
long updateTime
public cMsgClientData(java.lang.String name, int nsPort, int port, java.lang.String host, java.lang.String dotDec, java.lang.String subdomain, java.lang.String UDLRemainder, java.lang.String UDL, java.lang.String description, int uniqueKey)
name
- client's namensPort
- name server's listening portport
- client's listening porthost
- client's hostdotDec
- client's address in dotted decimal formsubdomain
- client's subdomainUDLRemainder
- client's UDL's remainderUDL
- client's UDLdescription
- client's descriptionuniqueKey
- client's unique key (generated by nameserver)public cMsgClientData(java.lang.String name, int nsPort, int mPort, java.lang.String host, java.lang.String password, int uniqueKey)
name
- server client's namensPort
- name server's TCP listening portmPort
- name server's UDP multicast listening porthost
- server client's hostpassword
- server client's password that its clients use to connectuniqueKey
- client's unique key (generated by nameserver)