|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.host.client.application.Application
public class Application
Application encapsulates metadata describing a mote application.
Field Summary | |
---|---|
private String |
appName
|
private int |
binaryHash
|
private byte[] |
data
|
private String |
jarPath
|
private static long |
serialVersionUID
|
private ApplicationYaml |
yaml
|
Constructor Summary | |
---|---|
Application()
Creates an empty Application object |
|
Application(String jarPath)
Creates an Application object using the jar file at the given path. |
Method Summary | |
---|---|
byte[] |
getData()
Returns a byte array representation of this Application object |
String |
getName()
Returns the name of this Application object. |
String |
getPath()
Returns the filesystem path of this Application object. |
ApplicationYaml |
getYaml()
Returns an ApplicationYaml object of metadata about this Application object. |
private boolean |
readJar()
Reads the jar file provided when this Application object was instantiated. |
void |
setAppId(int appId)
Sets the application ID of this Application object. |
void |
setYaml(Map<String,Object> id)
Sets the yaml data for this Application object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String appName
private String jarPath
private byte[] data
private int binaryHash
private ApplicationYaml yaml
Constructor Detail |
---|
public Application(String jarPath) throws IOException
jarPath
- path of the jarfile
IOException
- thrown if an error occurs processing the jar filepublic Application()
Method Detail |
---|
public String getName()
public String getPath()
public byte[] getData()
public ApplicationYaml getYaml()
private boolean readJar() throws IOException
IOException
- thrown if an error occurs while reading
the jar filepublic void setAppId(int appId)
public void setYaml(Map<String,Object> id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |