public class Gateway extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close()
Shuts down all kernel API objects
|
static Authenticator |
connect()
Connects to the Lookup server in an administrative context - using the admin username and
password available in the implementation of the Authenticator.
|
static AgentProxy |
connect(String agentName,
String agentPassword)
Log in with the given username and password, and initialises the
Lookup,
TransactionManager and ProxyManager. |
static AgentProxy |
connect(String agentName,
String agentPassword,
String resource)
Log in with the given username and password, and initialises the
Lookup,
TransactionManager and ProxyManager. |
static void |
dumpC2KProps(int logLevel) |
static Authenticator |
getAuthenticator()
Deprecated.
use {
getSecurityManager()} instead if you need to authenticate |
static String |
getCentreId() |
static CorbaServer |
getCorbaServer() |
static String |
getKernelVersion() |
static Lookup |
getLookup() |
static LookupManager |
getLookupManager() |
static CastorXMLUtility |
getMarshaller() |
static ModuleManager |
getModuleManager()
Static getter for ModuleManager
|
static ORB |
getORB()
Returns the initialised CORBA ORB Object
|
static ObjectProperties |
getProperties() |
static ProxyManager |
getProxyManager() |
static ProxyServer |
getProxyServer() |
static ResourceLoader |
getResource() |
static ResourceImportHandler |
getResourceImportHandler(BuiltInResources resType)
Retrieves the ResourceImportHandler available for the resource type.
|
static ResourceImportHandler |
getResourceImportHandler(String resType)
Deprecated.
|
static SecurityManager |
getSecurityManager() |
static TransactionManager |
getStorage() |
static void |
init(Properties props)
Initialises the Gateway and all of the client objects it holds, with
the exception of the Lookup, which is initialised during connect()
|
static void |
init(Properties props,
ResourceLoader res)
Initialises the Gateway and all of the client objects it holds, with
the exception of the Lookup, which is initialised during connect()
|
static AgentProxy |
login(String agentName,
String agentPassword,
String resource)
Deprecated.
|
static Enumeration<?> |
propertyNames() |
static void |
runBoostrap()
Run the different kind of Boostrap processes
|
static void |
startServer()
Makes this process capable of creating and managing server entities.
|
static void |
startServer(Authenticator auth)
Deprecated.
|
public static void init(Properties props) throws InvalidDataException
props - - java.util.Properties containing all application properties.
If null, the java system properties are usedInvalidDataException - - invalid properties caused a failure in initialisationpublic static void init(Properties props, ResourceLoader res) throws InvalidDataException
props - - java.util.Properties containing all application properties.
If null, the java system properties are usedres - - ResourceLoader for the kernel to use to resolve all class resource requests
such as for bootstrap descriptions and version informationInvalidDataException - - invalid properties caused a failure in initialisation@Deprecated public static void startServer(Authenticator auth) throws InvalidDataException, CannotManageException
auth - - this is NOT USEDInvalidDataExceptionCannotManageExceptionpublic static void startServer()
throws InvalidDataException,
CannotManageException
public static ModuleManager getModuleManager()
public static Authenticator connect() throws InvalidDataException, PersistencyException, ObjectNotFoundException
InvalidDataException - - bad paramsPersistencyException - - error starting storagesObjectNotFoundException - - object not foundpublic static AgentProxy connect(String agentName, String agentPassword) throws InvalidDataException, ObjectNotFoundException, PersistencyException
Lookup,
TransactionManager and ProxyManager. It shall be uses in client processes only.agentName - - usernameagentPassword - - passwordInvalidDataException - - bad paramsPersistencyException - - error starting storagesObjectNotFoundException - - object not foundpublic static AgentProxy connect(String agentName, String agentPassword, String resource) throws InvalidDataException, ObjectNotFoundException, PersistencyException
Lookup,
TransactionManager and ProxyManager. It shall be uses in client processes only.agentName - - usernameagentPassword - - passwordresource - - resourceInvalidDataException - - bad paramsPersistencyException - - error starting storagesObjectNotFoundException - - object not found@Deprecated public static AgentProxy login(String agentName, String agentPassword, String resource) throws InvalidDataException, ObjectNotFoundException
SecurityManager.authenticate(String, String, String)agentName - the name of the agentagentPassword - the password of the agentresource - check Authenticator.authenticate(String, String, String)InvalidDataException - - bad paramsObjectNotFoundException - - object not found@Deprecated public static Authenticator getAuthenticator() throws InvalidDataException
getSecurityManager()} instead if you need to authenticateInvalidDataException - in case of ClassNotFoundException or InstantiationException or IllegalAccessExceptionpublic static void close()
public static ORB getORB()
public static SecurityManager getSecurityManager()
public static Lookup getLookup()
public static LookupManager getLookupManager() throws CannotManageException
CannotManageExceptionpublic static CorbaServer getCorbaServer()
public static TransactionManager getStorage()
public static CastorXMLUtility getMarshaller()
public static ResourceLoader getResource()
public static ProxyManager getProxyManager()
public static ProxyServer getProxyServer()
public static String getCentreId()
public static Enumeration<?> propertyNames()
public static void dumpC2KProps(int logLevel)
public static ObjectProperties getProperties()
public static String getKernelVersion()
@Deprecated public static ResourceImportHandler getResourceImportHandler(String resType) throws Exception
resType - the type o the Resource. ie. one of these values: OD/SC/SM/EA/CA/QLExceptionpublic static ResourceImportHandler getResourceImportHandler(BuiltInResources resType) throws Exception
resType - the type o the ResourceExceptionCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.