com.scudata.server.ConnectionProxyManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.server;
import com.scudata.server.IProxy;
/**
* ???Ӵ?????????
*
* @author Joancy
*
*/
public class ConnectionProxyManager extends IProxy{
static ConnectionProxyManager instance = new ConnectionProxyManager();
private ConnectionProxyManager(){
super(null, 0);
}
/**
* ???Ǹ???÷???????????????????Ҫ???ڣ?ά?ֳ?ʼ̬-1????
*/
public void access() {
}
/**
* ??ȡ????????Ψһʵ??
* @return ??????ʵ??
*/
public static ConnectionProxyManager getInstance(){
return instance;
}
/**
* ???ݱ?Ż?ô???????
* @param id ???
* @return ????????
* @throws Exception û?ҵ???Ӧ????ʱ?׳??쳣
*/
public IProxy getConnectionProxy(int id) throws Exception{
IProxy cp = getProxy(id);
if(cp==null){
throw new Exception("Connection "+id+" is not exist or out of time!");
}
return cp;
}
/**
* ʵ?ִ????ӿڣ????????ĸ÷?????????
*/
public void close() {
}
/**
* ??ȡ?ı?????
* @return ?????ı?
*/
public String toString() {
return "ConnectionProxyManager";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy