Class XmlRpcSessionManager
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.XmlRpcSessionManager
-
- All Implemented Interfaces:
XmlRpcSessionHolder
public class XmlRpcSessionManager extends Object implements XmlRpcSessionHolder
- Author:
- Pavel.Sher Date: 18.01.2007
-
-
Constructor Summary
Constructors Modifier Constructor Description XmlRpcSessionManager(ScheduledExecutorService service)protectedXmlRpcSessionManager(ScheduledExecutorService service, int sessionInactivity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> RexecuteRequest(String ip, String sessionId, String userAgent, Callable<R> action)XmlRpcSessiongetSession()Returns current session or null if session is invalid or does not exist.booleaninvalidateSession(String sessionId)Invalidates session with specified idXmlRpcSessionnewSession()Creates new session.
-
-
-
Constructor Detail
-
XmlRpcSessionManager
@Autowired public XmlRpcSessionManager(@NotNull ScheduledExecutorService service)
-
XmlRpcSessionManager
protected XmlRpcSessionManager(@NotNull ScheduledExecutorService service, int sessionInactivity)
-
-
Method Detail
-
getSession
@NotNull public XmlRpcSession getSession()
Returns current session or null if session is invalid or does not exist.- Specified by:
getSessionin interfaceXmlRpcSessionHolder- Returns:
- session
-
invalidateSession
public boolean invalidateSession(@Nullable String sessionId)Invalidates session with specified id- Parameters:
sessionId- session id- Returns:
- true if session existed and was removed
-
newSession
@NotNull public XmlRpcSession newSession()
Creates new session.- Returns:
- newly create session object
-
-