gr.uoa.di.madgik.commons.channel.registry
Class RegisteredNozzle

java.lang.Object
  extended by gr.uoa.di.madgik.commons.channel.registry.RegisteredNozzle

public class RegisteredNozzle
extends java.lang.Object

Utility class containing information on connected nozzles to a channel.

Author:
gpapanikos

Constructor Summary
RegisteredNozzle(java.lang.String NozzleID, java.net.Socket ClientSocket)
          Instantiates a new registered nozzle.
 
Method Summary
 void Dispose()
          Disposes the instance, sets that the nozzle is not connected and closes the client socket if the client was connected through a socket
 java.net.Socket GetClientSock()
          Gets the client sock.
 java.lang.Boolean GetIsConnected()
          Gets whether the nozzle is still connected
 java.lang.String GetNozzleID()
          Gets the nozzle id.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisteredNozzle

public RegisteredNozzle(java.lang.String NozzleID,
                        java.net.Socket ClientSocket)
Instantiates a new registered nozzle.

Parameters:
NozzleID - the nozzle id
ClientSocket - the client socket
Method Detail

GetNozzleID

public java.lang.String GetNozzleID()
Gets the nozzle id.

Returns:
the identifier

GetClientSock

public java.net.Socket GetClientSock()
Gets the client sock.

Returns:
the socket

GetIsConnected

public java.lang.Boolean GetIsConnected()
Gets whether the nozzle is still connected

Returns:
true, if the nozzle is still connected

Dispose

public void Dispose()
Disposes the instance, sets that the nozzle is not connected and closes the client socket if the client was connected through a socket