|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | 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
ISeriesNetServerShare
class and may be removed in a future release.
public abstract class NetServerShare extends ChangeableResource
The NetServerShare class represents a NetServer share.
NetServer.listFileShares()
,
NetServer.listPrintShares()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION
Deprecated. Attribute ID for "description". |
static String |
USER_COUNT
Deprecated. Attribute ID for "user count". |
Modifier and Type | Method and Description |
---|---|
abstract void |
add()
Deprecated. Adds the share to the NetServer. |
protected void |
commitAttributeChanges(Object[] attributeIDs,
Object[] values)
Deprecated. Commits the specified attribute changes. |
protected abstract void |
establishConnection()
Deprecated. Establishes the connection to the system. |
protected void |
freezeProperties()
Deprecated. Freezes any property changes. |
Object |
getAttributeUnchangedValue(Object attributeID)
Deprecated. Returns the value of an attribute, disregarding any uncommitted changes. |
String |
getName()
Deprecated. Returns the network name of the share. |
ResourceList |
listConnections()
Deprecated. Lists the connections currently associated with this share. |
void |
refreshAttributeValues()
Deprecated. Refreshes the values for all attributes. |
void |
remove()
Deprecated. Removes this share from the NetServer. |
void |
setName(String name)
Deprecated. 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 String DESCRIPTION
public static final String USER_COUNT
NetServer.isStarted()
and NetServer.start()
.
Method Detail |
---|
public abstract void add() throws ResourceException
ResourceException
- If an error occurs.protected void commitAttributeChanges(Object[] attributeIDs, Object[] values) throws ResourceException
commitAttributeChanges
in class ChangeableResource
attributeIDs
- The attribute IDs for the specified attribute changes.values
- The specified attribute changesResourceException
- 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 Resource
ResourceException
- 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 Resource
ResourceException
- If an error occurs.public Object getAttributeUnchangedValue(Object attributeID) throws ResourceException
getAttributeUnchangedValue
in class ChangeableResource
attributeID
- Identifies the attribute.ResourceException
- If an error occurs.public String getName()
public ResourceList listConnections() throws ResourceException
NetServerConnection
objects.
ResourceException
- If an error occurs.public void refreshAttributeValues() throws ResourceException
refreshAttributeValues
in class ChangeableResource
ResourceException
- If an error occurs.public void remove() throws ResourceException
ResourceException
- If an error occurs.public void setName(String name)
name
- The name of the share.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |