public interface TestRegistry extends ServiceManagerSupport, com.itko.lisa.net.LisaServerObject, com.itko.lisa.coordinator.PersistentMap
getCoordinatorServer(String)
and passed null or empty
string, you would get a random coordinator server from the Default lab. If
you called getCoordinatorServer("@PerfLab") you would get a random
coordServer from the PerfLab lab. If you called
getCoordinatorServer("MyCS@PerfLab") you would get the 'MyCS' coordServer
from the PerfLab lab (if there *is* a coordServer with that name, if there
isn't you'd get a RemoteException. These examples hold true for
getSimulator(String)
and
getVirtualServiceEnvironment(String)
. If you really want to fully
qualify the name you could pass "tcp://some.machine.com:2014/MySuperFastSimulator@SomeLab"CoordinatorServer
,
Coordinator
Modifier and Type | Interface and Description |
---|---|
static class |
TestRegistry.When |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyrightNotice |
static java.lang.String |
DEF_REGISTRY_TARGET |
Modifier and Type | Method and Description |
---|---|
com.itko.lisa.acl.User |
authenticateAndAuthorizeUser(java.lang.String username,
java.lang.String hashedPassword)
This method will authenticate the user ID passed in.
|
com.itko.lisa.acl.User |
authenticateUser(java.lang.String username,
java.lang.String hashedPassword)
Deprecated.
|
void |
bringDownCloudLabs(java.lang.String fqLabName,
java.lang.String stgUnique) |
void |
confirmLicenseRoom(int instances)
This method needs to remain in place for backward compatibility
|
void |
createAuditLogEntry(com.itko.lisa.acl.AuditLog auditLog)
Creates an entry in the audit log, for example based upon a user action that results in an allowed/denied
permission check.
|
void |
createAuditLogEntry(java.lang.String username,
java.lang.String roleName,
com.itko.lisa.acl.standards.permissions.shared.IActivity permission,
boolean allowed)
Creates an entry in the audit log, for example based upon a user action that results in an allowed/denied
permission check.
|
java.lang.String |
createUserSession(com.itko.lisa.acl.User user)
This method is used to create a user session with the registry.
|
java.lang.String |
createUserSession(com.itko.lisa.acl.User user,
java.lang.String userHostName,
java.lang.String appName,
java.lang.String appHost) |
void |
destroyUserSession(java.lang.String securityToken)
This method is used to destroy a user session with the registry.
|
void |
dumpAllServerThreads(java.lang.String tag)
Diagnostic tool, internal use only.
|
void |
expandLab(java.lang.String uniqueId,
java.lang.String dcmLabName,
int appId,
int simsToMake,
int capPerSim,
com.itko.lisa.coordinator.Lab lab,
java.lang.String coordinatorServerName)
Takes an existing test lab and expands it's load generating capacity
|
Coordinator |
findCoordinator(java.lang.String locator)
This method is used to locate a coordinator by its locator descriptor.
|
java.util.Map<java.lang.String,java.lang.Integer> |
findSimulatorsForLoad(java.lang.Integer instances,
java.lang.String coordServerName,
com.itko.lisa.test.Configuration config)
This method will work with all known simulators to get the given number
of instances placed on the running Simulators
The default implementation of the TestRegistry does not attempt to
atomically stage tests, it would be too expensive.
|
java.util.Map<java.lang.String,com.itko.lisa.remote.IAgentInfo> |
getAgents()
Will return a clone of the list of all Agents initializing or running.
|
java.util.Map<java.lang.String,java.util.Map<com.itko.lisa.coordinator.ServiceName,java.util.Map<java.lang.String,java.lang.Number>>> |
getAllMetrics()
Gets the Registry metric data.
|
java.util.Map<java.lang.String,java.util.Map<com.itko.lisa.coordinator.ServiceName,java.util.Map<java.lang.String,java.lang.Number>>> |
getAllMetrics(int lastx_minutes) |
java.util.Properties |
getAuthenticationConfigProperties() |
java.lang.String |
getAuthenticationModuleClassName() |
java.net.URL[] |
getAuthenticationModuleURLs() |
com.itko.lisa.acl.User |
getAuthorizations(java.lang.String username,
java.lang.String password,
boolean autoAddUser,
java.lang.String... roles)
This method will return the
User object for the username. |
java.util.List<com.itko.lisa.acl.standards.shared.IResourceGroup> |
getAvailableResourceGroups()
Gets all resource groups
|
java.lang.Integer |
getBrokerPort() |
java.util.List<com.itko.util.StringGeneratorPattern> |
getBuiltInPatterns()
Gets the patterns that we support, perhaps with localised names
|
com.itko.lisa.net.RegistryClient |
getClient() |
com.itko.lisa.coordinator.ContinuousValidationService |
getContinuousValidationService()
The LISA Registry initializes the continuous validation service, so here is how to reach
him.
|
CoordinatorServer |
getCoordinatorServer(java.lang.String name)
Will return a String URL reference to a CoordinatorServer given its correct name
|
CoordinatorServer |
getCoordinatorServer(java.lang.String name,
com.itko.lisa.model.mar.ModelArchiveInfo marInfo)
Will return a String URL reference to a CoordinatorServer given its correct name
|
java.util.Map<java.lang.String,CoordinatorServer> |
getCoordinatorServers(java.lang.String coordServerName)
Will retrieve a clone of the table of all currently running Coordinator Servers
The table is [ name, StringURL ] where the StringURL is used by the networking layer to reach that server
|
java.util.List<java.lang.String> |
getCoordinatorServersAvailableToStage(java.lang.String labName)
This gives you a list of all public CoordinatorServer names -- both live and possible to stage via
a VLM in the named lab.
|
java.lang.String[] |
getHistoryDBConnectInfo() |
java.lang.String |
getIPAddress()
Gets the IP address for this registry.
|
java.lang.String |
getJavaVersion()
Gets the Java Version.
|
java.lang.String |
getKeyName()
The key name of the Registry.
|
com.itko.lisa.coordinator.Lab |
getLab(com.itko.lisa.coordinator.LabKey labKey) |
com.itko.lisa.coordinator.Lab |
getLab(java.lang.String fqLabName)
Gets a lab from the collection.
|
java.util.List<java.lang.String> |
getLabNames()
This method returns a flat list of the names of all of the known labs.
|
java.util.List<com.itko.lisa.coordinator.Lab> |
getLabs()
Will return a clone of the list of all labs initializing or running.
|
java.lang.String |
getLisaConsoleUrl()
Gets the Lisa console URL for this registry.
|
java.lang.String |
getLisaVersion()
Gets the version for the registry.
|
java.util.List<com.itko.lisa.dradis.client.ComponentBeanEx> |
getLiveAgents()
Will return the list of all live agents.
|
com.itko.lisa.dradis.client.ComponentBeanEx |
getLiveWorkstation(java.lang.String workstationName) |
java.util.List<com.itko.lisa.dradis.client.ComponentBeanEx> |
getLiveWorkstations()
Will return the list of all live workstations.
|
com.itko.lisa.dradis.client.RegistryBean |
getMetaData()
Gets the Registry metadata.
|
java.lang.String |
getName()
The name of this LISA Registry
|
java.lang.String |
getOsName()
Gets the OS used for this registry.
|
java.lang.String[] |
getPathfinderDbInfo() |
java.lang.String |
getRegistryPort()
Gets the port used for this registry.
|
long |
getRegistryUptime()
Gets the Registry uptime in milliseconds.
|
java.util.List<com.itko.lisa.acl.standards.shared.IResource> |
getResourcesForGroups(java.util.List<java.lang.String> resourceGroups,
com.itko.lisa.acl.standards.shared.IResource.ResourceTypes type)
Retrieves resources from given resource groups based on the given resource type
|
java.util.Collection<com.itko.lisa.coordinator.Lab> |
getRunnableLabList()
This method returns the list of runnable labs (aka templates).
|
com.itko.lisa.acl.User |
getSessionUser(java.lang.String securityToken)
This method returns the user object associated with the specified user session.
|
SimulatorServer |
getSimulator(java.lang.String name)
Will return a reference to a SimulatorServer given its correct name
|
java.util.Map<java.lang.String,SimulatorServer> |
getSimulators(java.lang.String labName)
Will retrieve a clone of the table of all currently running Simulators
The table is [ name, StringURL ] where the StringURL is used by the networking layer to reach that server
|
java.util.Properties |
getSiteProperties()
This is how various LISA applications access the site-wide properties stored at the LISA Registry server
|
long |
getStartTime()
Gets the Registry start time.
|
com.itko.lisa.coordinator.VirtualServiceEnvironment |
getVirtualServiceEnvironment(java.lang.String name)
Will return a reference to a VirtualServiceEnvironment given its correct name
|
java.util.Map<java.lang.String,com.itko.lisa.coordinator.VirtualServiceEnvironment> |
getVirtualServiceEnvironments(java.lang.String labName)
Will retrieve a clone of the table of all currently running VSEs in the named lab
The table is [ name, StringURL ] where the StringURL is used by the networking layer to reach that server
|
java.util.Map<java.lang.String,com.itko.lisa.coordinator.VirtualServiceEnvironment> |
getVirtualServiceEnvironmentsWithLab()
Will retrieve a clone of the table of all currently running VSEs with the lab name appended as @labName
The table is [ name, StringURL ] where the StringURL is used by the networking layer to reach that server
|
<T extends com.itko.lisa.vse.remote.model.VSERemotePayload> |
getVSERemoteMessageServer(java.lang.String remoteMessageServerName)
Gets a reference to the VSE Remote Message Server (something on the VSE or Recorder side
that agents can talk to).
|
java.util.Map<java.lang.String,com.itko.lisa.remote.IAgentInfo> |
getWorkstations()
Will return a clone of the list of all Workstations initializing or running.
|
boolean |
isCloudEnabled()
This method returns true if a IaaS provider has been configured,
false otherwise.
|
boolean |
isLocal()
A local test registry is started by LISA Workstations when there is no TestRegistry available.
|
boolean |
isSecurityEnabled() |
void |
killRunnableLab(com.itko.lisa.coordinator.LabKey labKey) |
void |
logMessage(com.itko.lisa.coordinator.ServiceName sn,
java.lang.String message)
Remotely log a formatted log4j message to the registry.
|
void |
putCoordinatorServer(java.lang.String labName,
com.itko.lisa.net.CoordinatorServerClient fUrl)
This method enables you to construct a new CoordinatorServer
and plug it into this manager so that it is visible throughout the network
and can be health monitored.
|
void |
putLab(com.itko.lisa.coordinator.Lab labToPut)
Adds a Lab to the table that is holding Lab objects.
|
void |
putLiveWorkstation(com.itko.lisa.dradis.client.ComponentBeanEx cb) |
void |
putSimulator(java.lang.String labName,
com.itko.lisa.net.SimulatorServerClient sUrl)
This method enables you to construct a new SimulatorServer
and plug it into this manager so that it is visible throughout the network
and can be health monitored.
|
void |
putVirtualServiceEnvironment(java.lang.String labName,
com.itko.lisa.net.VSEClient vseUrl)
This method enables you to construct a new VirtualServiceEnvironment
and plug it into this manager so that it is visible throughout the network
and can be health monitored.
|
void |
putVSERemoteMessageServer(java.lang.String labName,
com.itko.lisa.vse.remote.VSERemoteMessageClient<? extends com.itko.lisa.vse.remote.model.VSERemotePayload> vseRemoteMessageServer)
Registers a new VSERemoteMessageServer so it can be easily looked up by an agent
|
com.itko.lisa.coordinator.CoordinatorBridge |
registerLocalRun(java.lang.String uniqueId)
This method registers a new model execution run that is being staged in a local context,
returning a handle to the object to which coordinator data should be forwarded.
|
void |
remoteInitThisServer(com.itko.lisa.net.RemoteInitServerClient ris)
Method that can be used by the registry to remotely initialize the server and wire it to this registry
|
void |
removeCoordinatorServer(java.lang.String labName,
com.itko.lisa.coordinator.ServiceName serviceName)
Allows you to remove a Coordinator Server from the collection.
|
void |
removeCoordinatorServer(java.lang.String labName,
com.itko.lisa.coordinator.ServiceName serviceName,
com.itko.lisa.dradis.client.ComponentMetricsBean cmb) |
void |
removeLab(com.itko.lisa.coordinator.LabKey labKey)
Removed the lab from the table tracking the labs by it's id rather than FQName.
|
void |
removeLab(java.lang.String fqLabName)
Removed the lab from the table tracking the labs.
|
void |
removeLiveWorkstation(com.itko.lisa.dradis.client.ComponentBeanEx cb) |
void |
removeSimulator(java.lang.String labName,
com.itko.lisa.coordinator.ServiceName name)
Allows you to remove a SimulatorServer from the collection.
|
void |
removeSimulator(java.lang.String labName,
com.itko.lisa.coordinator.ServiceName name,
com.itko.lisa.dradis.client.ComponentMetricsBean cmb) |
void |
removeVirtualServiceEnvironment(java.lang.String labName,
com.itko.lisa.coordinator.ServiceName name)
Allows you to remove a VirtualServiceEnvironment from the collection.
|
void |
removeVirtualServiceEnvironment(java.lang.String labName,
com.itko.lisa.coordinator.ServiceName name,
com.itko.lisa.dradis.client.ComponentMetricsBean cmb) |
void |
removeVSERemoteMessageServer(java.lang.String labName,
com.itko.lisa.coordinator.ServiceName serviceName)
Removes a VSERemoteMessageServer
|
void |
scheduleTask(com.itko.lisa.coordinator.IScheduleTask task)
Lets you add a task to registry that will execute a thread to be run in a scheduled manner.
|
void |
sendAccessEventToDradis(com.itko.lisa.dradis.client.AccessEventLogBeanEx aelbex) |
void |
sendAccessEventToDradis(java.lang.String securityToken,
java.lang.String compName,
java.lang.String compHostName,
java.lang.String userid,
java.lang.String hostName,
java.util.List<java.lang.String> licenseTypes,
TestRegistry.When when) |
void |
sendEventsToDradis(java.util.List<com.itko.lisa.dradis.client.ComponentEventsBean> cebeans) |
void |
sendMetricsToDradis(java.util.List<com.itko.lisa.dradis.client.ComponentMetricsBean> cmbeans) |
void |
shutdown()
Shut down the registry server and associated services
todo: Some sort of security mechanism?
|
com.itko.lisa.coordinator.Lab |
startRunnableLab(com.itko.lisa.coordinator.LabKey labKey) |
void |
unregisterLocalRun(java.lang.String uniqueId)
This method unregisters a model execution run that is being destroyed in a local
context.
|
void |
updateUserSession(com.itko.lisa.acl.User user,
java.lang.String... utilizedLicenseTypes) |
dumpHeap, dumpThreads, gc, getAttachedMobileDevices, getDiagnosticZip, getPerformanceStats, getRegistry, popLogging, pushLogging, serviceReset, serviceStatus, serviceStop
static final java.lang.String copyrightNotice
static final java.lang.String DEF_REGISTRY_TARGET
java.lang.String getName() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getKeyName() throws java.rmi.RemoteException
java.rmi.RemoteException
com.itko.lisa.net.RegistryClient getClient() throws java.rmi.RemoteException
getClient
in interface com.itko.lisa.net.LisaServerObject
java.rmi.RemoteException
java.util.Map<java.lang.String,CoordinatorServer> getCoordinatorServers(java.lang.String coordServerName) throws java.rmi.RemoteException
coordServerName
- [opt] if null this returns only public Coordinators; otherwise, publics and
the private coordinators available to this coordinator. Names can be qualified
with lab names, see the class level javadocjava.rmi.RemoteException
CoordinatorServer
java.util.List<com.itko.lisa.coordinator.Lab> getLabs() throws java.rmi.RemoteException
java.rmi.RemoteException
Lab
java.util.List<java.lang.String> getLabNames() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Collection<com.itko.lisa.coordinator.Lab> getRunnableLabList() throws java.rmi.RemoteException
java.rmi.RemoteException
com.itko.lisa.coordinator.Lab startRunnableLab(com.itko.lisa.coordinator.LabKey labKey) throws java.rmi.RemoteException
java.rmi.RemoteException
void killRunnableLab(com.itko.lisa.coordinator.LabKey labKey) throws java.rmi.RemoteException
java.rmi.RemoteException
com.itko.lisa.coordinator.Lab getLab(com.itko.lisa.coordinator.LabKey labKey) throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isCloudEnabled() throws java.rmi.RemoteException
java.rmi.RemoteException
void putLab(com.itko.lisa.coordinator.Lab labToPut) throws java.rmi.RemoteException
labToPut
- the lab that you want to add to the registry.java.rmi.RemoteException
com.itko.lisa.coordinator.Lab getLab(java.lang.String fqLabName) throws java.rmi.RemoteException
fqLabName
- the fully qualified name you are looking forjava.rmi.RemoteException
void removeLab(java.lang.String fqLabName) throws java.rmi.RemoteException
fqLabName
- fully qualified lab name.java.rmi.RemoteException
void removeLab(com.itko.lisa.coordinator.LabKey labKey) throws java.rmi.RemoteException
labKey
- java.rmi.RemoteException
com.itko.lisa.coordinator.CoordinatorBridge registerLocalRun(java.lang.String uniqueId) throws java.rmi.RemoteException
uniqueId
- a unique ID by which the coordinator will be known.java.rmi.RemoteException
void unregisterLocalRun(java.lang.String uniqueId) throws java.rmi.RemoteException
uniqueId
- a unique ID by which the coordinator is known.java.rmi.RemoteException
Coordinator findCoordinator(java.lang.String locator) throws java.rmi.RemoteException
locator
- the locator descriptor to use in finding the desired coordinator.null
.java.rmi.RemoteException
java.util.List<java.lang.String> getCoordinatorServersAvailableToStage(java.lang.String labName) throws java.rmi.RemoteException
labName
- Null or empty is ok, that means 'Default' otherwise the named labjava.rmi.RemoteException
CoordinatorServer
CoordinatorServer getCoordinatorServer(java.lang.String name) throws java.lang.Exception
name
- the CS you want, or empty/null/"auto" for a random one. Names can be qualified
with lab names, see the class level javadocjava.rmi.RemoteException
java.lang.Exception
CoordinatorServer
CoordinatorServer getCoordinatorServer(java.lang.String name, com.itko.lisa.model.mar.ModelArchiveInfo marInfo) throws java.lang.Exception
name
- the CS you want, or empty/null/"auto" for a random one. Names can be qualified
with lab names, see the class level javadocjava.rmi.RemoteException
java.lang.Exception
CoordinatorServer
void putCoordinatorServer(java.lang.String labName, com.itko.lisa.net.CoordinatorServerClient fUrl) throws java.rmi.RemoteException, TestRunException
labName
- fUrl
- the network url to the CS itselfjava.rmi.RemoteException
TestRunException
- if an application error ocurredvoid removeCoordinatorServer(java.lang.String labName, com.itko.lisa.coordinator.ServiceName serviceName) throws java.rmi.RemoteException
labName
- java.rmi.RemoteException
void removeCoordinatorServer(java.lang.String labName, com.itko.lisa.coordinator.ServiceName serviceName, com.itko.lisa.dradis.client.ComponentMetricsBean cmb) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.lang.String,SimulatorServer> getSimulators(java.lang.String labName) throws java.rmi.RemoteException
labName
- [opt] if null this returns only public Simulators; otherwise, publics and
the private sims available to this coordinator. Names can be qualified
with lab names, see the class level javadocjava.rmi.RemoteException
SimulatorServer getSimulator(java.lang.String name) throws java.rmi.RemoteException
name
- the SimulatorServer you want. Names can be qualified
with lab names, see the class level javadocjava.rmi.RemoteException
SimulatorServer
void putSimulator(java.lang.String labName, com.itko.lisa.net.SimulatorServerClient sUrl) throws java.rmi.RemoteException, TestRunException
labName
- can be null or empty for default lab or a named labsUrl
- the String URL to the SimulatorServer itselfjava.rmi.RemoteException
TestRunException
SimulatorServer
void removeSimulator(java.lang.String labName, com.itko.lisa.coordinator.ServiceName name) throws java.rmi.RemoteException
labName
- labName
- name
- the SimulatorServer you want removedjava.rmi.RemoteException
void removeSimulator(java.lang.String labName, com.itko.lisa.coordinator.ServiceName name, com.itko.lisa.dradis.client.ComponentMetricsBean cmb) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Properties getSiteProperties() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.lang.String,java.lang.Integer> findSimulatorsForLoad(java.lang.Integer instances, java.lang.String coordServerName, com.itko.lisa.test.Configuration config) throws java.rmi.RemoteException, TestRunException
instances
- is the number of concurrent users you want to stage in
Simulators. This would be every instance that you don't want local
to the Coordinator.coordServerName
- is the name of the Coordinator that is making the request.
Can be null for local staging but we want to know in case you have private
Simulators at your disposal. Names can be qualified with lab names, see
the class level javadoc.TestRunException
- if there were not enough Simulators to stage the
requested number of instances, or an error occurred trying to gather
the stats.java.rmi.RemoteException
void confirmLicenseRoom(int instances) throws java.rmi.RemoteException, TestRunException
java.rmi.RemoteException
TestRunException
com.itko.lisa.coordinator.ContinuousValidationService getContinuousValidationService() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.lang.String,com.itko.lisa.coordinator.VirtualServiceEnvironment> getVirtualServiceEnvironments(java.lang.String labName) throws java.rmi.RemoteException
labName
- the lab name. empty or null is ok, that means the default lab.java.rmi.RemoteException
VirtualServiceEnvironment
java.util.Map<java.lang.String,com.itko.lisa.coordinator.VirtualServiceEnvironment> getVirtualServiceEnvironmentsWithLab() throws java.rmi.RemoteException
java.rmi.RemoteException
VirtualServiceEnvironment
com.itko.lisa.coordinator.VirtualServiceEnvironment getVirtualServiceEnvironment(java.lang.String name) throws java.rmi.RemoteException
name
- the VSE you want. Names can be qualified with lab names, see the class level javadocjava.rmi.RemoteException
VirtualServiceEnvironment
void putVirtualServiceEnvironment(java.lang.String labName, com.itko.lisa.net.VSEClient vseUrl) throws java.rmi.RemoteException, TestRunException
labName
- null/empty is ok, that's the default labvseUrl
- the String URL to the VSE itselfjava.rmi.RemoteException
TestRunException
- if an application error occurredvoid removeVirtualServiceEnvironment(java.lang.String labName, com.itko.lisa.coordinator.ServiceName name) throws java.rmi.RemoteException
name
- the VSE you want removedjava.rmi.RemoteException
void removeVirtualServiceEnvironment(java.lang.String labName, com.itko.lisa.coordinator.ServiceName name, com.itko.lisa.dradis.client.ComponentMetricsBean cmb) throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isLocal() throws java.rmi.RemoteException
java.rmi.RemoteException
void shutdown() throws java.rmi.RemoteException
java.rmi.RemoteException
@Deprecated com.itko.lisa.acl.User authenticateUser(java.lang.String username, java.lang.String hashedPassword) throws java.rmi.RemoteException, com.itko.lisa.acl.AuthenticationException
User
object that holds
information about what roles are assigned to the user and therefore what activities can be performed by this user.
It will return null
if the user is not found in the database or we are not able to add the user to
the database for some reason.
This method has be deprecated since 6.0.5. Use authenticateAndAuthorizeUser()
instead for
default authentication/authorization provided by iTKO. Use getAuthorizations()
for getting
authorization data for the user that was autorized by some custom means.username
- The username to authenticate.hashedPassword
- The password, hashed using the SHA-256 algorithm.java.rmi.RemoteException
- If a remote exception occurs.com.itko.lisa.acl.AuthenticationException
- If a login exception occurs.com.itko.lisa.acl.User authenticateAndAuthorizeUser(java.lang.String username, java.lang.String hashedPassword) throws java.rmi.RemoteException, com.itko.lisa.acl.AuthenticationException
User
object that holds
information about what roles are assigned to the user and therefore what activities can be performed by this user.
It will return null
if the user is not found in the database.username
- The username to authenticate.hashedPassword
- The password, hashed using the SHA-256 algorithm.java.rmi.RemoteException
- If a remote exception occurs.com.itko.lisa.acl.AuthenticationException
- If a login exception occurs.com.itko.lisa.acl.User getAuthorizations(java.lang.String username, java.lang.String password, boolean autoAddUser, java.lang.String... roles) throws java.rmi.RemoteException, com.itko.lisa.acl.AuthenticationException
User
object for the username. This object holds the
information about what roles are assigned to the user and therefore what activities can be performed by this user.
It will return null
if the user is not found in the database or we are not able to add the user to
the database for some reason (if autoAddUser is set to true).username
- The username to authenticate.password
- The passwordautoAddUser
- boolean indicating that if the user doesn't already exist in ACL db then we should add it.roles
- one or more roles that need to be assigned to the user when added if autoAddUser is truejava.rmi.RemoteException
- If a remote exception occurs.com.itko.lisa.acl.AuthenticationException
- If a login exception occurs.void createAuditLogEntry(java.lang.String username, java.lang.String roleName, com.itko.lisa.acl.standards.permissions.shared.IActivity permission, boolean allowed) throws java.rmi.RemoteException
username
- The username of the user requesting to perform an action.roleName
- The role name of the user requesting to perform an action.permission
- The permission associated with the requested action.allowed
- True if the permission is allowed, otherwise false.java.rmi.RemoteException
- If a remote exception occurs.void createAuditLogEntry(com.itko.lisa.acl.AuditLog auditLog) throws java.rmi.RemoteException
auditLog
- object holding the info to be logged in the audit log.java.rmi.RemoteException
java.lang.String createUserSession(com.itko.lisa.acl.User user) throws java.rmi.RemoteException
user
- the user to create a session for.java.rmi.RemoteException
java.lang.String createUserSession(com.itko.lisa.acl.User user, java.lang.String userHostName, java.lang.String appName, java.lang.String appHost) throws java.rmi.RemoteException
java.rmi.RemoteException
void updateUserSession(com.itko.lisa.acl.User user, java.lang.String... utilizedLicenseTypes) throws java.rmi.RemoteException
java.rmi.RemoteException
com.itko.lisa.acl.User getSessionUser(java.lang.String securityToken) throws java.rmi.RemoteException
securityToken
- the security token to get the user for.java.rmi.RemoteException
void destroyUserSession(java.lang.String securityToken) throws java.rmi.RemoteException
securityToken
- the security token that represents the user session to destroy.java.rmi.RemoteException
void dumpAllServerThreads(java.lang.String tag) throws java.rmi.RemoteException
java.rmi.RemoteException
boolean isSecurityEnabled() throws java.rmi.RemoteException
java.rmi.RemoteException
- If an unexpected exception occurs.java.lang.String getAuthenticationModuleClassName() throws java.rmi.RemoteException
IAuthenticationModule
.java.rmi.RemoteException
- If an unexpected exception occurs.java.net.URL[] getAuthenticationModuleURLs() throws java.rmi.RemoteException
java.rmi.RemoteException
- If an unexpected exception occurs.java.util.Properties getAuthenticationConfigProperties() throws java.rmi.RemoteException
java.rmi.RemoteException
- If an unexpected exception occurs.void bringDownCloudLabs(java.lang.String fqLabName, java.lang.String stgUnique) throws com.itko.lisa.coordinator.LabException, java.rmi.RemoteException
com.itko.lisa.coordinator.LabException
java.rmi.RemoteException
void expandLab(java.lang.String uniqueId, java.lang.String dcmLabName, int appId, int simsToMake, int capPerSim, com.itko.lisa.coordinator.Lab lab, java.lang.String coordinatorServerName) throws java.rmi.RemoteException
uniqueId
- - the unique staging id of the test requesting additional servers.dcmLabName
- - the lab template name to use. When supplied, DCM will manage that lab for the additional
servers.appId
- - the app id of the role to launch more of.simsToMake
- - the total server count you wantcapPerSim
- - the capacity of instances the server can handlelab
- - a reference to the parent lab that the test is contained in.LabException
java.rmi.RemoteException
void logMessage(com.itko.lisa.coordinator.ServiceName sn, java.lang.String message) throws java.rmi.RemoteException
java.rmi.RemoteException
void remoteInitThisServer(com.itko.lisa.net.RemoteInitServerClient ris) throws java.rmi.RemoteException
ris
- Reference to the remote init server client that you would like to initialize.java.rmi.RemoteException
java.lang.Integer getBrokerPort() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String[] getPathfinderDbInfo() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String[] getHistoryDBConnectInfo() throws java.rmi.RemoteException
java.rmi.RemoteException
void scheduleTask(com.itko.lisa.coordinator.IScheduleTask task) throws java.rmi.RemoteException
task
- java.rmi.RemoteException
<T extends com.itko.lisa.vse.remote.model.VSERemotePayload> com.itko.lisa.vse.remote.VSERemoteMessageServer<T> getVSERemoteMessageServer(java.lang.String remoteMessageServerName) throws java.rmi.RemoteException
remoteMessageServerName
- - the remote message server you wantjava.rmi.RemoteException
void putVSERemoteMessageServer(java.lang.String labName, com.itko.lisa.vse.remote.VSERemoteMessageClient<? extends com.itko.lisa.vse.remote.model.VSERemotePayload> vseRemoteMessageServer) throws java.rmi.RemoteException
labName
- vseRemoteMessageServer
- java.rmi.RemoteException
void removeVSERemoteMessageServer(java.lang.String labName, com.itko.lisa.coordinator.ServiceName serviceName) throws java.rmi.RemoteException
labName
- serviceName
- java.rmi.RemoteException
com.itko.lisa.dradis.client.ComponentBeanEx getLiveWorkstation(java.lang.String workstationName) throws java.lang.Exception
java.lang.Exception
void putLiveWorkstation(com.itko.lisa.dradis.client.ComponentBeanEx cb) throws java.rmi.RemoteException, TestRunException
java.rmi.RemoteException
TestRunException
void removeLiveWorkstation(com.itko.lisa.dradis.client.ComponentBeanEx cb) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<com.itko.util.StringGeneratorPattern> getBuiltInPatterns() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getLisaVersion() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getLisaConsoleUrl() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getOsName() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getIPAddress() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getRegistryPort() throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getJavaVersion() throws java.rmi.RemoteException
java.rmi.RemoteException
long getRegistryUptime() throws java.rmi.RemoteException
java.rmi.RemoteException
long getStartTime() throws java.rmi.RemoteException
java.rmi.RemoteException
com.itko.lisa.dradis.client.RegistryBean getMetaData() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.lang.String,java.util.Map<com.itko.lisa.coordinator.ServiceName,java.util.Map<java.lang.String,java.lang.Number>>> getAllMetrics() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.lang.String,java.util.Map<com.itko.lisa.coordinator.ServiceName,java.util.Map<java.lang.String,java.lang.Number>>> getAllMetrics(int lastx_minutes) throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<com.itko.lisa.acl.standards.shared.IResourceGroup> getAvailableResourceGroups() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<com.itko.lisa.acl.standards.shared.IResource> getResourcesForGroups(java.util.List<java.lang.String> resourceGroups, com.itko.lisa.acl.standards.shared.IResource.ResourceTypes type) throws java.rmi.RemoteException
resourceGroups
- type
- java.rmi.RemoteException
java.util.List<com.itko.lisa.dradis.client.ComponentBeanEx> getLiveWorkstations() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<com.itko.lisa.dradis.client.ComponentBeanEx> getLiveAgents() throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Map<java.lang.String,com.itko.lisa.remote.IAgentInfo> getWorkstations() throws java.rmi.RemoteException
java.rmi.RemoteException
IAgentInfo
java.util.Map<java.lang.String,com.itko.lisa.remote.IAgentInfo> getAgents() throws java.rmi.RemoteException
java.rmi.RemoteException
IAgentInfo
void sendEventsToDradis(java.util.List<com.itko.lisa.dradis.client.ComponentEventsBean> cebeans) throws java.rmi.RemoteException
java.rmi.RemoteException
void sendMetricsToDradis(java.util.List<com.itko.lisa.dradis.client.ComponentMetricsBean> cmbeans) throws java.rmi.RemoteException
java.rmi.RemoteException
void sendAccessEventToDradis(java.lang.String securityToken, java.lang.String compName, java.lang.String compHostName, java.lang.String userid, java.lang.String hostName, java.util.List<java.lang.String> licenseTypes, TestRegistry.When when) throws java.rmi.RemoteException
java.rmi.RemoteException
void sendAccessEventToDradis(com.itko.lisa.dradis.client.AccessEventLogBeanEx aelbex) throws java.rmi.RemoteException
java.rmi.RemoteException
Copyright © 1998-2014 CA, Inc. All Rights Reserved.