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 Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
-
Constructor Summary
Constructors Constructor Description StatusAgent()
-
Method Summary
All 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 void
main(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
-
agent
protected IInternalAccess agent
-
-
Method Detail
-
setup
protected IFuture<java.lang.Void> setup()
-
getConnectedPlatforms
public IIntermediateFuture<PlatformData> getConnectedPlatforms()
Description copied from interface:IStatusService
Get the established connections.- Specified by:
getConnectedPlatforms
in interfaceIStatusService
- Returns:
- A list of connections.
-
subscribeToConnections
public ISubscriptionIntermediateFuture<PlatformData> subscribeToConnections()
Description copied from interface:IStatusService
Get events about established connections.- Specified by:
subscribeToConnections
in interfaceIStatusService
- Returns:
- Events for connections.
-
getQueries
public 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:
getQueries
in interfaceIStatusService
- Returns:
- A list of queries.
-
subscribeToServices
public ISubscriptionIntermediateFuture<ServiceEvent<IServiceIdentifier>> subscribeToServices()
Get the managed services, if this platform is a super peer (i.e. has an ISuperpeerService).- Specified by:
subscribeToServices
in interfaceIStatusService
- Returns:
- Service events for a self-updating list of services.
-
getMemInfo
public IFuture<java.util.Collection<java.util.Map<java.lang.String,java.lang.Object>>> getMemInfo()
Get all memory stats. cf IMemstatService- Specified by:
getMemInfo
in interfaceIStatusService
-
main
public static void main(java.lang.String[] args)
Main for testing.
-
-