Interface ClientController
public interface ClientController
The Interface provides methods to kill Queries, Publishers and Sessions, as well as fetch the SessionID.
- Since:
- 2.1
-
Method Summary
Modifier and TypeMethodDescriptionGets the current SessionIDvoid
killPublisher
(String sessionID, String publisherID) Kills the specific publisher based on ID from the server.killPublishersWithPredicate
(String predicate) Kills publishers referring to the rows in the LVSessionPublishers Table that satisfy the predicate against LVSessionPublishers Table.killQueriesWithPredicate
(String predicate) Kills queries referring to the rows in the LVSessionQueries Table that satisfy the predicate against LVSessionQueries Table.void
Kills the specific query based on ID from the server.void
killSession
(String sessionID) Kills the specific session based on ID from the server.killSessionsWithPredicate
(String predicate) Kills sessions referring to the rows in the LVSessions Table that satisfy the predicate against LVSessions Table.void
stopNewSessions
(boolean stopNewSession) Stops accepting new sessions
-
Method Details
-
killSession
Kills the specific session based on ID from the server. A LiveViewException is thrown if the session doesn't exist on the server.- Parameters:
sessionID
- The id of the session to kill- Throws:
LiveViewException
- if there is a problem with the request or network issue, or no session can be bound with the given id
-
killQuery
Kills the specific query based on ID from the server. A LiveViewException is thrown if the query doesn't exist on the server.- Parameters:
sessionID
- The id of the session that has query to be killedqueryID
- The id of the query to kill- Throws:
LiveViewException
- if there is a problem with the request or network issue, or no query can be bound with the given id
-
killPublisher
Kills the specific publisher based on ID from the server. A LiveViewException is thrown if the publisher doesn't exist on the server.- Parameters:
sessionID
- The id of the session that has the publisher to be killedpublisherID
- The id of the publisher to kill- Throws:
LiveViewException
- if there is a problem with the request or network issue, or no publisher can be bound with the given id
-
killSessionsWithPredicate
Kills sessions referring to the rows in the LVSessions Table that satisfy the predicate against LVSessions Table.- Parameters:
predicate
- the predicate to select sessions from LVSessions Table- Throws:
LiveViewException
- if there is a problem with the request or network issue.
-
killQueriesWithPredicate
Kills queries referring to the rows in the LVSessionQueries Table that satisfy the predicate against LVSessionQueries Table.- Parameters:
predicate
- the predicate to select queries from LVSessionQueries Table- Throws:
LiveViewException
- if there is a problem with the request or network issue.
-
killPublishersWithPredicate
Kills publishers referring to the rows in the LVSessionPublishers Table that satisfy the predicate against LVSessionPublishers Table.- Parameters:
predicate
- the predicate to select publishers from LVSessionPublishers Table- Throws:
LiveViewException
- if there is a problem with the request or network issue.
-
stopNewSessions
Stops accepting new sessions- Parameters:
stopNewSession
- true to stop new sessions and false to accept new sessions- Throws:
LiveViewException
- if there is a problem with the request or network issue, or in any other way if the service is not executed
-
getSessionID
String getSessionID()Gets the current SessionID- Returns:
- The SessionID
- Since:
- 11.0
-