public class GHNClientContext extends GHNContext
GHNContext to the case in which the gHN is not actually running.GHNContext.Mode, GHNContext.Status, GHNContext.Type| Modifier and Type | Field and Description |
|---|---|
static String |
SERVER_WSDD_FILE
Server WSDD File
|
ALLOWEDSCOPES_JNDI_NAME, CONFIGDIR_NAME, CONTAINER_STATUS_JNDI_NAME, COORDINATES_JNDI_NAME, COUNTRY_JNDI_NAME, CUSTOMLABELS_JNDI_NAME, DEFAULT_TEST_INTERVAL, DEFAULT_TRUSTEDGHNINTERVAL, DEFAULT_UPDATE_INTERVAL, GCF_VERSION, GHN_CLIENT_JNDI_RESOURCE, GHN_JNDI_RESOURCE, GHN_TYPE, GHN_UPDATE_ATTEMPTS, implementations, IMPLEMENTATIONS_RESOURCE, INFRASTRUCTURE_NAME, JNDI_SERVICES_BASE_NAME, LOCATION_JNDI_NAME, MBEANS_PREFIX, MODE_JNDI_NAME, node, OPEN_PORTS, OVERRIDE_SERVICE_SECURITY, PROFILE_FILE_NAME, PUBLISHED_HOST_NAME, PUBLISHED_PORT_NAME, SECURITY_JNDI_NAME, SHUTDOWN_DELAY, singleton, STARTSCOPES_JNDI_NAME, STORAGE_ROOT, TESTINTERVAL_JNDI_NAME, TRUSTEDGHNINTERVAL_JNDI_NAME, UPDATEINTERVAL_JNDI_NAMElogger, timers| Constructor and Description |
|---|
GHNClientContext() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureGHN(File file)
Used internally to load external configuration.
|
protected void |
configureGHNResource()
Used internally to configure the
GCUBEHostingNode resource that models the local gHN. |
Object |
getProperty(String prop,
boolean... required)
Resolve a configuration property against the naming service.
|
org.apache.axis.deployment.wsdd.WSDDDocument |
getServerWsddDocument() |
protected void |
initialise()
Used internally to initialise the context at class loading time.
|
addScope, delegateCredentials, getAllowedScopes, getBaseURL, getBaseURLToPublish, getContext, getCPUInfo, getDeployedPortTypes, getFile, getFreePort, getFreeSpace, getGHN, getGHNID, getHostDomain, getHostname, getHostnameAndPort, getImplementation, getIP, getLoadStatistics, getLocalInstanceContext, getLocation, getManagementBean, getMemoryUsage, getMode, getPort, getPublishedHostDomain, getPublishedHostname, getPublishedHostnameAndPort, getPublishedPort, getResource, getServiceContext, getServiceContexts, getServiceEndpointPrefix, getStartScopes, getStatus, getStatusMessage, getStorageRoot, getTrustedGHNSynchInterval, getType, getUptime, getVirtualPlatformsLocation, isClientMode, isGHNReady, isSecurityEnabled, overrideServiceSecurity, registerService, removeScope, restart, restartAndClean, setMode, setStatus, shutdown, subscribeForCredential, subscribeForCredentialRequest, subscribeGHNEvents, unsubscribeGHNEventsdebugContext, getJNDIContext, getName, getTiming, printContext, resetTimer, setJNDIContextpublic static final String SERVER_WSDD_FILE
protected void initialise()
throws Exception
initialise in class GHNContextException - if the context could not be initialised.protected void configureGHN(File file) throws Exception
configureGHN in class GHNContextfile - the configuration file.Exception - if it could not load external configurationprotected void configureGHNResource()
throws Exception
GCUBEHostingNode resource that models the local gHN.configureGHNResource in class GHNContextException - if the resource could not be configuredpublic Object getProperty(String prop, boolean... required) throws RuntimeException
getProperty in class GCUBEContextprop - the property.required - (optional) true if the property is required, false or omitted if property is optional.
The only implication is a different handling of failure and logging. Failure in resolving optional properties results in a runtime
exception and fatal log entry, whereas failure in resolving optional properties results in a null result and warning
in the log.null if the property was optional and could not be resolved.RuntimeException - if the property is required but cannot be resolved.public org.apache.axis.deployment.wsdd.WSDDDocument getServerWsddDocument()
Copyright © 2015. All Rights Reserved.