|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.CorePlatformServices
public class CorePlatformServices
Facades a deployment of core foundation services.
The core foundation services include:
Note that this class provides static methods to control the services facade.
Since this class is a convenience wrapper to the
PlatformServices
facade which
likewise only provides static methods.
PlatformServices
provides
the service startup/termination and general service finder capabilities. One
would typically use either this class or PlatformServices
as
their facade.
Constructor Summary | |
---|---|
CorePlatformServices()
|
Method Summary | |||
---|---|---|---|
static boolean |
addContentServerRepository(UserContextInterface user)
Adds a repository definition to the running information service. |
||
static void |
addServicesDeploymentListener(ServicesDeploymentEventListenerInterface listener)
Adds a services deployment listener which is interested in being notified of deployment state transitions. |
||
static AuthenticationServiceInterface |
getAuthenticationService()
Gets the authentication service. |
||
static DiscoveryServiceInterface |
getDiscoveryService()
Gets the discovery service. |
||
static InformationServiceInterface |
getInformationService()
Gets the information service. |
||
static LoggingServiceInterface |
getLoggingService()
Deprecated. The Logging Service has been deprecated. Use Log4J directly instead of calling this method to get the Logging Service. |
||
static Services |
getServices()
Gets all available services. |
||
static SessionServiceInterface |
getSessionService()
Gets the session service. |
||
static UserServiceInterface |
getUserService()
Gets the user service. |
||
static void |
lookupRemoteServices()
Locates any services defined for remote lookup by delegating the request to the PlatformServices.lookupRemoteServices() and then re-initializing handles
to core platform services abstracted by this class. |
||
static void |
removeServicesDeploymentListener(ServicesDeploymentEventListenerInterface listener)
Removes a services deployment listener which is no longer interested in being notified of deployment state transitions. |
||
static void |
setEnvironment(Environment environment)
Specified the environment resources to be used by this facade. |
||
static boolean |
setJAASAppConfigurationEntry(javax.security.auth.login.AppConfigurationEntry[] appConfigurationEntries)
Updates this resource environment to use the specified JAAS |
static void |
setServicesConfiguration(PlatformServicesConfiguration servicesConfiguration)
Specifies the services configuration that is to be used by this facade. |
static void |
startLocalServices()
Starts any services defined for local instantiation by delegating the request to the PlatformServices.startLocalServices()
and then re-initializing handles to
core platform services abstracted by this class. |
||
static void |
startServices()
Starts/looks up services by delegating the request to the PlatformServices.startServices()
and then re-initializing handles to core platform services abstracted
by this class. |
||
static void |
terminateServices()
Terminates services by null'ing references to the core services and then delegating the service termination request to the PlatformServices facade. |
||
static void |
validateServices()
Verify that the core services are available. |
Constructor Detail |
---|
public CorePlatformServices()
Method Detail |
---|
public static final void setServicesConfiguration(PlatformServicesConfiguration servicesConfiguration) throws ServiceException
servicesConfiguration
- The service configuration that is to be
deployed. This configuration details the metadata source(s) describing
service deployment(s).
ServiceException
- if an invalid configuration is specified.public static final void setEnvironment(Environment environment)
environment
- The environment resources that are to be used
by the deployed services.public static final boolean setJAASAppConfigurationEntry(javax.security.auth.login.AppConfigurationEntry[] appConfigurationEntries) throws ServiceException
entries
.
This method is a pass through method to
PlatformServices.setJAASAppConfigurationEntry(AppConfigurationEntry[])
.
Refer to its javadoc for additional details.
appConfigurationEntries
- Array of JAAS application configuration entries
which the should be set in the resource environment.
true
if the resource environment
was updated or
false
if a resource environment is not defined.
ServiceException
- if an exception is encountered.public static void startServices() throws ServiceException, ServiceLookupFailedException
PlatformServices.startServices()
and then re-initializing handles to core platform services abstracted
by this class.
ServiceException
- if unable to instantiate services.
ServiceLookupFailedException
- if an exception was encountered looking
up remote services.public static void startLocalServices() throws ServiceException
PlatformServices.startLocalServices()
and then re-initializing handles to
core platform services abstracted by this class.
ServiceException
public static void lookupRemoteServices() throws ServiceException, ServiceLookupFailedException
PlatformServices.lookupRemoteServices()
and then re-initializing handles
to core platform services abstracted by this class.
ServiceException
ServiceLookupFailedException
public static void terminateServices() throws ServiceException
PlatformServices
facade.
ServiceException
- if unable to terminate services cleanly.public static DiscoveryServiceInterface getDiscoveryService()
null
if a service is not
available.@Deprecated public static LoggingServiceInterface getLoggingService()
null
if a logging service is not available.public static InformationServiceInterface getInformationService()
null
if an information service is not available.public static SessionServiceInterface getSessionService()
null
if a session service is not available.public static UserServiceInterface getUserService()
null
if a user service is not available.public static AuthenticationServiceInterface getAuthenticationService()
null
if an authentication service is not available.public static final void addServicesDeploymentListener(ServicesDeploymentEventListenerInterface listener) throws ServiceException
Note that this method just delegates to {#link PlatformServices. addServicesDeploymentListener (ServicesDeploymentListenerInterface)}
listener
- Services deployment listener interested in being notified
of deployment state changes.
ServiceException
- if unable to add the listener.public static final void removeServicesDeploymentListener(ServicesDeploymentEventListenerInterface listener)
Note that this method just delegates to {#link PlatformServices. removeServicesDeploymentListener (ServicesDeploymentListenerInterface)}
listener
- Services deployment listener to be removed.public static final Services getServices() throws ServiceException
RemoteServiceInterface
.
ServiceException
- if unable to determine available services.public static void validateServices() throws ServiceException
ServiceException
- if a service is not available.public static boolean addContentServerRepository(UserContextInterface user) throws ServiceException
user
- user context used to connect to the server and find the repository definition
ServiceException
java.lang.IllegalStateException
- if services are not started
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |