public class Rmif.Remote
extends java.lang.Object
implements nxm.sys.inc.IDable, nxm.sys.inc.MessageHandler
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
host |
nxm.sys.inc.MessageHandler |
mh |
Rmif.Remote |
next |
Rmif |
rmif |
| Constructor and Description |
|---|
Remote()
Generic constructor.
|
Remote(Rmif rmif)
Generic constructor that sets default values using Rmif instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAliveStatus()
Check to see of the connection is alive (checks for a timeout), returns "ON" or "OFF".
|
int |
getDropped()
Gets the count of dropped RDP packets (sent to remote, but not received by remote).
|
java.lang.String |
getHost()
Gets the host address of the connection.
|
java.lang.String |
getID()
local ID for remote command
|
double |
getLatency()
Gets an estimate of link latency (in seconds).
|
double |
getLinkBW()
Gets the estimated link bandwidth for this Remote.
|
int |
getLost()
Deprecated.
Since NeXtMidas 2.5.0: Not used, always 0.
|
int |
getMaxQueue()
Gets the default value for maximum number of packets on the RDP queue.
|
int |
getPort()
Gets the port number used by this connection.
|
int |
getRecvQueue()
Gets the number of RDP messages on the recvQueue.
|
int |
getRecvSeq()
Gets the current recv sequence number for RDP packets.
|
int |
getReOrdered()
Gets the total number of RDP packets received out-of-order for this Remote.
|
int |
getRetried() |
int |
getRetry()
Gets the max number of retries for this Remote.
|
int |
getSendQueue()
Gets the number of queued RDP messages waiting to be sent.
|
int |
getSendSeq()
Gets the current send sequence number for RDP packets.
|
int |
getState()
Gets the current link status as an int.
|
java.lang.String |
getStatus()
Gets the current link status as a string.
|
java.lang.String |
getTag()
brief description of command
|
double |
getTimeLost()
Get time before declaring a RDP packet lost (seconds) for this Remote.
|
double |
getTimeRetry()
Gets time to retry (seconds) for this Remote.
|
int |
getWindow()
Gets the max window size used.
|
boolean |
isClient()
Get if this Remote is a client instance, otherwise it is a server instance.
|
boolean |
isClosed()
Return true if this Remote is closed, false otherwise.
|
boolean |
isOpen()
Deprecated.
Since NeXtMidas 2.5.0: Use
isOpening() or isOpened().
This method is functionally identical to isOpening() even though its name
implied that it was the same as isOpened(). |
boolean |
isOpened()
Return true if this Remote is open (client side and server side), false otherwise.
|
boolean |
isOpening()
Return true if this Remote is being opened (client side open, waiting for server).
|
int |
processMessage(nxm.sys.lib.Message msg)
process message on remote command
|
void |
setHost(java.lang.String host)
Sets the host address of the connection.
|
void |
setHP(java.lang.String hostport)
set Host:Port syntax parser
|
void |
setID(java.lang.String newID)
Sets the ID of this remote and updates its entry in the registry (if applicable).
|
void |
setIsClient(boolean isClient)
Set if this Remote is a client instance, otherwise it is a server instance.
|
void |
setMaxQueue(int value)
Sets the default value for maximum number of packets on the RDP queue.
|
void |
setNext(java.lang.String value)
set slaved remote command
|
void |
setPort(int port)
Sets the port number used by this connection.
|
void |
setRetry(int value)
Sets the max number of retries for this Remote.
|
void |
setTimeLost(double time)
Set time before declaring a RDP packet lost (seconds) for this Remote.
|
void |
setTimeRetry(double value)
Sets time to retry (seconds) for this Remote.
|
void |
setWindow(int value)
Sets the max window size used for this remote.
|
java.lang.String |
toString()
brief description of command
|
public java.lang.String host
public Rmif rmif
public nxm.sys.inc.MessageHandler mh
public Rmif.Remote next
public Remote()
public Remote(Rmif rmif)
rmif - comment herepublic java.lang.String getID()
getID in interface nxm.sys.inc.IDable@Deprecated public boolean isOpen()
isOpening() or isOpened().
This method is functionally identical to isOpening() even though its name
implied that it was the same as isOpened().public boolean isOpened()
public boolean isOpening()
isOpened() method rather than this one.public boolean isClosed()
public void setHP(java.lang.String hostport)
hostport - comment herepublic void setHost(java.lang.String host)
host - comment herepublic void setPort(int port)
port - comment herepublic void setIsClient(boolean isClient)
isClient - comment herepublic boolean isClient()
public void setID(java.lang.String newID)
newID - comment herepublic void setWindow(int value)
Rmif.MAX_WINDOW, default is 12.value - comment herepublic void setMaxQueue(int value)
value - comment herepublic java.lang.String getHost()
public int getPort()
public int getState()
Rmif.functionList for a list of valid
states. Use getStatus() to get the status as a string (for macro use).public java.lang.String getStatus()
Rmif.functionList for a list of valid
states. Use getState() to get the status as an int (for library use).public java.lang.String getAliveStatus()
public int getWindow()
public int getMaxQueue()
public int getRetry()
public void setRetry(int value)
value - comment herepublic int getRetried()
public double getLatency()
public int getSendSeq()
public int getSendQueue()
public int getDropped()
public int getRecvSeq()
public int getRecvQueue()
@Deprecated public int getLost()
public int getReOrdered()
public void setTimeLost(double time)
time - comment herepublic double getTimeLost()
public double getTimeRetry()
public void setTimeRetry(double value)
value - comment herepublic double getLinkBW()
public int processMessage(nxm.sys.lib.Message msg)
processMessage in interface nxm.sys.inc.MessageHandlermsg - The message.Commandable.NORMAL after processing the message or Commandable.NOOP
if the message is not processed.public void setNext(java.lang.String value)
value - comment herepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getTag()