com.tarantella.tta.webservices.vsbim
Class UserDefinedSGDBroker
java.lang.Object
com.tarantella.tta.webservices.vsbim.SGDBroker
com.tarantella.tta.webservices.vsbim.UserDefinedSGDBroker
- All Implemented Interfaces:
- IVirtualServerBroker
public class UserDefinedSGDBroker
- extends SGDBroker
This class extends SGDBroker
.
It gets its list of servers in the same way as that class, but also adds a
candidate that allows a user to define the details of the server on which the
application is launched.
- Since:
- 1.3
Fields inherited from interface com.tarantella.tta.webservices.vsbim.IVirtualServerBroker |
APP_NAME, CONNECTION_PROTOCOL, DEFAULT_TYPE, DOMAIN, NO_OVERRIDES_FAILOVER, PARAMS, SGD_IDENTITY, SGD_IDENTITY_PREFIX_AD, SGD_IDENTITY_PREFIX_ANON, SGD_IDENTITY_PREFIX_ENS, SGD_IDENTITY_PREFIX_NTAUTH, SGD_IDENTITY_PREFIX_SECURID, SGD_IDENTITY_PREFIX_THIRDPARTY, SGD_IDENTITY_PREFIX_USER, SGD_IDENTITY_PREFIXES, VSB_DOMAIN, VSB_PASSWORD, VSB_USERNAME |
Method Summary |
java.util.Map<java.lang.String,java.util.List<ICandidateServer>> |
getCandidateServers(java.util.Map<java.lang.String,java.lang.String> parameters)
Return a Map of candidate servers for a launch. |
void |
initialise(java.util.Map<java.lang.String,java.lang.String> initialisationParameters)
Initialise using the given parameters. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CREATE_APPSERVER
public static final java.lang.String CREATE_APPSERVER
- See Also:
- Constant Field Values
UserDefinedSGDBroker
public UserDefinedSGDBroker()
initialise
public void initialise(java.util.Map<java.lang.String,java.lang.String> initialisationParameters)
throws VirtualServerBrokerException
- Initialise using the given parameters.
Optional Parameters:
Key IVirtualServerBroker.PARAMS
This string can contain the following flags:
CREATE_APPSERVER
- A boolean flag that controls whether a user-defined
server created by this broker should have its permanent
flag set. If true
, SGD creates an application server
object in the datastore for this server if one does not already exist.
- Specified by:
initialise
in interface IVirtualServerBroker
- Overrides:
initialise
in class SGDBroker
- Parameters:
initialisationParameters
- The parameters to use when initialising
the broker.
- Throws:
VirtualServerBrokerException
- if there was a problem during
initialisation.- Since:
- 1.3
getCandidateServers
public java.util.Map<java.lang.String,java.util.List<ICandidateServer>> getCandidateServers(java.util.Map<java.lang.String,java.lang.String> parameters)
throws VirtualServerBrokerAuthException,
VirtualServerBrokerException
- Description copied from class:
SGDBroker
- Return a
Map
of candidate servers for a launch.
Mandatory parameters:
The mapping is from the broker specified type,
see ICandidateServer.getType()
to a list ILaunchCandidates that support that type of application.
- Specified by:
getCandidateServers
in interface IVirtualServerBroker
- Overrides:
getCandidateServers
in class SGDBroker
- Parameters:
parameters
- Parameters used to pick candidate application servers.
- Returns:
- A map of candidate servers. It is never null.
- Throws:
VirtualServerBrokerAuthException
- If there was a problem
authenticating with the SGD server.
VirtualServerBrokerException
- if there was a problem getting launch
candidates.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.