|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.resoa.node.core.ResoaBaseGateway
org.resoa.node.core.ResoaServiceGateway
org.resoa.node.core.RESTGateway
public abstract class RESTGateway
This is the gateway implementation, used by REST nodes. The full rest node logic is added inside the resoa.rest project. Domain cache is the list of service domains, all deployed web applications depend on
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.resoa.grid.ResoaGateway |
|---|
org.resoa.grid.ResoaGateway.ControllerGateway, org.resoa.grid.ResoaGateway.GatewayRunner |
| Field Summary | |
|---|---|
protected javolution.util.FastMap<java.lang.String,org.resoa.stack.StackChannelProcessor> |
domainMessageProcessors
|
protected org.resoa.topology.RESTNode |
localNode
|
| Fields inherited from class org.resoa.node.core.ResoaServiceGateway |
|---|
deployedServices, lockServices |
| Fields inherited from class org.resoa.node.core.ResoaBaseGateway |
|---|
executionExceptions, gatewayRunner, initialControllers, localProfile, lockConnection, lockNodeState, lockResoaUpdate, logger, nodeDomains, nodeType, pendingMessages, permissionExceptions, properties, rcl, requestExceptions, running, security, sessionExceptions, stack |
| Fields inherited from interface org.resoa.grid.ResoaGateway |
|---|
DOMAIN_PERSISTENCE, DOMAIN_TOPOLOGY, PROP_CONTROLLERDATAPATH, RESOAINFO_FILE, ResoaNodeTimeout, ROLE_CONTROLLER, ROLE_GRID, STACKCONFIG_FILE |
| Constructor Summary | |
|---|---|
protected |
RESTGateway()
Constructor for Gateway without Resoa Grid Functionality |
|
RESTGateway(java.lang.String configPath)
Constructor |
| Method Summary | |
|---|---|
protected void |
clearApplications(boolean restartHTTP)
WebDomian deployment event |
org.resoa.topology.RestSession |
createRestSession(java.util.List<org.resoa.topology.Permission> perm,
java.lang.String userID,
java.lang.String dns,
int timeOut,
org.resoa.grid.GridSession requestor)
Creates a RESTSession handle |
protected org.resoa.topology.RESTNode |
getLocalNode(org.resoa.topology.ResoaInfo resoaInfo)
Retrieve the local RESTNode handle out of ResoaInfo |
org.resoa.grid.ResoaPersistence |
getPersistor()
|
boolean |
isDeployed(java.lang.String domain,
java.lang.String serviceName)
|
void |
onMessage(java.lang.Object stackChannel,
org.resoa.grid.Message msg)
Gets invoked on message arrival from stack. |
protected ResoaNodeHandle |
onSessionInitialized(org.resoa.grid.GridSession session)
Gets invoked on session initialized. |
void |
onTransactionDelay(java.lang.Object channel,
org.resoa.grid.Message msg)
|
protected void |
onWebDomainDeployment(org.resoa.topology.WebDomainInfo domainInfo)
WebDomian deployment event |
org.resoa.topology.ResoaComponent |
processLocalDeployment(org.resoa.topology.ResoaInfo resoaInfo,
javolution.util.FastMap<java.lang.String,java.lang.String> descriptors,
boolean isUpdate)
Get the service deployment map. key is domain name |
void |
registerDomainMessageProcessor(java.lang.String domain,
org.resoa.stack.StackChannelProcessor processor)
Registers an StackMessageProcessor for a package. |
protected void |
updateMonitoring(org.resoa.topology.NodeState state)
Update monitoring data within locked state |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.resoa.grid.ResoaGateway |
|---|
connectToInitialController, getConfigurationPath, getLocalProfile, getLogger, getNodeState, getNodeType, isRunning, removeIdleSessions, setGatewayRunner, stop, updateResoaInfo |
| Methods inherited from interface org.resoa.stack.Callbacks.SessionState |
|---|
sessionDisconnected, sessionInitialized |
| Field Detail |
|---|
protected org.resoa.topology.RESTNode localNode
protected javolution.util.FastMap<java.lang.String,org.resoa.stack.StackChannelProcessor> domainMessageProcessors
| Constructor Detail |
|---|
public RESTGateway(java.lang.String configPath)
throws org.resoa.exception.ResoaException
configPath -
org.resoa.exception.ResoaExceptionprotected RESTGateway()
| Method Detail |
|---|
public void registerDomainMessageProcessor(java.lang.String domain,
org.resoa.stack.StackChannelProcessor processor)
domain - the domain of services, to listen forprocessor - the processor instanceprotected ResoaNodeHandle onSessionInitialized(org.resoa.grid.GridSession session)
ResoaBaseGateway
onSessionInitialized in class ResoaBaseGatewaysession - the session
public void onMessage(java.lang.Object stackChannel,
org.resoa.grid.Message msg)
ResoaServiceGateway
onMessage in interface org.resoa.stack.StackChannelProcessoronMessage in class ResoaServiceGatewaystackChannel - the channel objectmsg - message the messageprotected void updateMonitoring(org.resoa.topology.NodeState state)
ResoaBaseGateway
updateMonitoring in class ResoaBaseGateway
public org.resoa.topology.ResoaComponent processLocalDeployment(org.resoa.topology.ResoaInfo resoaInfo,
javolution.util.FastMap<java.lang.String,java.lang.String> descriptors,
boolean isUpdate)
NodeDomainRelationManager.DomainCache
processLocalDeployment in interface NodeDomainRelationManager.DomainCache<java.lang.String>descriptors - the cache for service descriptorsisUpdate - true, if the processing is caused by a runtime update
protected void clearApplications(boolean restartHTTP)
restartHTTP - true, if the HTTP server should restartprotected void onWebDomainDeployment(org.resoa.topology.WebDomainInfo domainInfo)
domainInfo - protected org.resoa.topology.RESTNode getLocalNode(org.resoa.topology.ResoaInfo resoaInfo)
resoaInfo -
public boolean isDeployed(java.lang.String domain,
java.lang.String serviceName)
isDeployed in interface org.resoa.grid.ResoaGateway
public void onTransactionDelay(java.lang.Object channel,
org.resoa.grid.Message msg)
onTransactionDelay in interface org.resoa.stack.StackChannelProcessor
public org.resoa.topology.RestSession createRestSession(java.util.List<org.resoa.topology.Permission> perm,
java.lang.String userID,
java.lang.String dns,
int timeOut,
org.resoa.grid.GridSession requestor)
ResoaServiceGateway
createRestSession in interface org.resoa.grid.ResoaGatewaycreateRestSession in class ResoaServiceGatewayperm - provide the permissions, associated with this sessionuserID - the userID of the sessiondns - the user agenttimeOut - the timeoutrequestor - the base stack session
public org.resoa.grid.ResoaPersistence getPersistor()
getPersistor in interface org.resoa.grid.ResoaGateway
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||