|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.as400.resource.Resource
|
+--com.ibm.as400.resource.ChangeableResource
|
+--com.ibm.as400.access.NetServerShare
The NetServerShare class represents a NetServer share.
NetServer.listFileShares(),
NetServer.listPrintShares(), Serialized Form| Field Summary | |
static java.lang.String |
DESCRIPTION
Attribute ID for "description". |
static java.lang.String |
USER_COUNT
Attribute ID for "user count". |
| Method Summary | |
abstract void |
add()
Adds the server share to the NetServer. |
protected void |
commitAttributeChanges(java.lang.Object[] attributeIDs,
java.lang.Object[] values)
Commits the specified attribute changes. |
protected abstract void |
establishConnection()
Establishes the connection to the server. |
protected void |
freezeProperties()
Freezes any property changes. |
java.lang.Object |
getAttributeUnchangedValue(java.lang.Object attributeID)
Returns the value of an attribute, disregarding any uncommitted changes. |
java.lang.String |
getName()
Returns the network name of the share. |
ResourceList |
listConnections()
Lists the connections currently associated with this share. |
void |
refreshAttributeValues()
Refreshes the values for all attributes. |
void |
remove()
Removes this share from the NetServer. |
void |
setName(java.lang.String name)
Sets the network name of the share. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String DESCRIPTION
public static final java.lang.String USER_COUNT
| Method Detail |
public abstract void add()
throws ResourceException
ResourceException - If an error occurs.
protected void commitAttributeChanges(java.lang.Object[] attributeIDs,
java.lang.Object[] values)
throws ResourceException
commitAttributeChanges in class ChangeableResourceResourceException - If an error occurs.
protected abstract void establishConnection()
throws ResourceException
The method is called by the resource framework automatically when the connection needs to be established.
establishConnection in class ResourceResourceException - If an error occurs.
protected void freezeProperties()
throws ResourceException
The method is called by the resource framework automatically when the properties need to be frozen.
freezeProperties in class ResourceResourceException - If an error occurs.
public java.lang.Object getAttributeUnchangedValue(java.lang.Object attributeID)
throws ResourceException
getAttributeUnchangedValue in class ChangeableResourceattributeID - Identifies the attribute.ResourceException - If an error occurs.public java.lang.String getName()
public ResourceList listConnections()
throws ResourceException
ResourceException - If an error occurs.NetServerConnection
public void refreshAttributeValues()
throws ResourceException
refreshAttributeValues in class ChangeableResourceResourceException - If an error occurs.
public void remove()
throws ResourceException
ResourceException - If an error occurs.public void setName(java.lang.String name)
name - The name of the share.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||