GigaSpaces XAP 9.7.2 API

org.openspaces.grid.esm
Class ESMProxy

java.lang.Object
  extended by org.jini.rio.resources.servicecore.AbstractProxy
      extended by org.openspaces.grid.esm.ESMProxy
All Implemented Interfaces:
com.gigaspaces.grid.esm.ESM, com.gigaspaces.grid.gsa.AgentIdAware, com.gigaspaces.grid.zone.GridZoneProvider, com.gigaspaces.internal.dump.InternalDumpProvider, com.gigaspaces.internal.jvm.JVMInfoProvider, com.gigaspaces.internal.log.InternalLogProvider, com.gigaspaces.internal.os.OSInfoProvider, com.gigaspaces.lrmi.nio.info.NIOInfoProvider, com.gigaspaces.security.service.SecuredService, Serializable, Remote, Administrable, ReferentUuid, SameProxyVersionProvider, org.jini.rio.core.MonitorableService, org.jini.rio.event.EventProducer, org.jini.rio.resources.servicecore.Service, org.jini.rio.watch.Watchable
Direct Known Subclasses:
SecuredESMProxy

public class ESMProxy
extends org.jini.rio.resources.servicecore.AbstractProxy
implements ESM, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jini.rio.resources.servicecore.AbstractProxy
server, uuid
 
Method Summary
 void disableAgentFailureDetection(String processingUnitName, long timeout, TimeUnit timeunit)
          Disables failure detection for the agent on the machine that called this method.
 void enableAgentFailureDetection(String processingUnitName)
          Enables failure detection for the agent on the machine that called this method.
 int getAgentId()
           
 String getGSAServiceID()
           
 String[] getManagedProcessingUnits()
           
 ScaleStrategyConfig getProcessingUnitScaleStrategyConfig(String processingUnitName)
           
 Remote getRemoteApi(String processingUnitName, String apiName)
           
 org.jini.rio.monitor.event.Events getScaleStrategyEvents(long cursor, int maxNumberOfEvents)
           
 boolean isManagingProcessingUnit(String processingUnitName)
           
 boolean isManagingProcessingUnitAndScaleNotInProgress(String processingUnitName)
           
 boolean isServiceSecured()
           
 SecurityContext login(CredentialsProvider credentialsProvider)
           
 void setProcessingUnitElasticProperties(String processingUnitName, Map<String,String> properties)
           
 void setProcessingUnitScaleStrategy(String puName, ScaleStrategyConfig scaleStrategyConfig)
           
 
Methods inherited from class org.jini.rio.resources.servicecore.AbstractProxy
disableLRMIMonitoring, dumpBytes, enableLRMIMonitoring, equals, fetch, fetch, fetchLRMIMonitoringDetails, generateDump, generateDump, getAdmin, getCurrentTimestamp, getJVMDetails, getJVMStatistics, getNIODetails, getNIOStatistics, getOSDetails, getOSStatistics, getReferentUuid, getVersion, getZones, hashCode, intercept, isSecuredProxy, logEntriesDirect, login, monitor, ping, register, runGc, secureAdmin, startHeartbeat, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.jini.admin.Administrable
getAdmin
 
Methods inherited from interface org.jini.rio.core.MonitorableService
monitor, ping, startHeartbeat
 
Methods inherited from interface org.jini.rio.event.EventProducer
register
 
Methods inherited from interface org.jini.rio.watch.Watchable
fetch, fetch
 
Methods inherited from interface com.gigaspaces.internal.os.OSInfoProvider
getCurrentTimestamp, getOSDetails, getOSStatistics
 
Methods inherited from interface com.gigaspaces.internal.jvm.JVMInfoProvider
getJVMDetails, getJVMStatistics, runGc
 
Methods inherited from interface com.gigaspaces.lrmi.nio.info.NIOInfoProvider
disableLRMIMonitoring, enableLRMIMonitoring, fetchLRMIMonitoringDetails, getNIODetails, getNIOStatistics
 
Methods inherited from interface com.gigaspaces.internal.log.InternalLogProvider
logEntriesDirect
 
Methods inherited from interface com.gigaspaces.internal.dump.InternalDumpProvider
dumpBytes, generateDump, generateDump
 
Methods inherited from interface com.gigaspaces.grid.zone.GridZoneProvider
getZones
 

Method Detail

getAgentId

public int getAgentId()
               throws RemoteException
Specified by:
getAgentId in interface com.gigaspaces.grid.gsa.AgentIdAware
Throws:
RemoteException

getGSAServiceID

public String getGSAServiceID()
                       throws RemoteException
Specified by:
getGSAServiceID in interface com.gigaspaces.grid.gsa.AgentIdAware
Throws:
RemoteException

getManagedProcessingUnits

public String[] getManagedProcessingUnits()
Specified by:
getManagedProcessingUnits in interface com.gigaspaces.grid.esm.ESM

isServiceSecured

public boolean isServiceSecured()
                         throws RemoteException
Specified by:
isServiceSecured in interface com.gigaspaces.security.service.SecuredService
Throws:
RemoteException

login

public SecurityContext login(CredentialsProvider credentialsProvider)
                      throws SecurityException,
                             RemoteException
Specified by:
login in interface com.gigaspaces.security.service.SecuredService
Throws:
SecurityException
RemoteException

setProcessingUnitElasticProperties

public void setProcessingUnitElasticProperties(String processingUnitName,
                                               Map<String,String> properties)
                                        throws RemoteException
Throws:
RemoteException

setProcessingUnitScaleStrategy

public void setProcessingUnitScaleStrategy(String puName,
                                           ScaleStrategyConfig scaleStrategyConfig)
                                    throws RemoteException
Throws:
RemoteException

getProcessingUnitScaleStrategyConfig

public ScaleStrategyConfig getProcessingUnitScaleStrategyConfig(String processingUnitName)
                                                         throws RemoteException
Throws:
RemoteException

isManagingProcessingUnit

public boolean isManagingProcessingUnit(String processingUnitName)
                                 throws RemoteException
Specified by:
isManagingProcessingUnit in interface com.gigaspaces.grid.esm.ESM
Throws:
RemoteException

isManagingProcessingUnitAndScaleNotInProgress

public boolean isManagingProcessingUnitAndScaleNotInProgress(String processingUnitName)
                                                      throws RemoteException
Specified by:
isManagingProcessingUnitAndScaleNotInProgress in interface com.gigaspaces.grid.esm.ESM
Throws:
RemoteException

getScaleStrategyEvents

public org.jini.rio.monitor.event.Events getScaleStrategyEvents(long cursor,
                                                                int maxNumberOfEvents)
                                                         throws RemoteException
Throws:
RemoteException

getRemoteApi

public Remote getRemoteApi(String processingUnitName,
                           String apiName)
                    throws RemoteException
Throws:
RemoteException

disableAgentFailureDetection

public void disableAgentFailureDetection(String processingUnitName,
                                         long timeout,
                                         TimeUnit timeunit)
                                  throws RemoteException
Description copied from interface: ESM
Disables failure detection for the agent on the machine that called this method. This suppresses the creation of a new machine instead of the specified GSA if it is no longer running. It does not suppress the healing of GSCs on that GSA. Once the specified timeout expires, the failure detection is enabled automatically.

Throws:
RemoteException

enableAgentFailureDetection

public void enableAgentFailureDetection(String processingUnitName)
                                 throws RemoteException
Description copied from interface: ESM
Enables failure detection for the agent on the machine that called this method.

Throws:
RemoteException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.