public class ServerLocation extends Location implements LocationCommandInterface, BroadWorksServerLocationInterface
Modifier and Type | Field and Description |
---|---|
static HashMap<TreeNode<String>,Command> |
commandTreeToCommandMap |
static TreeNode<String> |
locationCommandTree |
Constructor and Description |
---|
ServerLocation(Alpaca alpaca,
BroadWorksConnection connection) |
Modifier and Type | Method and Description |
---|---|
static void |
addCommandToTree(Command command) |
void |
displayHelp()
Command help description.
|
boolean |
equals(Object obj) |
int |
execute(List<String> args)
Executes this command.
|
BroadWorksConnection |
getConnection() |
String |
getName()
Command Name
|
void |
handleServerDisconnectEvent(ServerDisconnectEvent event) |
int |
hashCode() |
void |
populateChildren()
Populate the Children ID list
|
void |
setConnection(BroadWorksConnection connection) |
String |
toString() |
addCommandToTree, execute, getAlpaca, getBroadWorksServer, getChildren, getCommandTree, getCommandTreeMap, getParent, getPwd, getRootLocationCommandMap, getRootLocationCommandTree, isHelpRequest, isSystem, isValid, println, printLocalOptions, pwd, reset, setChildren, setCommandMap, setCommands, setIsSystem, setIsValid, setName, setParent, setPwd
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildren, getCommandTree, getCommandTreeMap, getParent, getPwd, isSystem, pwd, reset
getAlpaca
public ServerLocation(Alpaca alpaca, BroadWorksConnection connection) throws co.ecg.alpaca.toolkit.exception.AlpacaException
co.ecg.alpaca.toolkit.exception.AlpacaException
public static void addCommandToTree(Command command)
public BroadWorksConnection getConnection()
getConnection
in class Location
public void setConnection(BroadWorksConnection connection)
public String getName()
LocationCommandInterface
getName
in interface LocationCommandInterface
getName
in class Location
public void displayHelp()
LocationCommandInterface
displayHelp
in interface LocationCommandInterface
displayHelp
in class Location
public int execute(List<String> args) throws co.ecg.alpaca.toolkit.exception.AlpacaException
LocationCommandInterface
execute
in interface LocationCommandInterface
execute
in class Location
co.ecg.alpaca.toolkit.exception.AlpacaException
public void populateChildren() throws co.ecg.alpaca.toolkit.exception.AlpacaException
BroadWorksServerLocationInterface
populateChildren
in interface BroadWorksServerLocationInterface
populateChildren
in interface LocationCommandInterface
co.ecg.alpaca.toolkit.exception.AlpacaException
public void handleServerDisconnectEvent(ServerDisconnectEvent event)
Copyright © 2016. All rights reserved.