public class ManagerProxy
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ManagerProxy()
Create a new ManagerProxy object
|
ManagerProxy(Identifier id)
Create a new ManagerProxy object
|
ManagerProxy(ManagerProxy proxy)
Create a new ManagerProxy object
|
ManagerProxy(java.lang.String className,
Identifier id)
Create a new ManagerProxy object
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeWorkspace() |
void |
deleteManager()
called by the RmiWorkspace when the manager is being deleted.
|
boolean |
dropManager()
drop the Reference to the ManagerProxy's Manager
|
boolean |
equals(ManagerProxy that)
see if the ManagerProxy equals that.
|
boolean |
equals(java.lang.Object that)
see if the ManagerProxy equals that
|
java.lang.String |
getClassName()
Gets the Class Name of the Manager
|
java.lang.String |
getDescription()
Gets the Description of the ManagerProxy object
|
Identifier |
getId()
Gets the Identifier of the ManagerProxy object
|
int |
getIndex()
Gets the Index of the ManagerProxy object
|
long |
getLastModifiedTime()
return the last modified time, if the manager is instanciated then return
it's modified time.
|
Manager |
getManager()
Gets the Manager of the ManagerProxy object.
|
java.lang.String |
getName()
Gets the Name of the ManagerProxy object
|
int |
getObserverCount() |
java.lang.String |
getPath()
Gets the Path of the ManagerProxy object
|
ManagerProxyList |
getProxyList()
Gets the ManagerProxyList of the ManagerProxy object
|
long |
getRmiLastModifiedTime()
called from the rmi workspace to get the Manager's last modified time
|
java.lang.Object |
getRun() |
hec.server.RemoteWrapper |
getWorkspace()
Gets the Workspace of the ManagerProxy object
|
boolean |
hasBeenGCd() |
int |
hashCode()
return the hashcode for the ManagerProxy
|
Manager |
loadManager(java.lang.String classname,
Identifier id)
load the Manager.
|
void |
renameManager(Identifier id)
rename the Manager held by this ManagerProxy.
|
boolean |
represents(java.lang.String className)
see if the ManagerProxy's Manager is the same class as className
|
boolean |
saveAsManager(Manager newManager,
Identifier id)
save this Manager to a new location/name
|
boolean |
saveManager()
Save the Manager.
|
boolean |
saveManager(Manager newManager,
Identifier id)
Save the Manager
|
void |
setClassName(java.lang.String className)
Sets the Manager's Class Name of the ManagerProxy object
|
void |
setId(Identifier id)
Sets the Identifier of the ManagerProxy object
|
void |
setIndex(int idx)
Sets the Index of the ManagerProxy object
|
void |
setLastModifiedTime(long lastModifiedTime)
Sets the LastModifiedTime of the ManagerProxy object
|
void |
setManager(Manager m)
Sets the Manager of the ManagerProxy object
|
void |
setProxyList(ManagerProxyList pl)
Sets the ManagerProxyList of the ManagerProxy object
|
void |
setUserInterface(UserInterface ui) |
void |
setWorkspace(hec.server.RemoteWrapper wkspWrap)
Sets the Workspace of the ManagerProxy object
|
java.lang.String |
toString()
return the String representation of this ManagerProxyl
|
void |
unloadManager()
unload the Manager from Memory
|
void |
write(java.io.BufferedWriter out)
write this manager proxy out to the file
|
public ManagerProxy()
public ManagerProxy(Identifier id)
id - The Identifier to usepublic ManagerProxy(java.lang.String className,
Identifier id)
className - the class name of the Managerid - the Identifier to usepublic ManagerProxy(ManagerProxy proxy)
proxy - the ManagerProxy to copy frompublic void setIndex(int idx)
idx - The new Index valuepublic int getIndex()
public void setClassName(java.lang.String className)
className - The new Class Name valuepublic java.lang.String getClassName()
public void setWorkspace(hec.server.RemoteWrapper wkspWrap)
wkspWrap - The new Workspace valuepublic hec.server.RemoteWrapper getWorkspace()
public void setProxyList(ManagerProxyList pl)
pl - The new ProxyList valuepublic ManagerProxyList getProxyList()
public Identifier getId()
public void setId(Identifier id)
id - The new Identifier valuepublic java.lang.Object getRun()
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getPath()
public Manager getManager()
public Manager loadManager(java.lang.String classname, Identifier id)
classname - the class name of the Manager. Normally nullid - the Identifier of the Manager's file. Normally nullpublic void deleteManager()
public void renameManager(Identifier id)
renamed(Identifier) method is calledid - the Identifier to rename the Manager topublic boolean dropManager()
public void setManager(Manager m)
m - The new Managerpublic void unloadManager()
public void closeWorkspace()
public boolean saveManager()
public boolean saveManager(Manager newManager, Identifier id)
newManager - the Manager to Save. Normally nullid - the Identifier to save to. Normally nullpublic boolean saveAsManager(Manager newManager, Identifier id)
newManager - the new Managerid - the new Identifierpublic boolean represents(java.lang.String className)
className - the class namepublic void setLastModifiedTime(long lastModifiedTime)
lastModifiedTime - The new LastModifiedTime valuepublic long getLastModifiedTime()
public long getRmiLastModifiedTime()
public void write(java.io.BufferedWriter out)
throws java.io.IOException
out - Descriptionjava.io.IOException - Descriptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object that)
equals in class java.lang.Objectthat - the object being compared topublic boolean equals(ManagerProxy that)
that - Descriptionpublic int hashCode()
hashCode in class java.lang.Objectpublic int getObserverCount()
public boolean hasBeenGCd()
public void setUserInterface(UserInterface ui)
frame -