|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.friendshipsystems.fsshresourcemanager.FSshResourceManager
public class FSshResourceManager
The xml-rpc handler class that implements the FIResourceManager interface.
All handler objects share one common internal state represented by the FSshResourceManagerState
class.
| Constructor Summary | |
|---|---|
FSshResourceManager()
|
|
| Method Summary | |
|---|---|
int |
addApplication(java.lang.String appName,
int requiredLicenses,
int requiredProcessors,
java.lang.String description,
java.lang.Boolean needsX)
|
java.lang.Boolean |
addAppToHost(int hostId,
int appId,
java.lang.String pathToExe,
int numberOfHardLics,
int prio)
|
int |
addFloatingLicense(int number,
java.lang.String name)
|
int |
addFloatingLicenseWithApp(int appId,
int number,
java.lang.String name)
|
int |
addHost(java.lang.String hostName,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.Boolean isActive,
java.lang.Boolean supportsX)
|
int |
addHost(java.lang.String hostName,
int port,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.String tempDir,
java.lang.String sftpRoot,
java.lang.Boolean isActive,
java.lang.Boolean supportsX,
java.lang.String xPort)
|
int |
addHost(java.lang.String hostName,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.String tempDir,
java.lang.Boolean isActive,
java.lang.Boolean supportsX)
|
int |
addHost(java.lang.String hostName,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.String tempDir,
java.lang.String sftpRoot,
java.lang.Boolean isActive,
java.lang.Boolean supportsX)
|
java.lang.Boolean |
addHostToKnownHosts(int hostId,
java.lang.String hostName,
java.lang.String type,
java.lang.String fingerPrint)
Confirms the fingerprint of a host |
java.lang.String |
addJobCanceler(int osId,
java.lang.String code,
java.lang.String className)
|
int |
addOS(java.lang.String name,
int parentOsId)
|
int |
addOS(java.lang.String name,
int parentOsId,
java.lang.String chdirCommand)
|
int |
addOS(java.lang.String name,
int parentOsId,
java.lang.String chdirCommand,
java.lang.String pathDelimiter)
|
int |
addOS(java.lang.String name,
int parentOsId,
java.lang.String chdirCommand,
java.lang.String pathDelimiter,
java.lang.String cancelerClass)
|
int |
addUser(java.lang.String userName,
java.lang.String password,
int role)
|
int |
addUser(java.lang.String userName,
java.lang.String password,
int role,
java.lang.String email)
|
java.lang.Boolean |
blockSchedule()
Blocks the schedule for new jobs from the current client |
java.lang.Boolean |
blockSchedule(java.lang.String address)
Blocks the schedule for new jobs from the given address |
java.lang.Boolean |
cancelJob(java.lang.String jobID)
Cancels the job with the given id |
java.lang.Boolean |
changeFloatingLicenseName(int floatId,
java.lang.String name)
|
java.lang.Boolean |
changeFloatingLicenseNumber(int floatId,
int number)
|
java.lang.Boolean |
changeHostsOS(int oldOSId,
int newOSId)
|
java.lang.Boolean |
changeOSChdirCommand(int osId,
java.lang.String chdirCommand)
|
java.lang.Boolean |
changeOSJobCanceler(int osId,
java.lang.String className)
|
java.lang.Boolean |
changeOSName(int osId,
java.lang.String newName)
|
java.lang.Boolean |
changeOSParent(int osId,
int parentOsId)
|
java.lang.Boolean |
changeOSParents(int oldParentId,
int newParentId)
|
java.lang.Boolean |
changeOSPathDelimiter(int osId,
java.lang.String pathDelimiter)
|
java.lang.Boolean |
changeUserEmail(int id,
java.lang.String email)
|
java.lang.Boolean |
changeUserPass(int id,
java.lang.String newPass)
|
java.lang.Boolean |
changeUserPassByName(java.lang.String id,
java.lang.String oldPass,
java.lang.String newPass)
|
java.lang.Boolean |
changeUserRole(int id,
int role)
|
java.util.Map<java.lang.String,java.lang.Object> |
checkAuth(java.lang.String userName,
java.lang.String pass)
Checks whether the passed username and password is a valid login for the SshResourceManager |
java.lang.Boolean |
checkHostKnown(int hostId)
Checks whether the host identified by the given id is a known host |
java.lang.Boolean |
cleanUp()
|
java.lang.Boolean |
clearFinishedJobs()
Clears the list of finished jobs |
java.lang.Boolean |
cloneAllAppsFromHostToHost(int from,
int to)
|
java.lang.Boolean |
cloneAppsFromHostToHost(int from,
int to,
java.lang.Object[] appIds)
|
java.lang.Boolean |
commit()
|
java.lang.Boolean |
confirmOutputFilesReceived(java.lang.String jobID)
called to confirm that the result files for the given job were successfully received and can be deleted |
int |
countCurrentRunningJobs()
Returns the number of currently running jobs |
int |
countCurrentWaitingJobs()
Returns the number of currently queued jobs |
java.lang.Boolean |
deleteUser(int id)
|
java.util.Map<java.lang.String,java.lang.Object> |
getActiveApplications()
|
java.util.Map<java.lang.String,java.lang.Object> |
getActiveApplications(int withAuth)
|
java.util.Map<java.lang.String,java.lang.Object> |
getApplicationById(int appId)
|
java.util.Map<java.lang.String,java.lang.Object> |
getApplicationByName(java.lang.String name)
|
java.util.Map<java.lang.String,java.lang.Object> |
getApplicationInfoForHost(int appId,
int hostId)
|
java.lang.Object[] |
getApplications()
|
java.lang.Object[] |
getApplicationsByFloatId(int floatId)
|
java.lang.Object[] |
getApplicationsByHost(int hostId)
|
java.util.Map<java.lang.String,java.lang.Object> |
getAppState()
The state of configured applications |
java.lang.String |
getCancelerCode(java.lang.String className)
|
java.util.Map<java.lang.String,java.lang.Object> |
getFloatingLicense(int floatId)
|
java.util.Map<java.lang.String,java.lang.Object> |
getFloatingLicenseForApp(int appId)
|
java.lang.Object[] |
getFloatingLicenses()
|
int |
getFloatingLicNumberForApp(int appId)
Returns the number of floating licenses for an application |
java.util.Map<java.lang.String,java.lang.Object> |
getHostById(int hostId)
|
java.util.Map<java.lang.String,java.lang.Object> |
getHostByName(java.lang.String hostName)
|
int |
getHostCpus(java.util.List<java.lang.String> list)
Returns the total number of cpus for the given hosts |
java.util.Map<java.lang.String,java.lang.Object> |
getHostInfo(int hostId)
Returns the host information (fingerprint) of a host |
int |
getHostLockedCpus(java.util.List<java.lang.String> list)
Returns the number of locked CPUs for the given hosts |
java.lang.Object[] |
getHosts()
|
java.lang.Object[] |
getHostsByApplication(int appId)
|
java.lang.Object[] |
getHostsByOS(int osId)
|
java.lang.Object[] |
getHostsByOSParent(int parentOsId)
|
java.lang.Object[] |
getHostsByOSParent(int parentOsId,
java.lang.Boolean recursive)
|
java.lang.Object[] |
getHostsByXSupport(java.lang.Boolean supportsX)
|
java.util.Map<java.lang.String,java.lang.Object> |
getHostState()
The state of configured hosts |
java.lang.Object[] |
getJobCancelerImplementations()
|
byte[] |
getJobOutput(java.lang.String jobId)
Returns the console output of a job |
java.util.Map<java.lang.String,java.lang.Object> |
getJobState(java.lang.String caller)
The state of all jobs (queued, running and finished) |
int |
getJobState(java.lang.String jobId,
int taskIndex)
Returns the state of the task with the given index in the job identified by the given id |
int |
getMaxSimultaneousJobs()
Returns the maximum number of jobs running at the same time |
int |
getNumberOfFloatingLicensesForApp(int appId)
|
java.util.Map<java.lang.String,java.lang.Object> |
getOperatingSystemById(int osId)
|
java.lang.Object[] |
getOperatingSystems()
|
java.lang.Object[] |
getOperatingSystemsByParentId(int parentOsId)
|
java.lang.Object[] |
getOperatingSystemsByParentId(int parentOsId,
java.lang.Boolean recursive)
|
java.util.Map<java.lang.String,byte[]> |
getPublicKey()
The public RSA key of the SshResourceManager |
java.lang.Object[] |
getRoles()
|
java.util.Map<java.lang.String,java.lang.Object> |
getSchedulerState()
The Scheduler State |
java.util.Map<java.lang.String,java.lang.Object> |
getState(java.lang.String caller)
Returns the full state of the SshResourceManager, including Jobs, Apps, Hosts, Blocking state, Users... |
java.util.Map<java.lang.String,java.lang.Object> |
getUser(int id)
|
java.util.Map<java.lang.String,java.lang.Object> |
getUserByName(java.lang.String name)
|
java.lang.Object[] |
getUsers()
|
java.lang.Object[] |
getUsersByRole(int role)
|
java.util.Map<java.lang.String,java.lang.Object> |
getUserState()
The state of configured users |
java.lang.Object[] |
getXHosts()
|
java.lang.Boolean |
globalScheduleBlock()
Blocks the scheduling of all jobs |
java.lang.Boolean |
globalScheduleUnblock()
Releases the global block of scheduling |
java.lang.Boolean |
hasDefaultXForward()
|
void |
init(FSshResourceManagerState state)
|
int |
isHostLocked(java.util.List<java.lang.String> list)
Returns whether the hosts with the given hostinfo are locked |
java.lang.Boolean |
lockHost(java.util.List<java.lang.String> list)
Locks hosts matching the given hostInfos |
static boolean |
lookupRole(java.lang.String method,
FUserRole role)
Determines whether a given user role is sufficient to call a certain method |
java.lang.Boolean |
releaseFloatingLicsOfApp(int appId,
int amount)
releases a number of floating licenses of an application |
java.lang.Boolean |
removeAppFromHost(int hostId,
int appId)
|
java.lang.Boolean |
removeApplication(int appId)
|
java.lang.Boolean |
removeFloatingLicense(int floatId)
|
java.lang.Boolean |
removeHost(int hostId)
|
java.lang.Boolean |
removeHostFromKnownHosts(int hostId)
Removes the entry for the given host from the known hosts |
java.lang.Boolean |
removeOS(int osId)
|
java.util.Map<java.lang.String,java.lang.Object> |
requestOutputFiles(java.lang.String jobId)
Requests the output data of a job marshalled into a map |
java.util.Map<java.lang.String,java.lang.Object> |
requestOutputFileServerPort()
Requests the port of the result file server in order to request the output of a job |
java.lang.Boolean |
resetAppToHost(int hostId,
int appId)
|
java.lang.Boolean |
resetFloatingLicense(int floatId)
|
java.lang.Boolean |
resetHostLockedCpus(int hostId)
|
java.lang.Boolean |
resetHostUsedCpus(int hostId)
|
java.lang.Boolean |
rollback()
|
java.lang.Boolean |
setAppDescription(int appId,
java.lang.String desc)
|
java.lang.Boolean |
setAppFloatingLicense(int appId,
int floatId)
|
java.lang.Boolean |
setAppHardLicsOnHost(int hostId,
int appId,
int numberOfHardLics)
|
java.lang.Boolean |
setAppName(int appId,
java.lang.String appName)
|
java.lang.Boolean |
setAppNeedsX(int appId,
java.lang.Boolean needsX)
|
java.lang.Boolean |
setAppPathOnHost(int hostId,
int appId,
java.lang.String pathToExe)
|
java.lang.Boolean |
setAppPrioOnHost(int hostId,
int appId,
int priority)
|
java.lang.Boolean |
setAppRL(int appId,
int requiredLicenses)
|
java.lang.Boolean |
setAppRP(int appId,
int requiredProcessors)
|
java.lang.Boolean |
setAppXHost(int appId,
int hostId,
int portIndex)
|
java.lang.Boolean |
setHostActive(int hostId,
java.lang.Boolean isActive)
|
java.lang.Boolean |
setHostCredentials(int hostId,
java.lang.String userName,
java.lang.String password,
java.lang.Boolean check)
|
java.lang.Boolean |
setHostLockedCpus(java.util.List<java.lang.String> list,
int cpus)
Sets the number of locked CPUs for a given host |
java.lang.Boolean |
setHostMem(int hostId,
int mbMemory)
|
java.lang.Boolean |
setHostNP(int hostId,
int np)
|
java.lang.Boolean |
setHostOS(int hostId,
int osId)
|
java.lang.Boolean |
setHostPort(int hostId,
int port)
|
java.lang.Boolean |
setHostSftpRootDir(int hostId,
java.lang.String sftpDir)
|
java.lang.Boolean |
setHostSupportsX(int hostId,
java.lang.Boolean supportsX)
|
java.lang.Boolean |
setHostTempDir(int hostId,
java.lang.String tempDir)
|
java.lang.Boolean |
setHostXPort(int hostId,
java.lang.String port)
|
java.lang.String |
startJob(java.util.Map<java.lang.String,java.lang.Object> _job)
Starts the job marshalled in the given map |
java.util.Map<java.lang.String,java.lang.Object> |
startJobv2(java.util.Map<java.lang.String,java.lang.Object> _job)
Starts the job marshalled in the given map |
java.lang.Boolean |
startTransaction()
|
java.lang.String |
testCanceler(java.lang.String code,
java.lang.String className)
|
java.lang.Boolean |
unblockSchedule()
Unblocks the schedule for new jobs from the current client |
java.lang.Boolean |
unblockSchedule(java.lang.String address)
Unblocks the schedule for new jobs from the given address |
java.lang.Boolean |
unlockHost(java.util.List<java.lang.String> list)
Unlocks hosts matching the given hostInfos |
java.lang.Boolean |
useFloatingLicsOfApp(int appId,
int amount)
acquires a number of floating licenses of an application |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FSshResourceManager()
| Method Detail |
|---|
public java.util.Map<java.lang.String,byte[]> getPublicKey()
FIResourceManager
getPublicKey in interface FIResourceManagerpublic java.lang.Boolean blockSchedule()
FIResourceManager
blockSchedule in interface FIResourceManagerpublic java.lang.Boolean blockSchedule(java.lang.String address)
FIResourceManager
blockSchedule in interface FIResourceManagerpublic java.lang.Boolean globalScheduleBlock()
FIResourceManager
globalScheduleBlock in interface FIResourceManagerpublic java.lang.Boolean cancelJob(java.lang.String jobID)
FIResourceManager
cancelJob in interface FIResourceManagerpublic int countCurrentRunningJobs()
FIResourceManager
countCurrentRunningJobs in interface FIResourceManagerpublic int countCurrentWaitingJobs()
FIResourceManager
countCurrentWaitingJobs in interface FIResourceManager
public int getJobState(java.lang.String jobId,
int taskIndex)
FIResourceManager
getJobState in interface FIResourceManagerjobId - the id of the jobtaskIndex - the index in the list of tasks of the job
public int getMaxSimultaneousJobs()
FIResourceManager
getMaxSimultaneousJobs in interface FIResourceManagerpublic void init(FSshResourceManagerState state)
init in interface FIResourceManagerpublic java.lang.String startJob(java.util.Map<java.lang.String,java.lang.Object> _job)
FIResourceManager
startJob in interface FIResourceManager_job - the job marshalled as a map
public java.util.Map<java.lang.String,java.lang.Object> startJobv2(java.util.Map<java.lang.String,java.lang.Object> _job)
FIResourceManager
startJobv2 in interface FIResourceManager_job - the job marshalled as a map
public java.lang.Boolean unblockSchedule()
FIResourceManager
unblockSchedule in interface FIResourceManagerpublic java.lang.Boolean unblockSchedule(java.lang.String address)
FIResourceManager
unblockSchedule in interface FIResourceManagerpublic java.lang.Boolean globalScheduleUnblock()
FIResourceManager
globalScheduleUnblock in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> requestOutputFileServerPort()
FIResourceManager
requestOutputFileServerPort in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> requestOutputFiles(java.lang.String jobId)
FIResourceManager
requestOutputFiles in interface FIResourceManagerpublic java.lang.Boolean confirmOutputFilesReceived(java.lang.String jobID)
FIResourceManager
confirmOutputFilesReceived in interface FIResourceManagerpublic byte[] getJobOutput(java.lang.String jobId)
FIResourceManager
getJobOutput in interface FIResourceManager
public java.util.Map<java.lang.String,java.lang.Object> checkAuth(java.lang.String userName,
java.lang.String pass)
FIResourceManager
checkAuth in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getState(java.lang.String caller)
FIResourceManager
getState in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getSchedulerState()
FIResourceManager
getSchedulerState in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getUserState()
FIResourceManager
getUserState in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getAppState()
FIResourceManager
getAppState in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getHostState()
FIResourceManager
getHostState in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getJobState(java.lang.String caller)
FIResourceManager
getJobState in interface FIResourceManagerpublic java.lang.Boolean clearFinishedJobs()
FIResourceManager
clearFinishedJobs in interface FIResourceManagerpublic int getFloatingLicNumberForApp(int appId)
FIResourceManager
getFloatingLicNumberForApp in interface FIResourceManager
public java.lang.Boolean useFloatingLicsOfApp(int appId,
int amount)
FIResourceManager
useFloatingLicsOfApp in interface FIResourceManager
public java.lang.Boolean releaseFloatingLicsOfApp(int appId,
int amount)
FIResourceManager
releaseFloatingLicsOfApp in interface FIResourceManagerpublic java.lang.Boolean cleanUp()
cleanUp in interface FIResourceManager
public java.lang.Boolean addAppToHost(int hostId,
int appId,
java.lang.String pathToExe,
int numberOfHardLics,
int prio)
addAppToHost in interface FIResourceManager
public int addApplication(java.lang.String appName,
int requiredLicenses,
int requiredProcessors,
java.lang.String description,
java.lang.Boolean needsX)
addApplication in interface FIResourceManager
public int addHost(java.lang.String hostName,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.Boolean isActive,
java.lang.Boolean supportsX)
addHost in interface FIResourceManager
public int addHost(java.lang.String hostName,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.String tempDir,
java.lang.Boolean isActive,
java.lang.Boolean supportsX)
addHost in interface FIResourceManager
public int addHost(java.lang.String hostName,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.String tempDir,
java.lang.String sftpRoot,
java.lang.Boolean isActive,
java.lang.Boolean supportsX)
addHost in interface FIResourceManager
public int addHost(java.lang.String hostName,
int port,
int numberOfProcessors,
int mbMemory,
int osId,
java.lang.String tempDir,
java.lang.String sftpRoot,
java.lang.Boolean isActive,
java.lang.Boolean supportsX,
java.lang.String xPort)
addHost in interface FIResourceManager
public java.lang.Boolean addHostToKnownHosts(int hostId,
java.lang.String hostName,
java.lang.String type,
java.lang.String fingerPrint)
FIResourceManager
addHostToKnownHosts in interface FIResourceManagerhostId - database id of the hosthostName - name of the hosttype - type of the fingerprintfingerPrint - the fingerprint
public java.util.Map<java.lang.String,java.lang.Object> getHostInfo(int hostId)
FIResourceManager
getHostInfo in interface FIResourceManagerpublic java.lang.Boolean checkHostKnown(int hostId)
FIResourceManager
checkHostKnown in interface FIResourceManagerpublic java.lang.Boolean removeHostFromKnownHosts(int hostId)
FIResourceManager
removeHostFromKnownHosts in interface FIResourceManager
public int addOS(java.lang.String name,
int parentOsId)
addOS in interface FIResourceManager
public int addOS(java.lang.String name,
int parentOsId,
java.lang.String chdirCommand)
addOS in interface FIResourceManager
public int addOS(java.lang.String name,
int parentOsId,
java.lang.String chdirCommand,
java.lang.String pathDelimiter)
addOS in interface FIResourceManager
public int addOS(java.lang.String name,
int parentOsId,
java.lang.String chdirCommand,
java.lang.String pathDelimiter,
java.lang.String cancelerClass)
addOS in interface FIResourceManager
public java.lang.Boolean changeFloatingLicenseName(int floatId,
java.lang.String name)
changeFloatingLicenseName in interface FIResourceManager
public java.lang.Boolean changeFloatingLicenseNumber(int floatId,
int number)
changeFloatingLicenseNumber in interface FIResourceManager
public java.lang.Boolean changeHostsOS(int oldOSId,
int newOSId)
changeHostsOS in interface FIResourceManager
public java.lang.Boolean changeOSParents(int oldParentId,
int newParentId)
changeOSParents in interface FIResourceManager
public java.lang.Boolean changeOSChdirCommand(int osId,
java.lang.String chdirCommand)
changeOSChdirCommand in interface FIResourceManager
public java.lang.Boolean changeOSPathDelimiter(int osId,
java.lang.String pathDelimiter)
changeOSPathDelimiter in interface FIResourceManager
public java.lang.Boolean changeOSName(int osId,
java.lang.String newName)
changeOSName in interface FIResourceManager
public java.lang.Boolean changeOSParent(int osId,
int parentOsId)
changeOSParent in interface FIResourceManager
public java.lang.Boolean changeOSJobCanceler(int osId,
java.lang.String className)
changeOSJobCanceler in interface FIResourceManager
public java.lang.String addJobCanceler(int osId,
java.lang.String code,
java.lang.String className)
addJobCanceler in interface FIResourceManager
public java.lang.String testCanceler(java.lang.String code,
java.lang.String className)
testCanceler in interface FIResourceManager
public java.lang.Boolean cloneAllAppsFromHostToHost(int from,
int to)
cloneAllAppsFromHostToHost in interface FIResourceManager
public java.lang.Boolean cloneAppsFromHostToHost(int from,
int to,
java.lang.Object[] appIds)
cloneAppsFromHostToHost in interface FIResourceManagerpublic java.lang.Boolean commit()
commit in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getApplicationById(int appId)
getApplicationById in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getApplicationByName(java.lang.String name)
getApplicationByName in interface FIResourceManager
public java.util.Map<java.lang.String,java.lang.Object> getApplicationInfoForHost(int appId,
int hostId)
getApplicationInfoForHost in interface FIResourceManagerpublic java.lang.Object[] getApplications()
getApplications in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getActiveApplications()
getActiveApplications in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getActiveApplications(int withAuth)
getActiveApplications in interface FIResourceManagerpublic java.lang.Object[] getApplicationsByHost(int hostId)
getApplicationsByHost in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getFloatingLicense(int floatId)
getFloatingLicense in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getFloatingLicenseForApp(int appId)
getFloatingLicenseForApp in interface FIResourceManagerpublic java.lang.Object[] getFloatingLicenses()
getFloatingLicenses in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getHostById(int hostId)
getHostById in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getHostByName(java.lang.String hostName)
getHostByName in interface FIResourceManagerpublic java.lang.Object[] getHosts()
getHosts in interface FIResourceManagerpublic java.lang.Object[] getXHosts()
getXHosts in interface FIResourceManagerpublic java.lang.Boolean hasDefaultXForward()
hasDefaultXForward in interface FIResourceManagerpublic java.lang.Object[] getHostsByApplication(int appId)
getHostsByApplication in interface FIResourceManagerpublic java.lang.Object[] getHostsByOS(int osId)
getHostsByOS in interface FIResourceManagerpublic java.lang.Object[] getHostsByOSParent(int parentOsId)
getHostsByOSParent in interface FIResourceManager
public java.lang.Object[] getHostsByOSParent(int parentOsId,
java.lang.Boolean recursive)
getHostsByOSParent in interface FIResourceManagerpublic java.lang.Object[] getHostsByXSupport(java.lang.Boolean supportsX)
getHostsByXSupport in interface FIResourceManager
public java.lang.Boolean setHostXPort(int hostId,
java.lang.String port)
setHostXPort in interface FIResourceManagerpublic int getNumberOfFloatingLicensesForApp(int appId)
getNumberOfFloatingLicensesForApp in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getOperatingSystemById(int osId)
getOperatingSystemById in interface FIResourceManagerpublic java.lang.Object[] getOperatingSystems()
getOperatingSystems in interface FIResourceManagerpublic java.lang.Object[] getJobCancelerImplementations()
getJobCancelerImplementations in interface FIResourceManagerpublic java.lang.String getCancelerCode(java.lang.String className)
getCancelerCode in interface FIResourceManagerpublic java.lang.Object[] getOperatingSystemsByParentId(int parentOsId)
getOperatingSystemsByParentId in interface FIResourceManager
public java.lang.Object[] getOperatingSystemsByParentId(int parentOsId,
java.lang.Boolean recursive)
getOperatingSystemsByParentId in interface FIResourceManager
public java.lang.Boolean removeAppFromHost(int hostId,
int appId)
removeAppFromHost in interface FIResourceManagerpublic java.lang.Boolean removeApplication(int appId)
removeApplication in interface FIResourceManagerpublic java.lang.Boolean removeFloatingLicense(int floatId)
removeFloatingLicense in interface FIResourceManagerpublic java.lang.Boolean removeHost(int hostId)
removeHost in interface FIResourceManagerpublic java.lang.Boolean removeOS(int osId)
removeOS in interface FIResourceManagerpublic java.lang.Boolean rollback()
rollback in interface FIResourceManager
public java.lang.Boolean setAppDescription(int appId,
java.lang.String desc)
setAppDescription in interface FIResourceManager
public java.lang.Boolean setAppHardLicsOnHost(int hostId,
int appId,
int numberOfHardLics)
setAppHardLicsOnHost in interface FIResourceManager
public java.lang.Boolean setAppName(int appId,
java.lang.String appName)
setAppName in interface FIResourceManager
public java.lang.Boolean setAppNeedsX(int appId,
java.lang.Boolean needsX)
setAppNeedsX in interface FIResourceManager
public java.lang.Boolean setAppPathOnHost(int hostId,
int appId,
java.lang.String pathToExe)
setAppPathOnHost in interface FIResourceManager
public java.lang.Boolean setAppPrioOnHost(int hostId,
int appId,
int priority)
setAppPrioOnHost in interface FIResourceManager
public java.lang.Boolean setAppRP(int appId,
int requiredProcessors)
setAppRP in interface FIResourceManager
public java.lang.Boolean setAppRL(int appId,
int requiredLicenses)
setAppRL in interface FIResourceManager
public java.lang.Boolean setHostActive(int hostId,
java.lang.Boolean isActive)
setHostActive in interface FIResourceManager
public java.lang.Boolean setHostCredentials(int hostId,
java.lang.String userName,
java.lang.String password,
java.lang.Boolean check)
setHostCredentials in interface FIResourceManager
public java.lang.Boolean setHostMem(int hostId,
int mbMemory)
setHostMem in interface FIResourceManager
public java.lang.Boolean setHostNP(int hostId,
int np)
setHostNP in interface FIResourceManager
public java.lang.Boolean setHostOS(int hostId,
int osId)
setHostOS in interface FIResourceManager
public java.lang.Boolean setHostSftpRootDir(int hostId,
java.lang.String sftpDir)
setHostSftpRootDir in interface FIResourceManager
public java.lang.Boolean setHostSupportsX(int hostId,
java.lang.Boolean supportsX)
setHostSupportsX in interface FIResourceManager
public java.lang.Boolean setHostTempDir(int hostId,
java.lang.String tempDir)
setHostTempDir in interface FIResourceManager
public java.lang.Boolean setHostPort(int hostId,
int port)
setHostPort in interface FIResourceManagerpublic java.lang.Boolean startTransaction()
startTransaction in interface FIResourceManager
public int addFloatingLicense(int number,
java.lang.String name)
addFloatingLicense in interface FIResourceManager
public int addFloatingLicenseWithApp(int appId,
int number,
java.lang.String name)
addFloatingLicenseWithApp in interface FIResourceManagerpublic java.lang.Object[] getApplicationsByFloatId(int floatId)
getApplicationsByFloatId in interface FIResourceManager
public java.lang.Boolean setAppXHost(int appId,
int hostId,
int portIndex)
setAppXHost in interface FIResourceManager
public java.lang.Boolean setAppFloatingLicense(int appId,
int floatId)
setAppFloatingLicense in interface FIResourceManager
public int addUser(java.lang.String userName,
java.lang.String password,
int role)
addUser in interface FIResourceManager
public int addUser(java.lang.String userName,
java.lang.String password,
int role,
java.lang.String email)
addUser in interface FIResourceManager
public java.lang.Boolean changeUserPass(int id,
java.lang.String newPass)
changeUserPass in interface FIResourceManager
public java.lang.Boolean changeUserPassByName(java.lang.String id,
java.lang.String oldPass,
java.lang.String newPass)
changeUserPassByName in interface FIResourceManager
public java.lang.Boolean changeUserRole(int id,
int role)
changeUserRole in interface FIResourceManager
public java.lang.Boolean changeUserEmail(int id,
java.lang.String email)
changeUserEmail in interface FIResourceManagerpublic java.lang.Boolean deleteUser(int id)
deleteUser in interface FIResourceManagerpublic java.lang.Object[] getUsers()
getUsers in interface FIResourceManagerpublic java.lang.Object[] getUsersByRole(int role)
getUsersByRole in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getUser(int id)
getUser in interface FIResourceManagerpublic java.util.Map<java.lang.String,java.lang.Object> getUserByName(java.lang.String name)
getUserByName in interface FIResourceManagerpublic int getHostCpus(java.util.List<java.lang.String> list)
FIResourceManager
getHostCpus in interface FIResourceManagerpublic int getHostLockedCpus(java.util.List<java.lang.String> list)
FIResourceManager
getHostLockedCpus in interface FIResourceManager
public java.lang.Boolean setHostLockedCpus(java.util.List<java.lang.String> list,
int cpus)
FIResourceManager
setHostLockedCpus in interface FIResourceManagerpublic java.lang.Boolean lockHost(java.util.List<java.lang.String> list)
FIResourceManager
lockHost in interface FIResourceManagerpublic java.lang.Boolean unlockHost(java.util.List<java.lang.String> list)
FIResourceManager
unlockHost in interface FIResourceManagerpublic int isHostLocked(java.util.List<java.lang.String> list)
FIResourceManager
isHostLocked in interface FIResourceManager
public java.lang.Boolean resetAppToHost(int hostId,
int appId)
resetAppToHost in interface FIResourceManagerpublic java.lang.Boolean resetFloatingLicense(int floatId)
resetFloatingLicense in interface FIResourceManagerpublic java.lang.Boolean resetHostLockedCpus(int hostId)
resetHostLockedCpus in interface FIResourceManagerpublic java.lang.Boolean resetHostUsedCpus(int hostId)
resetHostUsedCpus in interface FIResourceManagerpublic java.lang.Object[] getRoles()
getRoles in interface FIResourceManager
public static boolean lookupRole(java.lang.String method,
FUserRole role)
method - The method to callrole - The user role of the user trying to call the method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||