Package jadex.tools.web.status
Class StatusAgent
- java.lang.Object
- 
- jadex.tools.web.status.StatusAgent
 
- 
- All Implemented Interfaces:
- IStatusService
 
 public class StatusAgent extends java.lang.Object implements IStatusService An agent to provide a platform status view in the web.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagent
 - 
Constructor SummaryConstructors Constructor Description StatusAgent()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IIntermediateFuture<PlatformData>getConnectedPlatforms()Get the established connections.IFuture<java.util.Collection<java.util.Map<java.lang.String,java.lang.Object>>>getMemInfo()Get all memory stats.IFuture<java.util.Collection<ServiceQuery<?>>>getQueries(java.lang.String... scope)Get registered queries of a given (set of) scope(s) or no scope for all queries.static voidmain(java.lang.String[] args)Main for testing.protected IFuture<java.lang.Void>setup()ISubscriptionIntermediateFuture<PlatformData>subscribeToConnections()Get events about established connections.ISubscriptionIntermediateFuture<ServiceEvent<IServiceIdentifier>>subscribeToServices()Get the managed services, if this platform is a super peer (i.e.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent 
 
- 
 - 
Method Detail- 
setupprotected IFuture<java.lang.Void> setup() 
 - 
getConnectedPlatformspublic IIntermediateFuture<PlatformData> getConnectedPlatforms() Description copied from interface:IStatusServiceGet the established connections.- Specified by:
- getConnectedPlatformsin interface- IStatusService
- Returns:
- A list of connections.
 
 - 
subscribeToConnectionspublic ISubscriptionIntermediateFuture<PlatformData> subscribeToConnections() Description copied from interface:IStatusServiceGet events about established connections.- Specified by:
- subscribeToConnectionsin interface- IStatusService
- Returns:
- Events for connections.
 
 - 
getQueriespublic IFuture<java.util.Collection<ServiceQuery<?>>> getQueries(java.lang.String... scope) Get registered queries of a given (set of) scope(s) or no scope for all queries.- Specified by:
- getQueriesin interface- IStatusService
- Returns:
- A list of queries.
 
 - 
subscribeToServicespublic ISubscriptionIntermediateFuture<ServiceEvent<IServiceIdentifier>> subscribeToServices() Get the managed services, if this platform is a super peer (i.e. has an ISuperpeerService).- Specified by:
- subscribeToServicesin interface- IStatusService
- Returns:
- Service events for a self-updating list of services.
 
 - 
getMemInfopublic IFuture<java.util.Collection<java.util.Map<java.lang.String,java.lang.Object>>> getMemInfo() Get all memory stats. cf IMemstatService- Specified by:
- getMemInfoin interface- IStatusService
 
 - 
mainpublic static void main(java.lang.String[] args) Main for testing.
 
- 
 
-