Package org.pentaho.di.www
Class SocketRepository
java.lang.Object
org.pentaho.di.www.SocketRepository
This singleton keeps a repository of all the server sockets.
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAll()Closes all sockets on application end...protected voidfinalize()openServerSocket(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)
-
Constructor Details
-
SocketRepository
public SocketRepository(org.pentaho.di.core.logging.LogChannelInterface log)
-
-
Method Details
-
openServerSocket
- Throws:
IOException
-
releaseSocket
We don't actually ever close a server socket, we re-use them as much as possible.- Parameters:
port-- Throws:
IOException
-
getSocketMap
- Returns:
- the socketMap
-
setSocketMap
- Parameters:
socketMap- the socketMap to set
-
closeAll
public void closeAll()Closes all sockets on application end...- Throws:
IOException- in case there is an error
-
finalize
-