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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closeAll()
Closes all sockets on application end...protected void
finalize()
openServerSocket
(int port, String user) void
releaseSocket
(int port) We don't actually ever close a server socket, we re-use them as much as possible.void
setSocketMap
(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
-