Class DefaultLookupService
java.lang.Object
org.openspaces.admin.internal.support.AbstractGridComponent
org.openspaces.admin.internal.support.AbstractAgentGridComponent
org.openspaces.admin.internal.lus.DefaultLookupService
- All Implemented Interfaces:
AdminAware,AgentGridComponent,DiscoverableComponent,DumpProvider,GridComponent,InternalLookupService,InternalMachineAware,InternalOperatingSystemAware,InternalOperatingSystemInfoProvider,InternalAgentGridComponent,InternalDiscoverableComponent,InternalGridComponent,InternalTransportAware,InternalTransportInfoProvider,InternalVirtualMachineAware,InternalVirtualMachineInfoProvider,InternalZoneAware,LogProviderGridComponent,LookupService,MachineAware,MetricProvider,OperatingSystemAware,TransportAware,VirtualMachineAware,ZoneAware
public class DefaultLookupService
extends AbstractAgentGridComponent
implements InternalLookupService
- Author:
- kimchy
-
Field Summary
Fields inherited from class org.openspaces.admin.internal.support.AbstractGridComponent
admin -
Constructor Summary
ConstructorsConstructorDescriptionDefaultLookupService(ServiceRegistrar registrar, ServiceID serviceID, InternalAdmin admin, int agentId, String agentUid, JVMDetails jvmDetails) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleangenerateDump(String cause, Map<String, Object> context) Generates dump for all the provided dump processors.Generates dump for the provided processors.longString[]getUid()Returns the unique id of the grid component.inthashCode()logEntries(LogEntryMatcher matcher) Returns the log entries matching the given matcher for the specific grid component.logEntriesDirect(LogEntryMatcher matcher) Same asLogProviderGridComponent.logEntries(com.gigaspaces.log.LogEntryMatcher), but does not try and get the logs from the agent.voidvoidrunGc()Methods inherited from class org.openspaces.admin.internal.support.AbstractAgentGridComponent
getAgentId, getAgentUid, getGridServiceAgent, kill, restart, setGridServiceAgentMethods inherited from class org.openspaces.admin.internal.support.AbstractGridComponent
addZone, assertStateChangesPermitted, getAdmin, getJVMDetails, getMachine, getOperatingSystem, getTransport, getVirtualMachine, getZones, isDiscovered, setDiscovered, setMachine, setOperatingSystem, setTransport, setVirtualMachineMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openspaces.admin.AdminAware
getAdminMethods inherited from interface org.openspaces.admin.AgentGridComponent
getAgentId, getGridServiceAgent, kill, restartMethods inherited from interface org.openspaces.admin.DiscoverableComponent
isDiscoveredMethods inherited from interface org.openspaces.admin.internal.support.InternalAgentGridComponent
getAgentUid, setGridServiceAgentMethods inherited from interface org.openspaces.admin.internal.support.InternalDiscoverableComponent
setDiscoveredMethods inherited from interface org.openspaces.admin.internal.machine.InternalMachineAware
setMachineMethods inherited from interface org.openspaces.admin.internal.os.InternalOperatingSystemAware
setOperatingSystemMethods inherited from interface org.openspaces.admin.internal.transport.InternalTransportAware
setTransportMethods inherited from interface org.openspaces.admin.internal.vm.InternalVirtualMachineAware
setVirtualMachineMethods inherited from interface org.openspaces.admin.internal.vm.InternalVirtualMachineInfoProvider
getJVMDetailsMethods inherited from interface org.openspaces.admin.internal.zone.InternalZoneAware
addZoneMethods inherited from interface org.openspaces.admin.machine.MachineAware
getMachineMethods inherited from interface org.openspaces.admin.os.OperatingSystemAware
getOperatingSystemMethods inherited from interface org.openspaces.admin.transport.TransportAware
getTransportMethods inherited from interface org.openspaces.admin.vm.VirtualMachineAware
getVirtualMachine
-
Constructor Details
-
DefaultLookupService
public DefaultLookupService(ServiceRegistrar registrar, ServiceID serviceID, InternalAdmin admin, int agentId, String agentUid, JVMDetails jvmDetails)
-
-
Method Details
-
getUid
Description copied from interface:GridComponentReturns the unique id of the grid component.- Specified by:
getUidin interfaceGridComponent- Specified by:
getUidin interfaceInternalVirtualMachineInfoProvider
-
getServiceID
- Specified by:
getServiceIDin interfaceInternalLookupService
-
getLookupGroups
- Specified by:
getLookupGroupsin interfaceLookupService
-
getLookupLocator
- Specified by:
getLookupLocatorin interfaceLookupService
-
getRegistrar
- Specified by:
getRegistrarin interfaceInternalLookupService
-
logEntries
Description copied from interface:LogProviderGridComponentReturns the log entries matching the given matcher for the specific grid component. If it is managed by aGridServiceAgent, will get the log through it instead of creating a load on the actual grid component.- Specified by:
logEntriesin interfaceLogProviderGridComponent- Throws:
AdminException
-
logEntriesDirect
Description copied from interface:LogProviderGridComponentSame asLogProviderGridComponent.logEntries(com.gigaspaces.log.LogEntryMatcher), but does not try and get the logs from the agent.- Specified by:
logEntriesDirectin interfaceLogProviderGridComponent- Throws:
AdminException
-
reloadMetricConfiguration
- Specified by:
reloadMetricConfigurationin interfaceMetricProvider- Throws:
AdminException
-
generateDump
Description copied from interface:DumpProviderGenerates dump for all the provided dump processors. Note, this will include a heap dump which can consume time and potentially be of very large size- Specified by:
generateDumpin interfaceDumpProvider- Parameters:
cause- The cause that this dump was generatedcontext- Allows to provide specific parameters to specific processors- Throws:
AdminException
-
generateDump
public DumpResult generateDump(String cause, Map<String, Object> context, String... processors) throws AdminExceptionDescription copied from interface:DumpProviderGenerates dump for the provided processors. The current list of processors include:- summary: General summary information of the process.
- network: Information on the network layer of the process and the OS network stats.
- thread: Thread dump of the process.
- heap: Heap dump of the process. Note, this is a heavy operation and can produce very large dump files
- log: Adds all the log files of the process to the dump file.
- processingUnits: Dump of all the processing units (applicable only for GSCs) information.
- Specified by:
generateDumpin interfaceDumpProvider- Parameters:
cause- The cause this dump was generated.context- Allows to provide specific parameters to specific processors.processors- The list of processors to be used.- Throws:
AdminException
-
getNIODetails
- Specified by:
getNIODetailsin interfaceInternalTransportInfoProvider- Throws:
RemoteException
-
getNIOStatistics
- Specified by:
getNIOStatisticsin interfaceInternalTransportInfoProvider- Throws:
RemoteException
-
enableLRMIMonitoring
- Specified by:
enableLRMIMonitoringin interfaceInternalTransportInfoProvider- Throws:
RemoteException
-
disableLRMIMonitoring
- Specified by:
disableLRMIMonitoringin interfaceInternalTransportInfoProvider- Throws:
RemoteException
-
fetchLRMIMonitoringDetails
- Specified by:
fetchLRMIMonitoringDetailsin interfaceInternalTransportInfoProvider- Throws:
RemoteException
-
getCurrentTimeInMillis
- Specified by:
getCurrentTimeInMillisin interfaceInternalOperatingSystemInfoProvider- Throws:
RemoteException
-
getOSDetails
- Specified by:
getOSDetailsin interfaceInternalOperatingSystemInfoProvider- Throws:
RemoteException
-
getOSStatistics
- Specified by:
getOSStatisticsin interfaceInternalOperatingSystemInfoProvider- Throws:
RemoteException
-
getJVMStatistics
- Specified by:
getJVMStatisticsin interfaceInternalVirtualMachineInfoProvider- Throws:
RemoteException
-
runGc
- Specified by:
runGcin interfaceInternalVirtualMachineInfoProvider- Throws:
RemoteException
-
equals
-
hashCode
public int hashCode()
-