org.apache.lokahi.core.api.server
Class HardwareModel
java.lang.Object
org.apache.lokahi.core.common.interfaces.LokahiModel<Hardware>
org.apache.lokahi.core.api.server.HardwareModel
public class HardwareModel
- extends LokahiModel<Hardware>
- Version:
- $Id: HardwareModel.java,v 1.5 2006/03/10 22:46:07 drtobes Exp $
- Author:
- Stephen Toback
Fields inherited from class org.apache.lokahi.core.common.interfaces.LokahiModel |
jp, tpe |
Method Summary |
void |
addHardware(JobPool jp,
Hardware h)
|
void |
addHardware(User u,
Hardware h)
|
void |
addHardware(User u,
Hardware h,
Function f)
|
void |
addHardware(User u,
java.lang.String hardwareName,
java.lang.String physicalLocation,
java.lang.String comments,
int instanceId,
int envId,
int statusId,
java.lang.String defaultIp,
java.lang.String... ips)
|
java.lang.String |
buildJvmConf(Hardware h)
|
void |
deleteHardware(JobPool jp,
Hardware h)
|
void |
deleteHardware(User u,
java.util.Collection<Hardware> c)
|
void |
deleteHardware(User u,
java.util.Collection<Hardware> c,
Function f)
|
void |
deleteHardware(User u,
Hardware h,
Function f)
|
void |
deleteHardware(User u,
int[] ids)
|
void |
deployJvmConf(User u,
java.util.Collection<Hardware> c,
JobPool jobPool)
|
void |
deployJvmConf(User u,
Hardware h,
JobPool jobPool)
|
Hardware |
getObject(int id)
|
java.util.Collection<Hardware> |
getObjects()
|
void |
updateHardware(JobPool jp,
Hardware h)
|
void |
updateHardware(User u,
Hardware h)
|
void |
updateHardware(User u,
Hardware h,
Function f)
|
void |
updateHardware(User u,
int id,
java.lang.String hardwareName,
java.lang.String physicalLocation,
java.lang.String comments,
int instanceId,
int envId,
int statusId,
java.lang.String defaultIp,
java.lang.String... ips)
|
Hardware |
viewHardware(int id)
Deprecated. |
java.util.Collection<Hardware> |
viewHardwares()
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HardwareModel
public HardwareModel()
addHardware
public void addHardware(User u,
Hardware h)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
addHardware
public void addHardware(User u,
Hardware h,
Function f)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
deleteHardware
public void deleteHardware(User u,
java.util.Collection<Hardware> c,
Function f)
throws java.sql.SQLException,
AuthorizationException,
TMCIllegalArgumentException
- Throws:
java.sql.SQLException
AuthorizationException
TMCIllegalArgumentException
deleteHardware
public void deleteHardware(User u,
Hardware h,
Function f)
throws java.sql.SQLException,
AuthorizationException,
TMCIllegalArgumentException
- Throws:
java.sql.SQLException
AuthorizationException
TMCIllegalArgumentException
updateHardware
public void updateHardware(User u,
Hardware h,
Function f)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
deployJvmConf
public void deployJvmConf(User u,
java.util.Collection<Hardware> c,
JobPool jobPool)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
deployJvmConf
public void deployJvmConf(User u,
Hardware h,
JobPool jobPool)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
buildJvmConf
public java.lang.String buildJvmConf(Hardware h)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
addHardware
public void addHardware(User u,
java.lang.String hardwareName,
java.lang.String physicalLocation,
java.lang.String comments,
int instanceId,
int envId,
int statusId,
java.lang.String defaultIp,
java.lang.String... ips)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
addHardware
public void addHardware(JobPool jp,
Hardware h)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
updateHardware
public void updateHardware(User u,
int id,
java.lang.String hardwareName,
java.lang.String physicalLocation,
java.lang.String comments,
int instanceId,
int envId,
int statusId,
java.lang.String defaultIp,
java.lang.String... ips)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
updateHardware
public void updateHardware(User u,
Hardware h)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
updateHardware
public void updateHardware(JobPool jp,
Hardware h)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
deleteHardware
public void deleteHardware(User u,
int[] ids)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
deleteHardware
public void deleteHardware(User u,
java.util.Collection<Hardware> c)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
deleteHardware
public void deleteHardware(JobPool jp,
Hardware h)
throws AuthorizationException,
TMCIllegalArgumentException,
java.sql.SQLException,
java.io.IOException
- Throws:
AuthorizationException
TMCIllegalArgumentException
java.sql.SQLException
java.io.IOException
viewHardware
public Hardware viewHardware(int id)
throws java.sql.SQLException
- Deprecated.
- Throws:
java.sql.SQLException
viewHardwares
public java.util.Collection<Hardware> viewHardwares()
throws java.sql.SQLException
- Deprecated.
- Returns:
-
- Throws:
java.sql.SQLException
getObjects
public java.util.Collection<Hardware> getObjects()
throws java.sql.SQLException
- Specified by:
getObjects
in class LokahiModel<Hardware>
- Throws:
java.sql.SQLException
getObject
public Hardware getObject(int id)
throws java.sql.SQLException
- Specified by:
getObject
in class LokahiModel<Hardware>
- Throws:
java.sql.SQLException