Interface AgentGridComponent
- All Superinterfaces:
AdminAware, DiscoverableComponent, GridComponent, MachineAware, OperatingSystemAware, TransportAware, VirtualMachineAware, ZoneAware
- All Known Subinterfaces:
GridServiceContainer, GridServiceManager, InternalAgentGridComponent, InternalGridServiceContainer, InternalGridServiceManager, InternalLookupService, LookupService
- All Known Implementing Classes:
AbstractAgentGridComponent, DefaultGridServiceContainer, DefaultGridServiceManager, DefaultLookupService
An Agent grid component is a
GridComponent that can be started by a
GridServiceAgent.- Author:
- kimchy
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the agent id of the component.Returns theGridServiceAgentthat started the grid component.voidkill()Kills the grid component.voidrestart()Restarts the grid component.Methods inherited from interface AdminAware
getAdminMethods inherited from interface DiscoverableComponent
isDiscoveredMethods inherited from interface GridComponent
getUidMethods inherited from interface MachineAware
getMachineMethods inherited from interface OperatingSystemAware
getOperatingSystemMethods inherited from interface TransportAware
getTransportMethods inherited from interface VirtualMachineAware
getVirtualMachine
-
Method Details
-
getGridServiceAgent
GridServiceAgent getGridServiceAgent()Returns theGridServiceAgentthat started the grid component. -
getAgentId
int getAgentId()Returns the agent id of the component. -
kill
void kill()Kills the grid component. The Grid Service Agent will not try to start it (as it does when abnormal termination of the component occurs). -
restart
void restart()Restarts the grid component. Completely killing the process of the component, and then starting it again.
-