Package org.lsst.ccs.services
Class AgentLoginService
java.lang.Object
org.lsst.ccs.services.AgentLoginService
- All Implemented Interfaces:
AgentService
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AgentLoginService.AgentLoginUpdateListener>protected final Semaphoreprotected final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidGet the name of this service.Returns the ID of the logged in user.voidprotected voidnotifyLoginListeners(String oldUserId, String newUserId) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.lsst.ccs.services.AgentService
startForAgent
-
Field Details
-
agentLoginUpdateListeners
-
loginlUpdate
-
loginListenersSemaphore
-
-
Constructor Details
-
AgentLoginService
public AgentLoginService()
-
-
Method Details
-
getAgentServiceName
Description copied from interface:AgentServiceGet the name of this service. This name will be used to add the given service to the lookup tree.- Specified by:
getAgentServiceNamein interfaceAgentService- Returns:
- the AgentService name.
-
login
-
disconnect
public void disconnect() -
getUserId
Returns the ID of the logged in user.- Returns:
- name of current user
-
addAgentLoginUpdateListener
-
removeAgentLockUpdateListener
-
notifyLoginListeners
-