Package com.apama.net.interfaces
Interface GenericComponentManagement
-
public interface GenericComponentManagement
Generic management interface for Apama components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GenericComponentManagement.GenericComponentConnection
The interface describing a messaging connection to a componentstatic interface
GenericComponentManagement.GenericComponentConnectionSet
static interface
GenericComponentManagement.GenericComponentInfo
A list of related component info tuplesstatic interface
GenericComponentManagement.GenericComponentInfoTuple
A name-value pair holding some information about a componentstatic class
GenericComponentManagement.GenericComponentLogLevel
Log verbosity levelsstatic interface
GenericComponentManagement.GenericComponentReceiver
The interface describing a messaging receiver connected to a componentstatic interface
GenericComponentManagement.GenericComponentSender
The interface describing a messaging sender connected to a component
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
GenericComponentLogLevelNames
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deepPing()
Perform a component-specific 'deep' pingboolean
disconnectReceiverByComponentId(com.apama.message.ComponentIDTuple id, java.lang.String why)
Disconnect the receiver connected to this component that has component ID id.boolean
disconnectSenderByComponentId(com.apama.message.ComponentIDTuple id, java.lang.String why)
Disconnect the sender connected to this component that has component ID id.java.lang.String
doRequest(java.lang.String type, java.lang.String[] args)
Execute a component-specific commandjava.lang.String
getBuildNumber()
Get the component's build numberjava.lang.String
getBuildPlatform()
Get the component's build platformjava.lang.String
getComponentVersion()
Get the component's version numberGenericComponentManagement.GenericComponentConnectionSet
getConnections()
Request the set of messaging peers attached to the componentjava.lang.String
getCurrentDirectory()
Get the component's current working directory pathjava.lang.String
getHostname()
Get the hostname that component is running onGenericComponentManagement.GenericComponentInfo
getInfo(java.lang.String category)
Request component-specific status/configuration informationlong
getLogicalId()
Get the unique logical ID of the componentGenericComponentManagement.GenericComponentLogLevel
getLogLevel()
Get the component's current logging leveljava.lang.String
getName()
Get the name of the component, encoded as UTF-8long
getPhysicalId()
Get the globally unique physical ID of the componentlong
getPID()
Return the component's process IDfloat
getPMemory()
Get the physical memory usage of the component, in megabytesjava.lang.String
getProductVersion()
Get the version number of the product the component belongs toint
getRemotePort()
Get the port number that the component is listening onjava.lang.String
getType()
Get the type of the component, encoded as UTF-8int
getUptime()
Get the uptime of the component, in msjava.lang.String
getUsername()
Get the effective username the component is running asfloat
getVMemory()
Get the virtual memory usage of the component, in megabytesvoid
ping()
This method is used to check that the component is still alive.void
setLogLevel(GenericComponentManagement.GenericComponentLogLevel logLevel)
Set the component's logging levelvoid
shutdown(java.lang.String why)
Tell the component to shut itself down NOW
-
-
-
Method Detail
-
deepPing
boolean deepPing() throws GenericComponentManagementException
Perform a component-specific 'deep' ping
-
getPID
long getPID() throws GenericComponentManagementException
Return the component's process ID
-
shutdown
void shutdown(java.lang.String why) throws GenericComponentManagementException
Tell the component to shut itself down NOW
-
disconnectReceiverByComponentId
boolean disconnectReceiverByComponentId(com.apama.message.ComponentIDTuple id, java.lang.String why) throws GenericComponentManagementException
Disconnect the receiver connected to this component that has component ID id. IDs can be discovered through the getConnections() call. You can provide a reason.- Parameters:
id
- the IDwhy
- free form text that is sent to the remote receiver- Throws:
GenericComponentManagementException
- See Also:
getConnections()
-
disconnectSenderByComponentId
boolean disconnectSenderByComponentId(com.apama.message.ComponentIDTuple id, java.lang.String why) throws GenericComponentManagementException
Disconnect the sender connected to this component that has component ID id. IDs can be discovered through the getConnections() call. You can provide a reason.- Parameters:
id
- the IDwhy
- free form text that is sent to the remote sender- Throws:
GenericComponentManagementException
- See Also:
getConnections()
-
getName
java.lang.String getName() throws GenericComponentManagementException
Get the name of the component, encoded as UTF-8
-
getType
java.lang.String getType() throws GenericComponentManagementException
Get the type of the component, encoded as UTF-8
-
getUptime
int getUptime() throws GenericComponentManagementException
Get the uptime of the component, in ms
-
getVMemory
float getVMemory() throws GenericComponentManagementException
Get the virtual memory usage of the component, in megabytes
-
getPMemory
float getPMemory() throws GenericComponentManagementException
Get the physical memory usage of the component, in megabytes
-
getPhysicalId
long getPhysicalId() throws GenericComponentManagementException
Get the globally unique physical ID of the component
-
getLogicalId
long getLogicalId() throws GenericComponentManagementException
Get the unique logical ID of the component
-
getLogLevel
GenericComponentManagement.GenericComponentLogLevel getLogLevel() throws GenericComponentManagementException
Get the component's current logging level
-
setLogLevel
void setLogLevel(GenericComponentManagement.GenericComponentLogLevel logLevel) throws GenericComponentManagementException
Set the component's logging level
-
getComponentVersion
java.lang.String getComponentVersion() throws GenericComponentManagementException
Get the component's version number
-
getProductVersion
java.lang.String getProductVersion() throws GenericComponentManagementException
Get the version number of the product the component belongs to
-
getBuildNumber
java.lang.String getBuildNumber() throws GenericComponentManagementException
Get the component's build number
-
getBuildPlatform
java.lang.String getBuildPlatform() throws GenericComponentManagementException
Get the component's build platform
-
getHostname
java.lang.String getHostname() throws GenericComponentManagementException
Get the hostname that component is running on
-
getUsername
java.lang.String getUsername() throws GenericComponentManagementException
Get the effective username the component is running as
-
getCurrentDirectory
java.lang.String getCurrentDirectory() throws GenericComponentManagementException
Get the component's current working directory path
-
getRemotePort
int getRemotePort() throws GenericComponentManagementException
Get the port number that the component is listening on
-
doRequest
java.lang.String doRequest(java.lang.String type, java.lang.String[] args) throws GenericComponentManagementException
Execute a component-specific command
-
getInfo
GenericComponentManagement.GenericComponentInfo getInfo(java.lang.String category) throws GenericComponentManagementException
Request component-specific status/configuration information
-
getConnections
GenericComponentManagement.GenericComponentConnectionSet getConnections() throws GenericComponentManagementException
Request the set of messaging peers attached to the component
-
ping
void ping() throws GenericComponentManagementException
This method is used to check that the component is still alive. If the server is alive it returns normally. If there is a problem then a GenericComponentManagementException is thrown.
-
-