public class BlitzConfiguration
extends java.lang.Object
Communicator
instance as well as the
proper ObjectAdapter
and adds initial, well-known servants.Constructor and Description |
---|
BlitzConfiguration(Ice.InitializationData id,
Ring ring,
SessionManager sessionManager,
SessionProvider sessionProvider,
SecuritySystem securitySystem,
Executor executor,
int servantsPerSession)
Like
BlitzConfiguration(Ring, ome.services.sessions.SessionManager, SessionProvider, SecuritySystem, Executor, int)
but allows properties to be specified via an
InitializationData instance. |
BlitzConfiguration(Ring ring,
SessionManager sessionManager,
SessionProvider sessionProvider,
SecuritySystem securitySystem,
Executor executor,
int servantsPerSession)
Single constructor which builds all Ice instances needed for the server
runtime based on arguments provided.
|
Modifier and Type | Method and Description |
---|---|
protected Ice.ObjectAdapter |
createAdapter()
Creates an adapter with the name "BlitzAdapter", which must be properly
configured via --Ice.Config or ICE_CONFIG or similar.
|
protected SessionManagerI |
createAndRegisterManager(SessionManager sessionManager,
SecuritySystem securitySystem,
Executor executor) |
protected Glacier2.PermissionsVerifier |
createAndRegisterVerifier(SessionManager sessionManager,
SessionProvider sessionProvider,
Executor executor) |
protected Ice.Communicator |
createCommunicator() |
protected Ice.Communicator |
createCommunicator(java.lang.String configFile,
java.lang.String[] arguments) |
void |
destroy() |
Ice.ObjectAdapter |
getBlitzAdapter() |
Glacier2.SessionManager |
getBlitzManager() |
Glacier2.PermissionsVerifier |
getBlitzVerifier() |
Ice.Communicator |
getCommunicator() |
Ice.ObjectPrx |
getDirectProxy()
Return a direct proxy to the session manager in this object adapter.
|
Registry |
getRegistry() |
Ring |
getRing() |
TopicManager |
getTopicManager() |
protected java.lang.String |
resolveConfigFile(java.lang.String configFile)
Resolve the given config file to a concrete location, possibly throwing
an exception if stored in a jar.
|
protected void |
throwIfInitialized(java.lang.Object instance)
If this configuration is finished and
communicator is not-null,
throw a IllegalStateException |
public BlitzConfiguration(Ring ring, SessionManager sessionManager, SessionProvider sessionProvider, SecuritySystem securitySystem, Executor executor, int servantsPerSession) throws java.lang.RuntimeException
throwIfInitialized(Object)
is called first.
If any of the methods other than createCommunicator()
throws an
exception, then destroy()
will be called to properly shut down
the Communicator
instance. Therefore destroy()
should be careful to check for nulls.java.lang.RuntimeException
public BlitzConfiguration(Ice.InitializationData id, Ring ring, SessionManager sessionManager, SessionProvider sessionProvider, SecuritySystem securitySystem, Executor executor, int servantsPerSession) throws java.lang.RuntimeException
BlitzConfiguration(Ring, ome.services.sessions.SessionManager, SessionProvider, SecuritySystem, Executor, int)
but allows properties to be specified via an
InitializationData
instance.id
- ring
- sessionManager
- securitySystem
- executor
- servantsPerSession
- java.lang.RuntimeException
protected final void throwIfInitialized(java.lang.Object instance)
communicator
is not-null,
throw a IllegalStateException
protected Ice.Communicator createCommunicator()
protected Ice.Communicator createCommunicator(java.lang.String configFile, java.lang.String[] arguments)
protected java.lang.String resolveConfigFile(java.lang.String configFile)
protected Ice.ObjectAdapter createAdapter()
protected SessionManagerI createAndRegisterManager(SessionManager sessionManager, SecuritySystem securitySystem, Executor executor)
protected Glacier2.PermissionsVerifier createAndRegisterVerifier(SessionManager sessionManager, SessionProvider sessionProvider, Executor executor)
public void destroy()
public Ring getRing()
public Ice.Communicator getCommunicator()
public Ice.ObjectAdapter getBlitzAdapter()
public Glacier2.SessionManager getBlitzManager()
public Glacier2.PermissionsVerifier getBlitzVerifier()
public Registry getRegistry()
public TopicManager getTopicManager()
public Ice.ObjectPrx getDirectProxy()
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.