GigaSpaces XAP 9.7.2 API

com.gigaspaces.security.authorities
Class MonitorAuthority

java.lang.Object
  extended by com.gigaspaces.security.authorities.MonitorAuthority
All Implemented Interfaces:
InternalAuthority, Authority, Serializable

public class MonitorAuthority
extends Object
implements InternalAuthority

Defines an Authority for monitoring a service, with the specified privilege.

Note: These privileges are not enforced by the API and should be properly handled by administrative tooling (UI/CLI/Application).

The MonitorAuthoritys' Authority.getAuthority() String representation format:

 MonitorPrivilege privilege-value
 
 Where:
 privilege-value = MONITOR_JVM | MONITOR_PU
 
 The privileges represent the following grid operations:
 MONITOR_JVM   - JVM statistics
 MONITOR_PU    - processing unit statistics (classes/templates/transactions/connections/statistics, etc.)
 

Since:
7.0.1
Author:
Moran Avigdor
See Also:
Serialized Form

Nested Class Summary
static class MonitorAuthority.MonitorPrivilege
          Defines monitoring privileges
 
Constructor Summary
MonitorAuthority(MonitorAuthority.MonitorPrivilege monitorPrivilege)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAuthority()
          An Authority that can be represented as a String which is sufficient in precision to be relied upon for an access control decisions.
 Privilege getPrivilege()
          A granted privilege associated with this Authority.
 int hashCode()
           
 String toString()
           
static MonitorAuthority valueOf(String authority)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitorAuthority

public MonitorAuthority(MonitorAuthority.MonitorPrivilege monitorPrivilege)
Method Detail

valueOf

public static MonitorAuthority valueOf(String authority)

getAuthority

public String getAuthority()
Description copied from interface: Authority
An Authority that can be represented as a String which is sufficient in precision to be relied upon for an access control decisions.

Specified by:
getAuthority in interface Authority
Returns:
a representation of the granted authority (expressed as a String with sufficient precision).

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getPrivilege

public Privilege getPrivilege()
Description copied from interface: InternalAuthority
A granted privilege associated with this Authority.

Specified by:
getPrivilege in interface InternalAuthority
Returns:
a granted privilege.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.