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 LDAP server in an administrative context - using the admin username and
password given in the LDAP.user and LDAP.password props of the kernel properties.
|
static AgentProxy |
connect(String agentName,
String agentPassword) |
static AgentProxy |
connect(String agentName,
String agentPassword,
String resource)
Logs in with the given username and password, and initialises the lookup, storage and proxy manager.
|
static void |
dumpC2KProps(int logLevel) |
static Authenticator |
getAuthenticator() |
static String |
getCentreId() |
static CorbaServer |
getCorbaServer() |
static String |
getKernelVersion() |
static Lookup |
getLookup() |
static LookupManager |
getLookupManager() |
static CastorXMLUtility |
getMarshaller() |
static ModuleManager |
getModuleManager() |
static ORB |
getORB() |
static ObjectProperties |
getProperties() |
static ProxyManager |
getProxyManager() |
static ProxyServer |
getProxyServer() |
static ResourceLoader |
getResource() |
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) |
static Enumeration<?> |
propertyNames() |
static void |
startServer(Authenticator auth)
Makes this process capable of creating and managing server entities.
|
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 initialisationpublic static void startServer(Authenticator auth) throws InvalidDataException, CannotManageException
InvalidDataException - - error initialisingCannotManageExceptionpublic static ModuleManager getModuleManager()
public static Authenticator connect() throws InvalidDataException, PersistencyException
InvalidDataException - - bad paramsPersistencyException - - error starting storagespublic static AgentProxy connect(String agentName, String agentPassword, String resource) throws InvalidDataException, ObjectNotFoundException, PersistencyException
agentName - - usernameagentPassword - - passwordInvalidDataExceptionPersistencyExceptionClassNotFoundExceptionIllegalAccessExceptionInstantiationExceptionObjectNotFoundExceptionpublic static AgentProxy login(String agentName, String agentPassword, String resource) throws InvalidDataException, ObjectNotFoundException
public static Authenticator getAuthenticator() throws InvalidDataException
InvalidDataExceptionpublic static AgentProxy connect(String agentName, String agentPassword) throws InvalidDataException, ObjectNotFoundException, PersistencyException, InstantiationException, IllegalAccessException, ClassNotFoundException
public static void close()
public static ORB getORB()
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()
Copyright © 1997–2016 CRISTAL-iSE. All rights reserved.