public class VimNemGov extends umf.common.nem.NEMSkin implements cc.clayman.console.ManagementConsole, ConsoleSupport
Constructor and Description |
---|
VimNemGov(java.net.URI manifestUri) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Iterator<umf.common.action.NEMActionSpecification> |
actionSpecIterator() |
protected umf.common.commands.CommandResult |
applySpecificNEMPolicy(umf.common.option.policy.SpecificNEMPolicy policy) |
boolean |
checkInfoExists(umf.common.info.UMFInfoSpecification infoDesc) |
void |
defineRequestHandler(java.lang.String pattern,
cc.clayman.console.RequestHandler rh)
Define a handler for a request
|
void |
defineRequestHandler(java.lang.String pattern,
USRRequestHandler rh)
Define a handler for a request
|
umf.common.commands.CommandResult |
delete() |
protected boolean |
doDeployOverEquipt(java.net.URI equipt) |
protected boolean |
doUnDeployFromEquipt(java.net.URI equipt) |
void |
doVimNemGovSetup(umf.common.nem.evt.OperationEvent oe)
Called after Constructor is called
Handler for onInstantiated(OperationEvent oe)
|
void |
doVimNemPostDeployment(umf.common.nem.evt.OperationEvent oe)
Called after doDeployOverEquipt()
Handler for onPostDeployment()
|
void |
doVimNemPostRegistration(umf.common.nem.evt.OperationEvent oe)
Called after doDeployOverEquipt()
Handler for onPostRegistration()
|
void |
doVimNemPostSetup(umf.common.nem.evt.OperationEvent oe)
Handler for onPostSetUp
|
Command |
find(java.lang.String commandName)
Find a command in the ManagementConsole.
|
Command |
findHandler(java.lang.String pattern)
Find a handler in the ManagementConsole.
|
static java.net.URI |
generateExampleManifest() |
java.lang.Object |
getAssociated() |
uself.common.know.info.NegotiationParams |
getCapacities(umf.common.info.UMFInfoSpecification internalInfoDesc) |
GlobalController |
getGlobalController() |
umf.common.info.UMFInfo |
getInfo(umf.common.info.UMFInfoSpecification infoDesc) |
uself.common.know.info.NegotiationParams |
getNeeds(umf.common.info.UMFInfoSpecification externalInfoDesc) |
uself.common.know.info.InformationFlowRequirementsAndConstraints |
GetNegotiationParameters() |
java.util.Observer |
getObservingProcess(umf.common.info.UMFInfoSpecification externalInfoDesc) |
protected java.util.Iterator<umf.common.info.UMFInfoSpecification> |
infoSpecIterator() |
void |
initialise(int port)
Construct a ManagementConsole, given a specific port.
|
java.util.Set<umf.common.info.UMFInfoSpecification> |
listAcquiredInputs() |
protected java.util.Set<umf.common.action.NEMActionSpecification> |
listActions() |
java.util.Set<umf.common.info.UMFInfoSpecification> |
listNonObviousAvailableOutputs() |
java.util.Set<uself.common.know.kinterface.KnowledgeMap<?>> |
listPushableInfoCollections() |
java.util.Set<uself.common.know.kinterface.ObservableInfo<?>> |
listPushableInfoScalars() |
java.util.Set<umf.common.info.UMFInfoSpecification> |
listRequiredInputs() |
java.util.Set<umf.common.info.UMFInfoSpecification> |
listWishedInputs() |
void |
register(Command command)
Register a new command with the ManagementConsole.
|
void |
registerCommands() |
protected void |
runMAPE_M() |
protected void |
runMAPE_MA() |
protected void |
runMAPE_MAP() |
protected void |
runMAPE_MAPE() |
void |
setAssociated(java.lang.Object o) |
protected boolean |
setupConsoleCommands()
Set up the commands for the console.
|
boolean |
start()
Start the ManagementConsole.
|
boolean |
stop()
Stop the ManagementConsole.
|
addConfigurationListener, addOperationListener, addStateChangeListener, applyActionConstrainingPolicy, applyInformationExchangePolicy, applyRegimePolicy, applyReportingPolicy, bindToREST, CollectLocalInformation, containsListener, createBind, createBind, createBind, createNew, doRegister, doSetDown, doSetUp, doUnregister, enforceMandate, fireOnInstantiated, getBaseURI, getBasicContainer, getConfigurationOption, getCoord, getGov, getInstance, getInstanceDescription, getInstanceID, getKnow, getMandate, getManifest, getNemRegime, getNemRegimeName, getNemSpecID, getNEMSpecificPolicyValue, getState, isDeployed, isRegistered, isVerbose, logeln, logln, logln, logvln, NotifyForInformationChange, removeConfigurationListener, removeOperationListener, removeStateChangeListener, revokeMandate, setBaseURI, setBasicContainer, setDown, setNEMPolicy, setNemRegime, setUp, setVerbose, UpdateInformationExchangePolicy
public VimNemGov(java.net.URI manifestUri) throws java.lang.Exception
manifestUri
- java.lang.ClassCastException
java.io.FileNotFoundException
java.net.MalformedURLException
java.lang.Exception
protected boolean doDeployOverEquipt(java.net.URI equipt) throws umf.common.nem.exception.NEMDeploymentException
doDeployOverEquipt
in class umf.common.nem.NEMSkin
umf.common.nem.exception.NEMDeploymentException
protected boolean doUnDeployFromEquipt(java.net.URI equipt) throws umf.common.nem.exception.NEMDeploymentException
doUnDeployFromEquipt
in class umf.common.nem.NEMSkin
umf.common.nem.exception.NEMDeploymentException
public umf.common.commands.CommandResult delete()
delete
in interface umf.common.nem.INEM
delete
in class umf.common.nem.NEMSkin
public void doVimNemGovSetup(umf.common.nem.evt.OperationEvent oe)
public void doVimNemPostDeployment(umf.common.nem.evt.OperationEvent oe)
public void doVimNemPostRegistration(umf.common.nem.evt.OperationEvent oe)
public void doVimNemPostSetup(umf.common.nem.evt.OperationEvent oe)
public GlobalController getGlobalController()
public java.lang.Object getAssociated()
getAssociated
in interface cc.clayman.console.ManagementConsole
public void setAssociated(java.lang.Object o)
setAssociated
in interface cc.clayman.console.ManagementConsole
protected boolean setupConsoleCommands()
public void defineRequestHandler(java.lang.String pattern, USRRequestHandler rh)
public void register(Command command)
public Command find(java.lang.String commandName)
find
in interface ConsoleSupport
commandName
- The name of the commandpublic Command findHandler(java.lang.String pattern)
findHandler
in interface ConsoleSupport
pattern
- The pattern for the handlerpublic static java.net.URI generateExampleManifest() throws java.io.IOException
java.io.IOException
public void initialise(int port)
initialise
in interface cc.clayman.console.ManagementConsole
public void registerCommands()
registerCommands
in interface cc.clayman.console.ManagementConsole
public void defineRequestHandler(java.lang.String pattern, cc.clayman.console.RequestHandler rh)
defineRequestHandler
in interface cc.clayman.console.ManagementConsole
public boolean start()
start
in interface cc.clayman.console.ManagementConsole
start
in interface ConsoleSupport
public boolean stop()
stop
in interface cc.clayman.console.ManagementConsole
stop
in interface ConsoleSupport
public java.util.Set<umf.common.info.UMFInfoSpecification> listAcquiredInputs()
listAcquiredInputs
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public java.util.Set<umf.common.info.UMFInfoSpecification> listRequiredInputs()
listRequiredInputs
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public java.util.Set<umf.common.info.UMFInfoSpecification> listWishedInputs()
listWishedInputs
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public java.util.Set<umf.common.info.UMFInfoSpecification> listNonObviousAvailableOutputs()
listNonObviousAvailableOutputs
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
protected java.util.Set<umf.common.action.NEMActionSpecification> listActions()
listActions
in class umf.common.nem.NEMSkin
protected java.util.Iterator<umf.common.action.NEMActionSpecification> actionSpecIterator()
actionSpecIterator
in class umf.common.nem.NEMSkin
protected java.util.Iterator<umf.common.info.UMFInfoSpecification> infoSpecIterator()
infoSpecIterator
in class umf.common.nem.NEMSkin
protected void runMAPE_M() throws java.lang.UnsupportedOperationException, umf.common.nem.regime.MAPEException
runMAPE_M
in class umf.common.nem.NEMSkin
java.lang.UnsupportedOperationException
umf.common.nem.regime.MAPEException
protected void runMAPE_MA() throws java.lang.UnsupportedOperationException, umf.common.nem.regime.MAPEException
runMAPE_MA
in class umf.common.nem.NEMSkin
java.lang.UnsupportedOperationException
umf.common.nem.regime.MAPEException
protected void runMAPE_MAP() throws java.lang.UnsupportedOperationException, umf.common.nem.regime.MAPEException
runMAPE_MAP
in class umf.common.nem.NEMSkin
java.lang.UnsupportedOperationException
umf.common.nem.regime.MAPEException
protected void runMAPE_MAPE() throws umf.common.nem.regime.MAPEException
runMAPE_MAPE
in class umf.common.nem.NEMSkin
umf.common.nem.regime.MAPEException
public umf.common.info.UMFInfo getInfo(umf.common.info.UMFInfoSpecification infoDesc) throws java.util.NoSuchElementException
getInfo
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
java.util.NoSuchElementException
public boolean checkInfoExists(umf.common.info.UMFInfoSpecification infoDesc)
checkInfoExists
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
protected umf.common.commands.CommandResult applySpecificNEMPolicy(umf.common.option.policy.SpecificNEMPolicy policy)
applySpecificNEMPolicy
in class umf.common.nem.NEMSkin
public java.util.Set<uself.common.know.kinterface.KnowledgeMap<?>> listPushableInfoCollections()
listPushableInfoCollections
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public java.util.Set<uself.common.know.kinterface.ObservableInfo<?>> listPushableInfoScalars()
listPushableInfoScalars
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public java.util.Observer getObservingProcess(umf.common.info.UMFInfoSpecification externalInfoDesc)
getObservingProcess
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public uself.common.know.info.NegotiationParams getNeeds(umf.common.info.UMFInfoSpecification externalInfoDesc)
getNeeds
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public uself.common.know.info.NegotiationParams getCapacities(umf.common.info.UMFInfoSpecification internalInfoDesc)
getCapacities
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
public uself.common.know.info.InformationFlowRequirementsAndConstraints GetNegotiationParameters()
GetNegotiationParameters
in interface uself.common.know.kinterface.IKnowledgeCapableEntity
GetNegotiationParameters
in class umf.common.nem.NEMSkin
User Space Routing 0.10.3