org.resoa.node.core
Class ResoaNodeHandle

java.lang.Object
  extended by org.resoa.node.core.ResoaNodeHandle

public class ResoaNodeHandle
extends java.lang.Object

ResoaNodeHandle class wraps relation between stack session and stack profile


Constructor Summary
ResoaNodeHandle(org.resoa.topology.ResoaComponent node)
          Constructor
 
Method Summary
 void beforeResoaInfoProcessing()
          Prepare for re-deployment
 org.resoa.grid.ResoaNodeType getNodeType()
           
 java.util.List<org.resoa.topology.Permission> getPermissions()
          permissions getter
 org.resoa.stack.config.StackProfile getProfile()
          profile getter
 org.resoa.grid.GridSession getSession()
          session getter
 boolean isController()
          true, if the node is a controller
 boolean isNode()
          true, if the node is a service container node
 boolean isPartofGrid()
          True, if the node is part of the Resoa grid
 boolean isRestServer()
          true, if the node is a RestServer
 void onSessionDisconnected(org.resoa.grid.GridSession disconnectSession)
          Invoke in case a session runs into a disconnect
 void setDeployment(org.resoa.topology.ResoaComponent node)
          Activate the node within the grid by setting its deployment information
 void setProfile(org.resoa.stack.config.StackProfile profile)
           
 void setSession(org.resoa.grid.GridSession newSession)
          session setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResoaNodeHandle

public ResoaNodeHandle(org.resoa.topology.ResoaComponent node)
Constructor

Parameters:
node - the node name
Method Detail

getNodeType

public org.resoa.grid.ResoaNodeType getNodeType()
Returns:
the type

isPartofGrid

public boolean isPartofGrid()
True, if the node is part of the Resoa grid

Returns:
True, if the node is part of the Resoa grid

beforeResoaInfoProcessing

public void beforeResoaInfoProcessing()
Prepare for re-deployment


setDeployment

public void setDeployment(org.resoa.topology.ResoaComponent node)
Activate the node within the grid by setting its deployment information

Parameters:
node -

getSession

public org.resoa.grid.GridSession getSession()
session getter

Returns:
the session

setSession

public void setSession(org.resoa.grid.GridSession newSession)
session setter. Returns existing handle and checks for reconnection end

Parameters:
newSession - the session to set

onSessionDisconnected

public void onSessionDisconnected(org.resoa.grid.GridSession disconnectSession)
Invoke in case a session runs into a disconnect

Parameters:
disconnectSession -

getPermissions

public java.util.List<org.resoa.topology.Permission> getPermissions()
permissions getter

Returns:
the permission

getProfile

public org.resoa.stack.config.StackProfile getProfile()
profile getter

Returns:
the profile

setProfile

public void setProfile(org.resoa.stack.config.StackProfile profile)
Parameters:
profile - the profile to set

isController

public boolean isController()
true, if the node is a controller

Returns:
true, if the node is a controller

isNode

public boolean isNode()
true, if the node is a service container node

Returns:
true, if the node is a service container node

isRestServer

public boolean isRestServer()
true, if the node is a RestServer

Returns:
true, if the node is a RestServer


Read more about license conditions at www.resoa.org.