com.superhac.JXBStreamer.Core
Class ConnectedClientStatus

java.lang.Object
  extended by com.superhac.JXBStreamer.Core.ConnectedClientStatus

public class ConnectedClientStatus
extends java.lang.Object

Contains connected client status varibles like IP address, transfer rate, etc... Each client that is connected will be represented by one ConnectedClientStatus object. A arrayList of these objects will be contained withing a ServerStatus object.

More information can be found at Superhac.com


Constructor Summary
protected ConnectedClientStatus(java.lang.String sourceIP, java.lang.String clientVersion, int lastClientCommand, int openFileHandlers, int openDirectoryHandlers, long transferedBytesSec)
           
 
Method Summary
 java.lang.String getClientVersion()
          Get the clients XBMSP Protocol version
 java.lang.String getLastClientCommand()
          Gets the clients last XBMSP command sent to the server.
 int getOpenDirectoryHandlers()
          The XBMSP protcol uses handles for associating File and Directory names.
 int getOpenFileHandlers()
          The XBMSP protcol uses handles for associating File and Directory names.
 java.lang.String getSourceIP()
          Gets the source IP address of the client.
 long getTransferedBytesSec()
          Gets the number of bytes transfered per second.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectedClientStatus

protected ConnectedClientStatus(java.lang.String sourceIP,
                                java.lang.String clientVersion,
                                int lastClientCommand,
                                int openFileHandlers,
                                int openDirectoryHandlers,
                                long transferedBytesSec)
Method Detail

getClientVersion

public java.lang.String getClientVersion()
Get the clients XBMSP Protocol version

Returns:
The clients XBMSP protocol version.

getLastClientCommand

public java.lang.String getLastClientCommand()
Gets the clients last XBMSP command sent to the server.

Returns:
The last client issued command

getOpenDirectoryHandlers

public int getOpenDirectoryHandlers()
The XBMSP protcol uses handles for associating File and Directory names. This is like a reference number. A client asks for a handle to a file or a directory and the server provides it one. Any request for services of the file or directory will use the handle identifier(int). A client can have many handles opened at once.

Returns:
The number of open DIRECTORY handlers

getOpenFileHandlers

public int getOpenFileHandlers()
The XBMSP protcol uses handles for associating File and Directory names. This is like a reference number. A client asks for a handle to a file or a directory and the server provides it one. Any request for services of the file or directory will use the handle identifier(int). A client can have many handles opened at once.

Returns:
The number of open File handlers

getSourceIP

public java.lang.String getSourceIP()
Gets the source IP address of the client.

Returns:
The source IP address of the client.

getTransferedBytesSec

public long getTransferedBytesSec()
Gets the number of bytes transfered per second. If a client is streaming content this will return the rate at which the server is streaming it. (BYTES per second) If you want KB then divide the numner by 1000.....

Returns:
The number of BYTES transfered per second.