|
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.control.server.session.ControlManagerEJBImpl
public class ControlManagerEJBImpl
The server-side control system.
Constructor Summary | |
---|---|
ControlManagerEJBImpl()
|
Method Summary | |
---|---|
java.util.List |
batchCheckControlPermissions(AuthzSubject caller,
AppdefEntityID[] entities)
Accept an array of appdef entity Ids and verify control permission on each entity for specified subject. |
void |
checkControlEnabled(AuthzSubject subject,
AppdefEntityID id)
Check if an entity has been enabled for control |
protected void |
checkControlPermission(AuthzSubject caller,
AppdefEntityID id)
Check control permission for an appdef entity |
protected void |
checkModifyPermission(AuthzSubject caller,
AppdefEntityID id)
Check control modify permission for an appdef entity Control Modify ops are treated as regular modify operations |
void |
configureControlPlugin(AuthzSubject subject,
AppdefEntityID id)
Enable an entity for control |
void |
doAction(AuthzSubject subject,
AppdefEntityID id,
java.lang.String action)
Execute a single control action on a given entity. |
void |
doAction(AuthzSubject subject,
AppdefEntityID id,
java.lang.String action,
ScheduleValue schedule)
Schedule a new control action. |
void |
doAction(AuthzSubject subject,
AppdefEntityID id,
java.lang.String action,
java.lang.String args)
Execute a single control action on a given entity. |
protected java.util.List |
doBatchCheckControlPermissions(AuthzSubject caller,
AppdefEntityID[] entities)
|
void |
doGroupAction(AuthzSubject subject,
AppdefEntityID id,
java.lang.String action,
int[] order,
ScheduleValue schedule)
Schedule a single control action for a group of given entities. |
void |
doGroupAction(AuthzSubject subject,
AppdefEntityID id,
java.lang.String action,
java.lang.String args,
int[] order)
Single control action for a group of given entities. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbPostCreate()
|
void |
ejbRemove()
|
java.util.List |
getActions(AuthzSubject subject,
AppdefEntityID id)
Get the supported actions for an appdef entity from the local ControlPluginManager |
java.util.List |
getActions(AuthzSubject subject,
AppdefEntityTypeID aetid)
Get the supported actions for an appdef entity from the local ControlPluginManager |
ConfigResponse |
getConfigResponse(AuthzSubject subject,
AppdefEntityID id)
Get the control config response |
static org.hyperic.hq.control.shared.ControlManagerLocal |
getOne()
|
byte[] |
getPluginConfiguration(java.lang.String pluginName,
boolean merge)
Send an agent a plugin configuration. |
boolean |
isControlEnabled(AuthzSubject subject,
AppdefEntityID id)
Check if a an entity has been enabled for control. |
boolean |
isControlSupported(AuthzSubject subject,
AppdefEntityID id,
java.lang.String resType)
Checks with the plugin manager to find out if an entity's resource provides support for control. |
boolean |
isControlSupported(AuthzSubject subject,
java.lang.String resType)
Checks with the plugin manager to find out if an entity's resource provides support for control. |
boolean |
isGroupControlEnabled(AuthzSubject subject,
AppdefEntityID id)
Check if a compatible group's members have been enabled for control. |
void |
sendCommandResult(int id,
int result,
long startTime,
long endTime,
java.lang.String message)
Receive status information about a previous control action |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlManagerEJBImpl()
Method Detail |
---|
public void ejbCreate()
public void ejbPostCreate()
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
public void configureControlPlugin(AuthzSubject subject, AppdefEntityID id) throws PermissionException, PluginException, ConfigFetchException, AppdefEntityNotFoundException, AgentNotFoundException
PermissionException
PluginException
ConfigFetchException
AppdefEntityNotFoundException
AgentNotFoundException
public void doAction(AuthzSubject subject, AppdefEntityID id, java.lang.String action, java.lang.String args) throws PluginException, PermissionException
PluginException
PermissionException
public void doAction(AuthzSubject subject, AppdefEntityID id, java.lang.String action) throws PluginException, PermissionException
PluginException
PermissionException
public void doAction(AuthzSubject subject, AppdefEntityID id, java.lang.String action, ScheduleValue schedule) throws PluginException, PermissionException, org.quartz.SchedulerException
PluginException
PermissionException
org.quartz.SchedulerException
public void doGroupAction(AuthzSubject subject, AppdefEntityID id, java.lang.String action, java.lang.String args, int[] order) throws PluginException, PermissionException, AppdefEntityNotFoundException, GroupNotCompatibleException
PluginException
PermissionException
AppdefEntityNotFoundException
GroupNotCompatibleException
public void doGroupAction(AuthzSubject subject, AppdefEntityID id, java.lang.String action, int[] order, ScheduleValue schedule) throws PluginException, PermissionException, org.quartz.SchedulerException, GroupNotCompatibleException, AppdefEntityNotFoundException
org.quartz.SchedulerException
PluginException
PermissionException
GroupNotCompatibleException
AppdefEntityNotFoundException
public java.util.List getActions(AuthzSubject subject, AppdefEntityID id) throws PermissionException, PluginNotFoundException, AppdefEntityNotFoundException, GroupNotCompatibleException
PermissionException
PluginNotFoundException
AppdefEntityNotFoundException
GroupNotCompatibleException
public java.util.List getActions(AuthzSubject subject, AppdefEntityTypeID aetid) throws PluginNotFoundException
PluginNotFoundException
public boolean isGroupControlEnabled(AuthzSubject subject, AppdefEntityID id) throws AppdefEntityNotFoundException, PermissionException
AppdefEntityNotFoundException
PermissionException
public boolean isControlSupported(AuthzSubject subject, java.lang.String resType)
resType
- - appdef entity (of all kinds inc. groups)
public boolean isControlSupported(AuthzSubject subject, AppdefEntityID id, java.lang.String resType)
resType
- - appdef entity (of all kinds inc. groups)
public boolean isControlEnabled(AuthzSubject subject, AppdefEntityID id)
public void checkControlEnabled(AuthzSubject subject, AppdefEntityID id) throws PluginException
PluginException
public ConfigResponse getConfigResponse(AuthzSubject subject, AppdefEntityID id) throws PluginException
PluginException
public byte[] getPluginConfiguration(java.lang.String pluginName, boolean merge) throws PluginException
pluginName
- Name of the plugin to get the config formerge
- If true, merge the product and control config data
PluginException
public void sendCommandResult(int id, int result, long startTime, long endTime, java.lang.String message)
public java.util.List batchCheckControlPermissions(AuthzSubject caller, AppdefEntityID[] entities) throws AppdefEntityNotFoundException, PermissionException
AppdefEntityNotFoundException
PermissionException
protected java.util.List doBatchCheckControlPermissions(AuthzSubject caller, AppdefEntityID[] entities) throws AppdefEntityNotFoundException, PermissionException
AppdefEntityNotFoundException
PermissionException
protected void checkModifyPermission(AuthzSubject caller, AppdefEntityID id) throws PermissionException
PermissionException
protected void checkControlPermission(AuthzSubject caller, AppdefEntityID id) throws PermissionException
PermissionException
public static org.hyperic.hq.control.shared.ControlManagerLocal getOne()
|
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 |