Package 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 SummaryConstructors Constructor Description SocketRepository(org.pentaho.di.core.logging.LogChannelInterface log)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseAll()Closes all sockets on application end...protected voidfinalize()Map<Integer,SocketRepositoryEntry>getSocketMap()ServerSocketopenServerSocket(int port, String user)voidreleaseSocket(int port)We don't actually ever close a server socket, we re-use them as much as possible.voidsetSocketMap(Map<Integer,SocketRepositoryEntry> socketMap)
 
- 
- 
- 
Method Detail- 
openServerSocketpublic ServerSocket openServerSocket(int port, String user) throws IOException - Throws:
- IOException
 
 - 
releaseSocketpublic void releaseSocket(int port) throws IOExceptionWe don't actually ever close a server socket, we re-use them as much as possible.- Parameters:
- port-
- Throws:
- IOException
 
 - 
getSocketMappublic Map<Integer,SocketRepositoryEntry> getSocketMap() - Returns:
- the socketMap
 
 - 
setSocketMappublic void setSocketMap(Map<Integer,SocketRepositoryEntry> socketMap) - Parameters:
- socketMap- the socketMap to set
 
 - 
closeAllpublic void closeAll() Closes all sockets on application end...- Throws:
- IOException- in case there is an error
 
 
- 
 
-