public class BlitzConfiguration extends Object
ObjectAdapter
and adds initial, well-known servants.Constructor and Description |
---|
BlitzConfiguration(Ice.InitializationData id,
Ring ring,
SessionManager sessionManager,
SecuritySystem securitySystem,
Executor executor,
int servantsPerSession)
Like
#BlitzConfiguration(ome.services.sessions.SessionManager, SecuritySystem, Executor)
but allows properties to be specified via an
InitializationData instance. |
BlitzConfiguration(Ring ring,
SessionManager sessionManager,
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,
Executor executor) |
protected Ice.Communicator |
createCommunicator() |
protected Ice.Communicator |
createCommunicator(String configFile,
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 String |
resolveConfigFile(String configFile)
Resolve the given config file to a concrete location, possibly throwing
an exception if stored in a jar.
|
protected void |
throwIfInitialized(Object instance)
If this configuration is finished and
communicator is not-null,
throw a IllegalStateException |
public BlitzConfiguration(Ring ring, SessionManager sessionManager, SecuritySystem securitySystem, Executor executor, int servantsPerSession) throws RuntimeException
#throwIfInitialized()
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.RuntimeException
public BlitzConfiguration(Ice.InitializationData id, Ring ring, SessionManager sessionManager, SecuritySystem securitySystem, Executor executor, int servantsPerSession) throws RuntimeException
#BlitzConfiguration(ome.services.sessions.SessionManager, SecuritySystem, Executor)
but allows properties to be specified via an
InitializationData
instance.id
- sessionManager
- securitySystem
- executor
- RuntimeException
protected final void throwIfInitialized(Object instance)
communicator
is not-null,
throw a IllegalStateException
protected Ice.Communicator createCommunicator()
protected Ice.Communicator createCommunicator(String configFile, String[] arguments)
protected String resolveConfigFile(String configFile)
protected Ice.ObjectAdapter createAdapter()
protected SessionManagerI createAndRegisterManager(SessionManager sessionManager, SecuritySystem securitySystem, Executor executor)
protected Glacier2.PermissionsVerifier createAndRegisterVerifier(SessionManager sessionManager, 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.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.