public class KEngineImpl extends TopologyImpl implements ApplicationRuntime
ciliaContainerCHAIN_STATE_IDLE, CHAIN_STATE_STARTED, CHAIN_STATE_STOPPED| Constructor and Description |
|---|
KEngineImpl(org.osgi.framework.BundleContext bc,
CiliaContainer cc,
Eventing evtManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(String ldapFilter,
ChainCallback listener)
Adds a listener
|
void |
addListener(String ldapFilter,
NodeCallback listener) |
void |
addListener(String ldapfilter,
ThresholdsCallback listener)
inserts a listener
|
void |
addListener(String ldapfilter,
VariableCallback listener) |
boolean |
copyData(Node from,
Node to)
copy messages ( regular and stored)
|
Map |
getBufferedData(Node node)
Get a copy of the map buffered for the fiven mediator
|
int |
getChainState(String chainId)
gives the current chain state
|
Dictionary |
getProperties(Node node)
Return all properties for a node
|
Object |
getProperty(Node node,
String key)
Return a specified property
|
Date |
lastCommand(String chainId)
Return date and time last command [start,stop] level chain
|
Thresholds |
nodeMonitoring(Node node)
fast access using the node reference
|
Thresholds[] |
nodeMonitoring(String ldapFilter) |
RawData |
nodeRawData(Node node)
fast access using the node reference
|
RawData[] |
nodeRawData(String ldapFilter) |
SetUp |
nodeSetup(Node node)
fast access using the node reference
|
SetUp[] |
nodeSetup(String ldapFilter) |
void |
removeListener(ChainCallback listener)
Removes a listener
|
void |
removeListener(NodeCallback listener) |
void |
removeListener(ThresholdsCallback listener)
Removes a threshold listener
|
void |
removeListener(VariableCallback listener)
Removes a Measure listener
|
void |
start() |
void |
startChain(String chainId)
start a chain
|
void |
stop() |
void |
stopChain(String chainId)
stop a chain
|
connectedTo, connectedTo, connectedTo, connectedTo, endpointIn, endpointIn, endpointOut, endpointOut, findNodeByFilter, findNodeByFilter, getChain, getChainId, getModel, getNextNodes, nodeByTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChainIdconnectedTo, connectedTo, connectedTo, connectedTo, endpointIn, endpointIn, endpointOut, endpointOut, findNodeByFilter, findNodeByFilter, nodeByTypegetChain, getModelpublic KEngineImpl(org.osgi.framework.BundleContext bc,
CiliaContainer cc,
Eventing evtManager)
public void start()
public void stop()
public Dictionary getProperties(Node node) throws CiliaIllegalStateException, CiliaIllegalParameterException
ModelComponentsgetProperties in interface ModelComponentsCiliaIllegalStateExceptionCiliaIllegalParameterExceptionpublic Object getProperty(Node node, String key) throws CiliaIllegalStateException, CiliaIllegalParameterException
ModelComponentsgetProperty in interface ModelComponentsCiliaIllegalStateExceptionCiliaIllegalParameterExceptionpublic void addListener(String ldapFilter, NodeCallback listener) throws CiliaIllegalParameterException, CiliaInvalidSyntaxException
addListener in interface NodeRegistrationlistener - , listener to addCiliaIllegalParameterException - , null of wrong parameterCiliaInvalidSyntaxException - LDAP syntax errorpublic void removeListener(NodeCallback listener) throws CiliaIllegalParameterException
removeListener in interface NodeRegistrationlistener - , listener to removeCiliaIllegalParameterException - , null parameterpublic void addListener(String ldapFilter, ChainCallback listener) throws CiliaIllegalParameterException, CiliaInvalidSyntaxException
ChainRegistrationaddListener in interface ChainRegistrationlistener - , listener to addCiliaIllegalParameterException - , null or wrong parameterCiliaInvalidSyntaxExceptionpublic void removeListener(ChainCallback listener) throws CiliaIllegalParameterException
ChainRegistrationremoveListener in interface ChainRegistrationlistener - , listener to removeCiliaIllegalParameterException - is listener is nullpublic void addListener(String ldapfilter, ThresholdsCallback listener) throws CiliaIllegalParameterException, CiliaInvalidSyntaxException
VariablesRegistrationaddListener in interface VariablesRegistrationldapfilter - ldap keywords :uuid, chain, node,variablelistener - ,CiliaIllegalParameterExceptionCiliaInvalidSyntaxExceptionpublic void addListener(String ldapfilter, VariableCallback listener) throws CiliaIllegalParameterException, CiliaInvalidSyntaxException
addListener in interface VariablesRegistrationldapfilter - ldap keywords :uuid,chain, node,variableCiliaIllegalParameterExceptionCiliaInvalidSyntaxExceptionpublic void removeListener(ThresholdsCallback listener) throws CiliaIllegalParameterException
VariablesRegistrationremoveListener in interface VariablesRegistrationlistener - , listener to removeCiliaIllegalParameterExceptionpublic void removeListener(VariableCallback listener) throws CiliaIllegalParameterException
VariablesRegistrationremoveListener in interface VariablesRegistrationCiliaIllegalParameterExceptionpublic void startChain(String chainId) throws CiliaIllegalParameterException, CiliaIllegalStateException
ApplicationRuntimestartChain in interface ApplicationRuntimechainId - the chain ID to initializeCiliaIllegalParameterException - when the chain ID does not exist.CiliaIllegalStateExceptionpublic void stopChain(String chainId) throws CiliaIllegalParameterException, CiliaIllegalStateException
ApplicationRuntimestopChain in interface ApplicationRuntimechainId - The chain id to stop.CiliaIllegalParameterException - when the chain ID does not exist.CiliaIllegalStateExceptionpublic SetUp nodeSetup(Node node) throws CiliaIllegalParameterException, CiliaIllegalStateException
ApplicationRuntimenodeSetup in interface ApplicationRuntimeCiliaIllegalParameterException - if the node is nullCiliaIllegalStateExceptionpublic int getChainState(String chainId) throws CiliaIllegalParameterException, CiliaIllegalStateException
ApplicationRuntimegetChainState in interface ApplicationRuntimeCiliaIllegalParameterException - ,CiliaIllegalStateExceptionCiliaIllegalStateExceptionpublic Date lastCommand(String chainId) throws CiliaIllegalParameterException, CiliaIllegalStateException
ApplicationRuntimelastCommand in interface ApplicationRuntimeCiliaIllegalParameterExceptionCiliaIllegalStateExceptionpublic SetUp[] nodeSetup(String ldapFilter) throws CiliaIllegalParameterException, CiliaInvalidSyntaxException
nodeSetup in interface ApplicationRuntimeldapFilter - ldap filters, keywords {uuid,chain,node}CiliaInvalidSyntaxExceptionCiliaIllegalParameterExceptionpublic RawData[] nodeRawData(String ldapFilter) throws CiliaInvalidSyntaxException, CiliaIllegalParameterException
nodeRawData in interface ApplicationRuntimeldapFilter - ldap filters, keywords {uuid,chain,node}CiliaInvalidSyntaxExceptionCiliaIllegalParameterExceptionpublic RawData nodeRawData(Node node) throws CiliaIllegalParameterException, CiliaIllegalStateException
ApplicationRuntimenodeRawData in interface ApplicationRuntimeCiliaIllegalParameterException - if the node is nullCiliaIllegalStateExceptionpublic Thresholds[] nodeMonitoring(String ldapFilter) throws CiliaIllegalParameterException, CiliaInvalidSyntaxException
nodeMonitoring in interface ApplicationRuntimeldapFilter - ldap filters, keywords {uuid,chain,node}CiliaIllegalParameterExceptionCiliaInvalidSyntaxExceptionpublic Thresholds nodeMonitoring(Node node) throws CiliaIllegalParameterException, CiliaIllegalStateException
ApplicationRuntimenodeMonitoring in interface ApplicationRuntimeCiliaIllegalParameterException - if the node is nullCiliaIllegalStateExceptionpublic Map getBufferedData(Node node) throws CiliaIllegalParameterException
ApplicationRuntimegetBufferedData in interface ApplicationRuntimenode - the node to retrieve the dataCiliaIllegalParameterExceptionpublic boolean copyData(Node from, Node to) throws CiliaIllegalParameterException
ApplicationRuntimecopyData in interface ApplicationRuntimefrom - The node from the buffered data will be copied.to - The node to the buffered data will be copied.CiliaIllegalParameterExceptionCopyright © 2012-2013 Adele Team | LIG. All Rights Reserved.