org.pentaho.di.www
Class SocketRepository
java.lang.Object
  
org.pentaho.di.www.SocketRepository
public class SocketRepository
- extends Object
 
This singleton keeps a repository of all the server sockets.
- Author:
 
  - matt
 
| 
Constructor Summary | 
SocketRepository(org.pentaho.di.core.logging.LogChannelInterface log)
 
            | 
 
 
 
SocketRepository
public SocketRepository(org.pentaho.di.core.logging.LogChannelInterface log)
openServerSocket
public ServerSocket openServerSocket(int port,
                                     String user)
                              throws IOException
- Throws:
 IOException
 
releaseSocket
public void releaseSocket(int port)
                   throws IOException
- We don't actually ever close a server socket, we re-use them as much as possible.
- Parameters:
 port - 
- Throws:
 IOException
 
 
getSocketMap
public Map<Integer,SocketRepositoryEntry> getSocketMap()
- Returns:
 - the socketMap
 
 
setSocketMap
public void setSocketMap(Map<Integer,SocketRepositoryEntry> socketMap)
- Parameters:
 socketMap - the socketMap to set
 
closeAll
public void closeAll()
- Closes all sockets on application end...
- Throws:
 IOException - in case there is an error