Package org.apache.stratum.jcs.engine.control.group

Examples of org.apache.stratum.jcs.engine.control.group.GroupAttrName


     * @return The attribute value
     */
    public Object getAttribute( String name, String group )
    {
        //try {
        return ( Object ) cacheControl.get( new GroupAttrName( group, name ) );
        //} catch( ObjectNotFoundException onfe ) {
        //  return null;
        //}
    }
View Full Code Here


    public void setAttribute( String name, String group, Object value )
    {
        removeAttribute( name, group, SET_ATTR_INVOCATION );
        try
        {
            cacheControl.put( new GroupAttrName( group, name ), ( Serializable ) value );
            //} catch( ObjectExistsException onfe ) {
            //  return;
        }
        catch ( Exception ioe )
        {
View Full Code Here

    {
        // unbind object first if any.
        removeAttribute( name, group, SET_ATTR_INVOCATION );
        try
        {
            cacheControl.put( new GroupAttrName( group, name ), ( Serializable ) value, attr );
        }
        catch ( Exception e )
        {
            return;
            //} catch ( IOException ioe ) {
View Full Code Here

    /** Description of the Method */
    private void removeAttribute( String name, String group, boolean invocation )
    {

        GroupAttrName key = new GroupAttrName( group, name );
        // Needs to retrive the attribute so as to do object unbinding, if necessary.
        Serializable val = null;
        //try {
        val = cacheControl.get( key );
        //} catch( ObjectNotFoundException onfe ) {
View Full Code Here

     * @return The attribute value
     */
    public Object getAttribute( String name, String group )
    {
        //try {
        return ( Object ) cacheControl.get( new GroupAttrName( group, name ) );
        //} catch( ObjectNotFoundException onfe ) {
        //  return null;
        //}
    }
View Full Code Here

    public void setAttribute( String name, String group, Object value )
    {
        removeAttribute( name, group, SET_ATTR_INVOCATION );
        try
        {
            cacheControl.put( new GroupAttrName( group, name ), ( Serializable ) value );
            //} catch( ObjectExistsException onfe ) {
            //  return;
        }
        catch ( Exception ioe )
        {
View Full Code Here

    {
        // unbind object first if any.
        removeAttribute( name, group, SET_ATTR_INVOCATION );
        try
        {
            cacheControl.put( new GroupAttrName( group, name ), ( Serializable ) value, attr );
        }
        catch ( Exception e )
        {
            return;
            //} catch ( IOException ioe ) {
View Full Code Here

    /** Description of the Method */
    private void removeAttribute( String name, String group, boolean invocation )
    {

        GroupAttrName key = new GroupAttrName( group, name );
        // Needs to retrive the attribute so as to do object unbinding, if necessary.
        Serializable val = null;
        //try {
        val = cacheControl.get( key );
        //} catch( ObjectNotFoundException onfe ) {
View Full Code Here

     * @return The attribute value
     */
    public Object getAttribute( String name, String group )
    {
        //try {
        return ( Object ) cacheControl.get( new GroupAttrName( group, name ) );
        //} catch( ObjectNotFoundException onfe ) {
        //  return null;
        //}
    }
View Full Code Here

    public void setAttribute( String name, String group, Object value )
    {
        removeAttribute( name, group, SET_ATTR_INVOCATION );
        try
        {
            cacheControl.put( new GroupAttrName( group, name ), ( Serializable ) value );
            //} catch( ObjectExistsException onfe ) {
            //  return;
        }
        catch ( Exception ioe )
        {
View Full Code Here

TOP

Related Classes of org.apache.stratum.jcs.engine.control.group.GroupAttrName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.