public interface _CommunicatorOperationsNC
Logger,
ObjectAdapter,
Properties,
ObjectFactory| Modifier and Type | Method and Description |
|---|---|
void |
addAdminFacet(Object servant,
java.lang.String facet)
Add a new facet to the Admin object.
|
void |
addObjectFactory(ObjectFactory factory,
java.lang.String id)
Add an object factory to this communicator.
|
ObjectPrx |
createAdmin(ObjectAdapter adminAdapter,
Identity adminId)
Add the Admin object with all its facets to the provided object adapter.
|
ObjectAdapter |
createObjectAdapter(java.lang.String name)
Create a new object adapter.
|
ObjectAdapter |
createObjectAdapterWithEndpoints(java.lang.String name,
java.lang.String endpoints)
Create a new object adapter with endpoints.
|
ObjectAdapter |
createObjectAdapterWithRouter(java.lang.String name,
RouterPrx rtr)
Create a new object adapter with a router.
|
void |
destroy()
Destroy the communicator.
|
Object |
findAdminFacet(java.lang.String facet)
Returns a facet of the Admin object.
|
java.util.Map<java.lang.String,Object> |
findAllAdminFacets()
Returns a map of all facets of the Admin object.
|
ObjectFactory |
findObjectFactory(java.lang.String id)
Find an object factory registered with this communicator.
|
void |
flushBatchRequests()
Flush any pending batch requests for this communicator.
|
ObjectPrx |
getAdmin()
Get a proxy to the main facet of the Admin object.
|
LocatorPrx |
getDefaultLocator()
Get the default locator this communicator.
|
RouterPrx |
getDefaultRouter()
Get the default router this communicator.
|
ImplicitContext |
getImplicitContext()
Get the implicit context associated with this communicator.
|
Logger |
getLogger()
Get the logger for this communicator.
|
CommunicatorObserver |
getObserver()
Get the observer resolver object for this communicator.
|
PluginManager |
getPluginManager()
Get the plug-in manager for this communicator.
|
Properties |
getProperties()
Get the properties for this communicator.
|
java.lang.String |
identityToString(Identity ident)
Convert an identity into a string.
|
boolean |
isShutdown()
Check whether communicator has been shut down.
|
ObjectPrx |
propertyToProxy(java.lang.String property)
Convert a set of proxy properties into a proxy.
|
java.util.Map<java.lang.String,java.lang.String> |
proxyToProperty(ObjectPrx proxy,
java.lang.String property)
Convert a proxy to a set of proxy properties.
|
java.lang.String |
proxyToString(ObjectPrx obj)
Convert a proxy into a string.
|
Object |
removeAdminFacet(java.lang.String facet)
Remove the following facet to the Admin object.
|
void |
setDefaultLocator(LocatorPrx loc)
Set a default Ice locator for this communicator.
|
void |
setDefaultRouter(RouterPrx rtr)
Set a default router for this communicator.
|
void |
shutdown()
Shuts down this communicator's server functionality, which
includes the deactivation of all object adapters.
|
Identity |
stringToIdentity(java.lang.String str)
Convert a string into an identity.
|
ObjectPrx |
stringToProxy(java.lang.String str)
Convert a stringified proxy into a proxy.
|
void |
waitForShutdown()
Wait until the application has called
shutdown() (or destroy()). |
void destroy()
shutdown()
implicitly. Calling destroy() cleans up memory, and shuts down
this communicator's client functionality and destroys all object
adapters. Subsequent calls to destroy() are ignored.shutdown(),
ObjectAdapter.destroy()void shutdown()
waitForShutdown() to wait for the completion of all
requests.destroy(),
waitForShutdown(),
ObjectAdapter.deactivate()void waitForShutdown()
shutdown() (or destroy()).
On the server side, this operation blocks the calling thread
until all currently-executing operations have completed.
On the client side, the operation simply block until another
thread has called shutdown() or destroy().
A typical use of this operation is to call it from the main thread,
which then waits until some other thread calls shutdown().
After shut-down is complete, the main thread returns and can do some
cleanup work before it finally calls destroy() to shut down
the client functionality, and then exits the application.shutdown(),
destroy(),
ObjectAdapter.waitForDeactivate()boolean isShutdown()
shutdown()ObjectPrx stringToProxy(java.lang.String str)
str - The stringified proxy to convert into a proxy.proxyToString(Ice.ObjectPrx)java.lang.String proxyToString(ObjectPrx obj)
obj - The proxy to convert into a stringified proxy.stringToProxy(java.lang.String)ObjectPrx propertyToProxy(java.lang.String property)
property - The base property name.java.util.Map<java.lang.String,java.lang.String> proxyToProperty(ObjectPrx proxy, java.lang.String property)
proxy - The proxy.property - The base property name.Identity stringToIdentity(java.lang.String str)
str - The string to convert into an identity.identityToString(Ice.Identity)java.lang.String identityToString(Identity ident)
ident - The identity to convert into a string.stringToIdentity(java.lang.String)ObjectAdapter createObjectAdapter(java.lang.String name)
name - The object adapter name.createObjectAdapterWithEndpoints(java.lang.String, java.lang.String),
ObjectAdapter,
PropertiesObjectAdapter createObjectAdapterWithEndpoints(java.lang.String name, java.lang.String endpoints)
createObjectAdapter(java.lang.String). It is provided as a
convenience function.
Calling this operation with an empty name will result in a
UUID being generated for the name.name - The object adapter name.endpoints - The endpoints for the object adapter.createObjectAdapter(java.lang.String),
ObjectAdapter,
PropertiesObjectAdapter createObjectAdapterWithRouter(java.lang.String name, RouterPrx rtr)
name - The object adapter name.rtr - The router.createObjectAdapter(java.lang.String),
ObjectAdapter,
Propertiesvoid addObjectFactory(ObjectFactory factory, java.lang.String id)
factory - The factory to add.id - The type id for which the factory can create instances, or
an empty string for the default factory.findObjectFactory(java.lang.String),
ObjectFactoryObjectFactory findObjectFactory(java.lang.String id)
id - The type id for which the factory can create instances,
or an empty string for the default factory.addObjectFactory(Ice.ObjectFactory, java.lang.String),
ObjectFactoryImplicitContext getImplicitContext()
Properties getProperties()
PropertiesLogger getLogger()
LoggerCommunicatorObserver getObserver()
RouterPrx getDefaultRouter()
setDefaultRouter(Ice.RouterPrx),
Routervoid setDefaultRouter(RouterPrx rtr)
rtr - The default router to use for this communicator.getDefaultRouter(),
createObjectAdapterWithRouter(java.lang.String, Ice.RouterPrx),
RouterLocatorPrx getDefaultLocator()
setDefaultLocator(Ice.LocatorPrx),
Locatorvoid setDefaultLocator(LocatorPrx loc)
ObjectAdapter.setLocator(Ice.LocatorPrx) on the object adapter.loc - The default locator to use for this communicator.getDefaultLocator(),
Locator,
ObjectAdapter.setLocator(Ice.LocatorPrx)PluginManager getPluginManager()
PluginManagervoid flushBatchRequests()
ObjectPrx createAdmin(ObjectAdapter adminAdapter, Identity adminId)
Locator,
createAdmin registers the Admin's Process facet with the Locator's LocatorRegistry.
createAdmin call only be called once; subsequent calls raise InitializationException.adminAdapter - The object adapter used to host the Admin object; if null and
Ice.Admin.Endpoints is set, create, activate and use the Ice.Admin object adapter.adminId - The identity of the Admin object.getAdmin(),
LocatorRegistryObjectPrx getAdmin()
createAdmin(Ice.ObjectAdapter, Ice.Identity)void addAdminFacet(Object servant, java.lang.String facet)
servant - The servant that implements the new Admin facet.facet - The name of the new Admin facet.Object removeAdminFacet(java.lang.String facet)
facet - The name of the Admin facet.Object findAdminFacet(java.lang.String facet)
facet - The name of the Admin facet.java.util.Map<java.lang.String,Object> findAllAdminFacets()
findAdminFacet(java.lang.String)