|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.bizapp.server.session.BizappSessionEJB
org.hyperic.hq.bizapp.server.session.AIBossEJBImpl
public class AIBossEJBImpl
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Fields inherited from class org.hyperic.hq.bizapp.server.session.BizappSessionEJB |
---|
ctx |
Constructor Summary | |
---|---|
AIBossEJBImpl()
|
Method Summary | |
---|---|
void |
deleteAIJob(int sessionId,
java.lang.Integer[] ids)
Delete a AIJob based on an id |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
AIIpValue |
findAIIpByAddress(int sessionID,
java.lang.String address)
Get details on a single ip from the AI queue, by address |
AIIpValue |
findAIIpById(int sessionID,
int ipID)
Get details on a single ip from the AI queue, by ipID |
AIPlatformValue |
findAIPlatformByFqdn(int sessionID,
java.lang.String fqdn)
Get details on a single platform from the AI queue, by FQDN |
AIPlatformValue |
findAIPlatformById(int sessionID,
int aiplatformID)
Get details on a single platform from the AI queue, by aiplatformID |
AIPlatformValue |
findAIPlatformByPlatformID(int sessionId,
java.lang.Integer platformID)
Find an AI Platform from an appdef platform |
AIServerValue |
findAIServerById(int sessionID,
int serverID)
Get details on a single server from the AI queue, by serverID |
AIServerValue |
findAIServerByName(int sessionID,
java.lang.String name)
Get details on a single server from the AI queue, by name |
PageList |
findJobHistory(int sessionId,
AppdefEntityID id,
PageControl pc)
Get a job history based on appdef id |
AIScheduleValue |
findScheduledJobById(int sessionId,
java.lang.Integer id)
|
PageList |
findScheduledJobs(int sessionId,
AppdefEntityID id,
PageControl pc)
Finder for all of the scheduled AI scans for an appdef entity. |
PageList |
getQueue(int sessionID,
boolean showIgnored,
boolean showPlaceholders,
boolean showAlreadyProcessed,
PageControl pc)
Get the contents of the AI queue. |
PageList |
getQueue(int sessionID,
boolean showIgnored,
boolean showPlaceholders,
PageControl pc)
Get the contents of the AI queue. |
ScanStateCore |
getScanStatus(int sessionID,
int platformID)
Get status for a running autoinventory scan. |
ScanStateCore |
getScanStatusByAgentToken(int sessionID,
java.lang.String agentToken)
Get status for a running autoinventory scan given the agentToken |
java.util.Map |
getServerSignatures(int sessionID,
java.util.List serverTypes)
Get server signatures for a set of servertypes. |
void |
processQueue(int sessionID,
java.util.List platformList,
java.util.List serverList,
java.util.List ipList,
int action)
Process queued AI resources. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
startGroupScan(int sessionID,
int groupID,
ScanConfigurationCore scanConfig,
java.lang.String scanName,
java.lang.String scanDesc,
ScheduleValue schedule)
Start an autoinventory scan on a group of platforms |
void |
startScan(int sessionID,
int platformID,
ScanConfigurationCore scanConfig,
java.lang.String scanName,
java.lang.String scanDesc,
ScheduleValue schedule)
Start an autoinventory scan. |
void |
startScan(int sessionID,
java.lang.String agentToken,
ScanConfigurationCore scanConfig)
|
void |
stopScan(int sessionID,
int platformID)
Stop an autoinventory scan. |
void |
toggleRuntimeScan(AuthzSubject subject,
AppdefEntityID id,
boolean doEnable)
Process queued AI resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.commons.logging.Log log
Constructor Detail |
---|
public AIBossEJBImpl()
Method Detail |
---|
public PageList findScheduledJobs(int sessionId, AppdefEntityID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public AIScheduleValue findScheduledJobById(int sessionId, java.lang.Integer id) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public PageList findJobHistory(int sessionId, AppdefEntityID id, PageControl pc) throws SessionNotFoundException, SessionTimeoutException, PermissionException
SessionNotFoundException
SessionTimeoutException
PermissionException
public void deleteAIJob(int sessionId, java.lang.Integer[] ids) throws SessionNotFoundException, SessionTimeoutException, PermissionException, AutoinventoryException
ids
- Array of job ids to be deleted
SessionNotFoundException
SessionTimeoutException
PermissionException
AutoinventoryException
public java.util.Map getServerSignatures(int sessionID, java.util.List serverTypes) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AutoinventoryException
serverTypes
- A List of ServerTypeValue objects representing the
server types to get signatures for. If this is null, all server
signatures are returned.
SessionTimeoutException
SessionNotFoundException
PermissionException
AutoinventoryException
public void startGroupScan(int sessionID, int groupID, ScanConfigurationCore scanConfig, java.lang.String scanName, java.lang.String scanDesc, ScheduleValue schedule) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AutoinventoryException, AgentConnectionException, AgentNotFoundException, DuplicateAIScanNameException, ScheduleWillNeverFireException, GroupNotCompatibleException
groupID
- The ID of the group of platforms to scan.scanConfig
- The scan configuration to use when scanning.scanName
- The name of the scan - this is ignored (i.e. it can be
null) for immediate, one-time scans.scanDesc
- The description of the scan - this is ignored (i.e. it
can be null) for immediate, one-time scans.schedule
- Describes when the scan should be run. If this is null,
then the scan is run as an immediate, one-time only scan.
SessionTimeoutException
SessionNotFoundException
PermissionException
AutoinventoryException
AgentConnectionException
AgentNotFoundException
DuplicateAIScanNameException
ScheduleWillNeverFireException
GroupNotCompatibleException
public void startScan(int sessionID, int platformID, ScanConfigurationCore scanConfig, java.lang.String scanName, java.lang.String scanDesc, ScheduleValue schedule) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AutoinventoryException, AgentConnectionException, AgentNotFoundException, DuplicateAIScanNameException, ScheduleWillNeverFireException
platformID
- The platform ID of the platform to scan.scanConfig
- The scan configuration to use when scanning.scanName
- The name of the scan - this is ignored (i.e. it can be
null) for immediate, one-time scans.scanDesc
- The description of the scan - this is ignored (i.e. it
can be null) for immediate, one-time scans.schedule
- Describes when the scan should be run. If this is null,
then the scan is run as an immediate, one-time only scan.
SessionTimeoutException
SessionNotFoundException
PermissionException
AutoinventoryException
AgentConnectionException
AgentNotFoundException
DuplicateAIScanNameException
ScheduleWillNeverFireException
public void startScan(int sessionID, java.lang.String agentToken, ScanConfigurationCore scanConfig) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AutoinventoryException, AgentConnectionException, AgentNotFoundException
SessionTimeoutException
SessionNotFoundException
PermissionException
AutoinventoryException
AgentConnectionException
AgentNotFoundException
public void stopScan(int sessionID, int platformID) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AutoinventoryException, AgentConnectionException, AgentNotFoundException
platformID
- The platform ID of the platform to stop scanning on.
SessionTimeoutException
SessionNotFoundException
PermissionException
AutoinventoryException
AgentConnectionException
AgentNotFoundException
public ScanStateCore getScanStatus(int sessionID, int platformID) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AgentNotFoundException, AgentConnectionException, AgentRemoteException, AutoinventoryException
platformID
- The platform ID of the platform to get scan status for.
SessionTimeoutException
SessionNotFoundException
PermissionException
AgentNotFoundException
AgentConnectionException
AgentRemoteException
AutoinventoryException
public ScanStateCore getScanStatusByAgentToken(int sessionID, java.lang.String agentToken) throws SessionTimeoutException, SessionNotFoundException, PermissionException, AgentNotFoundException, AgentConnectionException, AgentRemoteException, AutoinventoryException
SessionTimeoutException
SessionNotFoundException
PermissionException
AgentNotFoundException
AgentConnectionException
AgentRemoteException
AutoinventoryException
public PageList getQueue(int sessionID, boolean showIgnored, boolean showPlaceholders, PageControl pc) throws SessionNotFoundException, SessionTimeoutException
showIgnored
- If true, even resources in the AI queue that have
the 'ignored' flag set will be returned. By default, resources with
the 'ignored' flag set are excluded when the queue is retrieved.showPlaceholders
- If true, even resources in the AI queue that are
unchanged with respect to appdef will be returned. By default, resources
that are unchanged with respect to appdef are excluded when the queue is
retrieved.pc
- How the results should be sorted/paged.
SessionNotFoundException
SessionTimeoutException
public PageList getQueue(int sessionID, boolean showIgnored, boolean showPlaceholders, boolean showAlreadyProcessed, PageControl pc) throws SessionNotFoundException, SessionTimeoutException
showIgnored
- If true, even resources in the AI queue that have
the 'ignored' flag set will be returned. By default, resources with
the 'ignored' flag set are excluded when the queue is retrieved.showPlaceholders
- If true, even resources in the AI queue that are
unchanged with respect to appdef will be returned. By default, resources
that are unchanged with respect to appdef are excluded when the queue is
retrieved.showAlreadyProcessed
- If true, even resources that have already
been processed (approved or not approved) will be shown.pc
- How the results should be sorted/paged.
SessionNotFoundException
SessionTimeoutException
public AIPlatformValue findAIPlatformById(int sessionID, int aiplatformID) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public AIPlatformValue findAIPlatformByFqdn(int sessionID, java.lang.String fqdn) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public AIServerValue findAIServerById(int sessionID, int serverID) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public AIServerValue findAIServerByName(int sessionID, java.lang.String name) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public AIIpValue findAIIpById(int sessionID, int ipID) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public AIIpValue findAIIpByAddress(int sessionID, java.lang.String address) throws SessionNotFoundException, SessionTimeoutException
SessionNotFoundException
SessionTimeoutException
public void processQueue(int sessionID, java.util.List platformList, java.util.List serverList, java.util.List ipList, int action) throws SessionNotFoundException, SessionTimeoutException, AIQApprovalException, PermissionException, ValidationException
platformList
- A List of platform IDsserverList
- A List of server IDsipList
- A List of ip IDsaction
- One of the AIQueueConstants.Q_DECISION_XXX constants
indicating what to do with the platforms, ips and servers.
SessionNotFoundException
SessionTimeoutException
AIQApprovalException
PermissionException
ValidationException
public void toggleRuntimeScan(AuthzSubject subject, AppdefEntityID id, boolean doEnable) throws SessionNotFoundException, SessionTimeoutException, PermissionException, AppdefEntityNotFoundException, AppdefGroupNotFoundException, GroupNotCompatibleException, UpdateException, ConfigFetchException, EncodingException
id
- The server to enable runtime-AI for.doEnable
- If true, runtime autodiscovery will be enabled,
if false, it will be disabled.
SessionNotFoundException
SessionTimeoutException
PermissionException
AppdefEntityNotFoundException
AppdefGroupNotFoundException
GroupNotCompatibleException
UpdateException
ConfigFetchException
EncodingException
public AIPlatformValue findAIPlatformByPlatformID(int sessionId, java.lang.Integer platformID) throws SessionNotFoundException, SessionTimeoutException, PermissionException, PlatformNotFoundException
SessionNotFoundException
SessionTimeoutException
PermissionException
PlatformNotFoundException
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
setSessionContext
in class BizappSessionEJB
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |