public class ServiceImpl extends AbstractServiceImpl<Session,SessionImpl> implements Service, org.osgi.framework.ServiceListener
authorizationProvider, sessions
DEFAULT_RESULT
Constructor and Description |
---|
ServiceImpl(org.osgi.framework.BundleContext context,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
NotifyFuture<Void> |
acknowledge(Session session,
String monitorId,
Date aknTimestamp,
OperationParameters operationParameters,
CallbackHandler callbackHandler) |
protected void |
addEventQuery(String id,
EventQuery query) |
protected void |
addMonitorQuery(String id,
MonitorQuery query) |
void |
closeSession(Session session)
Close the provided session
Closing the session includes: unregistering from all items, canceling all
running operations
|
Query |
createQuery(Session session,
String queryType,
String queryData,
QueryListener listener) |
protected SessionImpl |
createSessionInstance(UserInformation user,
Map<String,String> sessionProperties) |
protected void |
processAcknowledge(String monitorId,
Date aknTimestamp,
OperationParameters operationParameters,
CallbackHandler callbackHandler) |
protected void |
removeEventQuery(String id,
EventQuery query) |
protected void |
removeMonitorQuery(String id,
MonitorQuery query) |
void |
serviceChanged(org.osgi.framework.ServiceEvent event) |
void |
start() |
void |
stop() |
void |
subscribeConditionQuery(Session session,
String queryId) |
void |
subscribeEventQuery(Session session,
String queryId) |
protected void |
triggerBrowserChange(List<BrowserEntry> entries,
Set<String> removed,
boolean full) |
void |
unsubscribeConditionQuery(Session session,
String queryId) |
void |
unsubscribeEventQuery(Session session,
String queryId) |
createSession, createSession, handleSessionClosed, handleSessionCreated, validateSession
authorize, authorize, extractPrivileges, fillSessionProperties, loginUser, makeEffectiveUserInformation, setAuditLogService, setAuthenticationImplementation, setAuthorizationImplementation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSession
public ServiceImpl(org.osgi.framework.BundleContext context, Executor executor) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxException
public NotifyFuture<Void> acknowledge(Session session, String monitorId, Date aknTimestamp, OperationParameters operationParameters, CallbackHandler callbackHandler) throws InvalidSessionException
InvalidSessionException
protected void processAcknowledge(String monitorId, Date aknTimestamp, OperationParameters operationParameters, CallbackHandler callbackHandler)
protected void addMonitorQuery(String id, MonitorQuery query)
protected void removeMonitorQuery(String id, MonitorQuery query)
protected void addEventQuery(String id, EventQuery query)
protected void removeEventQuery(String id, EventQuery query)
protected void triggerBrowserChange(List<BrowserEntry> entries, Set<String> removed, boolean full)
public Query createQuery(Session session, String queryType, String queryData, QueryListener listener) throws InvalidSessionException
InvalidSessionException
public void subscribeConditionQuery(Session session, String queryId) throws InvalidSessionException, UnknownQueryException
public void unsubscribeConditionQuery(Session session, String queryId) throws InvalidSessionException
InvalidSessionException
public void subscribeEventQuery(Session session, String queryId) throws InvalidSessionException, UnknownQueryException
public void unsubscribeEventQuery(Session session, String queryId) throws InvalidSessionException
InvalidSessionException
public void closeSession(Session session) throws InvalidSessionException
Service
closeSession
in interface Service<Session>
closeSession
in class AbstractServiceImpl<Session,SessionImpl>
session
- the session to closeInvalidSessionException
- In the case the session is not a valid sessionprotected SessionImpl createSessionInstance(UserInformation user, Map<String,String> sessionProperties)
createSessionInstance
in class AbstractServiceImpl<Session,SessionImpl>
public void start() throws Exception
start
in interface LifecycleAware
start
in class AbstractServiceImpl<Session,SessionImpl>
Exception
public void stop() throws Exception
stop
in interface LifecycleAware
stop
in class AbstractServiceImpl<Session,SessionImpl>
Exception
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.