feat: Allows to add sockets to a completed agent.
This commit is contained in:
parent
f19dbc1984
commit
eaceca57ac
@ -491,8 +491,18 @@ public class TcpHarvester
|
|||||||
if (!IceProcessingState.WAITING.equals(state)
|
if (!IceProcessingState.WAITING.equals(state)
|
||||||
&& !IceProcessingState.RUNNING.equals(state))
|
&& !IceProcessingState.RUNNING.equals(state))
|
||||||
{
|
{
|
||||||
throw new IllegalStateException(
|
// If we are using the VSL, we can still make use of the socket.
|
||||||
"The associated Agent is in state " + state);
|
// Otherwise, we have no use for it, so we better close it (and
|
||||||
|
// log a warning) early.
|
||||||
|
if (!Agent.ENABLE_VIRTUAL_SOCKET_LAYER)
|
||||||
|
{
|
||||||
|
throw new IllegalStateException(
|
||||||
|
"The associated Agent is in state " + state);
|
||||||
|
}
|
||||||
|
else if (logger.isLoggable(Level.FINE))
|
||||||
|
{
|
||||||
|
logger.fine("Adding a socket to an Agent in state " + state);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Socket to add to the candidate
|
// Socket to add to the candidate
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user