Package com.apama.net.interfaces
Interface GenericComponentManagement
-
public interface GenericComponentManagementGeneric management interface for Apama components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceGenericComponentManagement.GenericComponentConnectionThe interface describing a messaging connection to a componentstatic interfaceGenericComponentManagement.GenericComponentConnectionSetstatic interfaceGenericComponentManagement.GenericComponentInfoA list of related component info tuplesstatic interfaceGenericComponentManagement.GenericComponentInfoTupleA name-value pair holding some information about a componentstatic classGenericComponentManagement.GenericComponentLogLevelLog verbosity levelsstatic interfaceGenericComponentManagement.GenericComponentReceiverThe interface describing a messaging receiver connected to a componentstatic interfaceGenericComponentManagement.GenericComponentSenderThe interface describing a messaging sender connected to a component
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]GenericComponentLogLevelNamesDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeepPing()Perform a component-specific 'deep' pingbooleandisconnectReceiverByComponentId(com.apama.message.ComponentIDTuple id, java.lang.String why)Disconnect the receiver connected to this component that has component ID id.booleandisconnectSenderByComponentId(com.apama.message.ComponentIDTuple id, java.lang.String why)Disconnect the sender connected to this component that has component ID id.java.lang.StringdoRequest(java.lang.String type, java.lang.String[] args)Execute a component-specific commandjava.lang.StringgetBuildNumber()Get the component's build numberjava.lang.StringgetBuildPlatform()Get the component's build platformjava.lang.StringgetComponentVersion()Get the component's version numberGenericComponentManagement.GenericComponentConnectionSetgetConnections()Request the set of messaging peers attached to the componentjava.lang.StringgetCurrentDirectory()Get the component's current working directory pathjava.lang.StringgetHostname()Get the hostname that component is running onGenericComponentManagement.GenericComponentInfogetInfo(java.lang.String category)Request component-specific status/configuration informationlonggetLogicalId()Get the unique logical ID of the componentGenericComponentManagement.GenericComponentLogLevelgetLogLevel()Get the component's current logging leveljava.lang.StringgetName()Get the name of the component, encoded as UTF-8longgetPhysicalId()Get the globally unique physical ID of the componentlonggetPID()Return the component's process IDfloatgetPMemory()Get the physical memory usage of the component, in megabytesjava.lang.StringgetProductVersion()Get the version number of the product the component belongs tointgetRemotePort()Get the port number that the component is listening onjava.lang.StringgetType()Get the type of the component, encoded as UTF-8intgetUptime()Get the uptime of the component, in msjava.lang.StringgetUsername()Get the effective username the component is running asfloatgetVMemory()Get the virtual memory usage of the component, in megabytesvoidping()This method is used to check that the component is still alive.voidsetLogLevel(GenericComponentManagement.GenericComponentLogLevel logLevel)Set the component's logging levelvoidshutdown(java.lang.String why)Tell the component to shut itself down NOW
-
-
-
Method Detail
-
deepPing
boolean deepPing() throws GenericComponentManagementExceptionPerform a component-specific 'deep' ping
-
getPID
long getPID() throws GenericComponentManagementExceptionReturn the component's process ID
-
shutdown
void shutdown(java.lang.String why) throws GenericComponentManagementExceptionTell the component to shut itself down NOW
-
disconnectReceiverByComponentId
boolean disconnectReceiverByComponentId(com.apama.message.ComponentIDTuple id, java.lang.String why) throws GenericComponentManagementExceptionDisconnect 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 GenericComponentManagementExceptionDisconnect 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 GenericComponentManagementExceptionGet the name of the component, encoded as UTF-8
-
getType
java.lang.String getType() throws GenericComponentManagementExceptionGet the type of the component, encoded as UTF-8
-
getUptime
int getUptime() throws GenericComponentManagementExceptionGet the uptime of the component, in ms
-
getVMemory
float getVMemory() throws GenericComponentManagementExceptionGet the virtual memory usage of the component, in megabytes
-
getPMemory
float getPMemory() throws GenericComponentManagementExceptionGet the physical memory usage of the component, in megabytes
-
getPhysicalId
long getPhysicalId() throws GenericComponentManagementExceptionGet the globally unique physical ID of the component
-
getLogicalId
long getLogicalId() throws GenericComponentManagementExceptionGet 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 GenericComponentManagementExceptionGet the component's version number
-
getProductVersion
java.lang.String getProductVersion() throws GenericComponentManagementExceptionGet the version number of the product the component belongs to
-
getBuildNumber
java.lang.String getBuildNumber() throws GenericComponentManagementExceptionGet the component's build number
-
getBuildPlatform
java.lang.String getBuildPlatform() throws GenericComponentManagementExceptionGet the component's build platform
-
getHostname
java.lang.String getHostname() throws GenericComponentManagementExceptionGet the hostname that component is running on
-
getUsername
java.lang.String getUsername() throws GenericComponentManagementExceptionGet the effective username the component is running as
-
getCurrentDirectory
java.lang.String getCurrentDirectory() throws GenericComponentManagementExceptionGet the component's current working directory path
-
getRemotePort
int getRemotePort() throws GenericComponentManagementExceptionGet the port number that the component is listening on
-
doRequest
java.lang.String doRequest(java.lang.String type, java.lang.String[] args) throws GenericComponentManagementExceptionExecute 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.
-
-